diff options
| author | 2014-10-26 16:32:36 +0100 | |
|---|---|---|
| committer | 2014-10-26 16:32:36 +0100 | |
| commit | 9418c9957a4bd10c2a6fd19c7e38553fd51a59bf (patch) | |
| tree | eb845f7e913bad7ffa68c75a2781f83b95ae6397 /common | |
| parent | 6ec65baf4bcb520c0c0f0734cc6b354ccc070e96 (diff) | |
| download | libimobiledevice-9418c9957a4bd10c2a6fd19c7e38553fd51a59bf.tar.gz libimobiledevice-9418c9957a4bd10c2a6fd19c7e38553fd51a59bf.tar.bz2 | |
common: Remove obsolete symbol hiding macros from userpref module
Diffstat (limited to 'common')
| -rw-r--r-- | common/userpref.h | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/common/userpref.h b/common/userpref.h index a8eb6ae..ce38018 100644 --- a/common/userpref.h +++ b/common/userpref.h | |||
| @@ -50,14 +50,6 @@ typedef gnutls_datum_t key_data_t; | |||
| 50 | #define USERPREF_SYSTEM_BUID_KEY "SystemBUID" | 50 | #define USERPREF_SYSTEM_BUID_KEY "SystemBUID" |
| 51 | #define USERPREF_WIFI_MAC_ADDRESS_KEY "WiFiMACAddress" | 51 | #define USERPREF_WIFI_MAC_ADDRESS_KEY "WiFiMACAddress" |
| 52 | 52 | ||
| 53 | #ifndef LIBIMOBILEDEVICE_INTERNAL | ||
| 54 | #ifdef WIN32 | ||
| 55 | #define LIBIMOBILEDEVICE_INTERNAL | ||
| 56 | #else | ||
| 57 | #define LIBIMOBILEDEVICE_INTERNAL __attribute__((visibility("hidden"))) | ||
| 58 | #endif | ||
| 59 | #endif | ||
| 60 | |||
| 61 | #define USERPREF_E_SUCCESS 0 | 53 | #define USERPREF_E_SUCCESS 0 |
| 62 | #define USERPREF_E_INVALID_ARG -1 | 54 | #define USERPREF_E_INVALID_ARG -1 |
| 63 | #define USERPREF_E_INVALID_CONF -2 | 55 | #define USERPREF_E_INVALID_CONF -2 |
| @@ -75,13 +67,13 @@ userpref_error_t userpref_read_pair_record(const char *udid, plist_t *pair_recor | |||
| 75 | userpref_error_t userpref_save_pair_record(const char *udid, plist_t pair_record); | 67 | userpref_error_t userpref_save_pair_record(const char *udid, plist_t pair_record); |
| 76 | userpref_error_t userpref_delete_pair_record(const char *udid); | 68 | userpref_error_t userpref_delete_pair_record(const char *udid); |
| 77 | 69 | ||
| 78 | LIBIMOBILEDEVICE_INTERNAL userpref_error_t pair_record_generate_keys_and_certs(plist_t pair_record, key_data_t public_key); | 70 | userpref_error_t pair_record_generate_keys_and_certs(plist_t pair_record, key_data_t public_key); |
| 79 | #ifdef HAVE_OPENSSL | 71 | #ifdef HAVE_OPENSSL |
| 80 | LIBIMOBILEDEVICE_INTERNAL userpref_error_t pair_record_import_key_with_name(plist_t pair_record, const char* name, key_data_t* key); | 72 | userpref_error_t pair_record_import_key_with_name(plist_t pair_record, const char* name, key_data_t* key); |
| 81 | LIBIMOBILEDEVICE_INTERNAL userpref_error_t pair_record_import_crt_with_name(plist_t pair_record, const char* name, key_data_t* cert); | 73 | userpref_error_t pair_record_import_crt_with_name(plist_t pair_record, const char* name, key_data_t* cert); |
| 82 | #else | 74 | #else |
| 83 | LIBIMOBILEDEVICE_INTERNAL userpref_error_t pair_record_import_key_with_name(plist_t pair_record, const char* name, gnutls_x509_privkey_t key); | 75 | userpref_error_t pair_record_import_key_with_name(plist_t pair_record, const char* name, gnutls_x509_privkey_t key); |
| 84 | LIBIMOBILEDEVICE_INTERNAL userpref_error_t pair_record_import_crt_with_name(plist_t pair_record, const char* name, gnutls_x509_crt_t cert); | 76 | userpref_error_t pair_record_import_crt_with_name(plist_t pair_record, const char* name, gnutls_x509_crt_t cert); |
| 85 | #endif | 77 | #endif |
| 86 | 78 | ||
| 87 | userpref_error_t pair_record_get_host_id(plist_t pair_record, char** host_id); | 79 | userpref_error_t pair_record_get_host_id(plist_t pair_record, char** host_id); |
| @@ -91,6 +83,6 @@ userpref_error_t pair_record_set_item_from_key_data(plist_t pair_record, const c | |||
| 91 | 83 | ||
| 92 | /* deprecated */ | 84 | /* deprecated */ |
| 93 | userpref_error_t userpref_get_paired_udids(char ***list, unsigned int *count); | 85 | userpref_error_t userpref_get_paired_udids(char ***list, unsigned int *count); |
| 94 | LIBIMOBILEDEVICE_INTERNAL int userpref_has_pair_record(const char *udid); | 86 | int userpref_has_pair_record(const char *udid); |
| 95 | 87 | ||
| 96 | #endif | 88 | #endif |
