summaryrefslogtreecommitdiffstats
path: root/include/libimobiledevice-glue/tlv.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2024-01-30 11:30:12 +0100
committerGravatar Nikias Bassen2024-01-30 11:30:12 +0100
commit7ddaea319550bd44bb295f935bef038a1ac37c3f (patch)
tree12c590e42fb3d367b7b9fb00a035cd03b4175602 /include/libimobiledevice-glue/tlv.h
parent2d517ebcebe326e79186e41ee7bbd1cf5ed1f2b9 (diff)
downloadlibimobiledevice-glue-7ddaea319550bd44bb295f935bef038a1ac37c3f.tar.gz
libimobiledevice-glue-7ddaea319550bd44bb295f935bef038a1ac37c3f.tar.bz2
Move LIMD_GLUE_API definitions to public headers
Diffstat (limited to 'include/libimobiledevice-glue/tlv.h')
-rw-r--r--include/libimobiledevice-glue/tlv.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/include/libimobiledevice-glue/tlv.h b/include/libimobiledevice-glue/tlv.h
index 895c883..42be4f6 100644
--- a/include/libimobiledevice-glue/tlv.h
+++ b/include/libimobiledevice-glue/tlv.h
@@ -22,6 +22,7 @@
#define __TLV_H
#include <stdint.h>
+#include <libimobiledevice-glue/glue.h>
struct tlv_buf {
unsigned char* data;
@@ -30,13 +31,13 @@ struct tlv_buf {
};
typedef struct tlv_buf* tlv_buf_t;
-tlv_buf_t tlv_buf_new();
-void tlv_buf_free(tlv_buf_t tlv);
+LIMD_GLUE_API tlv_buf_t tlv_buf_new();
+LIMD_GLUE_API void tlv_buf_free(tlv_buf_t tlv);
-void tlv_buf_append(tlv_buf_t tlv, uint8_t tag, unsigned int length, void* data);
-unsigned char* tlv_get_data_ptr(const void* tlv_data, void* tlv_end, uint8_t tag, uint8_t* length);
-int tlv_data_get_uint(const void* tlv_data, unsigned int tlv_length, uint8_t tag, uint64_t* value);
-int tlv_data_get_uint8(const void* tlv_data, unsigned int tlv_length, uint8_t tag, uint8_t* value);
-int tlv_data_copy_data(const void* tlv_data, unsigned int tlv_length, uint8_t tag, void** out, unsigned int* out_len);
+LIMD_GLUE_API void tlv_buf_append(tlv_buf_t tlv, uint8_t tag, unsigned int length, void* data);
+LIMD_GLUE_API unsigned char* tlv_get_data_ptr(const void* tlv_data, void* tlv_end, uint8_t tag, uint8_t* length);
+LIMD_GLUE_API int tlv_data_get_uint(const void* tlv_data, unsigned int tlv_length, uint8_t tag, uint64_t* value);
+LIMD_GLUE_API int tlv_data_get_uint8(const void* tlv_data, unsigned int tlv_length, uint8_t tag, uint8_t* value);
+LIMD_GLUE_API int tlv_data_copy_data(const void* tlv_data, unsigned int tlv_length, uint8_t tag, void** out, unsigned int* out_len);
#endif /* __TLV_H */