diff options
author | Werner Koch <wk@gnupg.org> | 2013-12-12 18:53:39 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2013-12-12 18:53:39 +0100 |
commit | 4ae77322b681a13da62d01274bcab25be2af12d0 (patch) | |
tree | 4b3a2e31cb86fae492800e58cce8138c91bc4bd3 /src/g10lib.h | |
parent | 3b30e9840d4b351c4de73b126e561154cb7df4cc (diff) | |
download | libgcrypt-4ae77322b681a13da62d01274bcab25be2af12d0.tar.gz |
Move list of hardware features to hwfeatures.c.
* src/global.c (hwflist, disabled_hw_features): Move to ..
* src/hwfeatures.c: here.
(_gcry_disable_hw_feature): New.
(_gcry_enum_hw_features): New.
(_gcry_detect_hw_features): Remove arg DISABLED_FEATURES.
* src/global.c (print_config, _gcry_vcontrol, global_init): Adjust
accordingly.
--
It is better to keep the hardware feature infor at one place.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'src/g10lib.h')
-rw-r--r-- | src/g10lib.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/g10lib.h b/src/g10lib.h index 4e083b8d..1e58ef69 100644 --- a/src/g10lib.h +++ b/src/g10lib.h @@ -206,8 +206,10 @@ int _gcry_log_verbosity( int level ); #define HWF_ARM_NEON 4096 +gpg_err_code_t _gcry_disable_hw_feature (const char *name); +void _gcry_detect_hw_features (void); unsigned int _gcry_get_hw_features (void); -void _gcry_detect_hw_features (unsigned int); +const char *_gcry_enum_hw_features (int idx, unsigned int *r_feature); /*-- mpi/mpiutil.c --*/ |