diff options
-rw-r--r-- | include/dect/auth.h | 7 | ||||
-rw-r--r-- | include/dect/cc.h | 7 | ||||
-rw-r--r-- | include/dect/identities.h | 7 | ||||
-rw-r--r-- | include/dect/ie.h | 7 | ||||
-rw-r--r-- | include/dect/keypad.h | 7 | ||||
-rw-r--r-- | include/dect/lce.h | 7 | ||||
-rw-r--r-- | include/dect/libdect.h | 7 | ||||
-rw-r--r-- | include/dect/mm.h | 7 | ||||
-rw-r--r-- | include/dect/raw.h | 7 | ||||
-rw-r--r-- | include/dect/ss.h | 7 | ||||
-rw-r--r-- | include/dect/terminal.h | 7 | ||||
-rw-r--r-- | include/dect/utils.h | 7 |
12 files changed, 84 insertions, 0 deletions
diff --git a/include/dect/auth.h b/include/dect/auth.h index 2651148..72746ea 100644 --- a/include/dect/auth.h +++ b/include/dect/auth.h @@ -7,6 +7,10 @@ #ifndef _LIBDECT_DECT_AUTH_H #define _LIBDECT_DECT_AUTH_H +#ifdef __cplusplus +extern "C" { +#endif + /** * @addtogroup security * @{ @@ -49,4 +53,7 @@ extern void dect_auth_a22(const uint8_t *ks, uint64_t rand_p, uint32_t *res2); /** @} */ +#ifdef __cplusplus +} +#endif #endif /* _LIBDECT_DECT_AUTH_H */ diff --git a/include/dect/cc.h b/include/dect/cc.h index 4e2c260..1f73735 100644 --- a/include/dect/cc.h +++ b/include/dect/cc.h @@ -7,6 +7,10 @@ #ifndef _LIBDECT_DECT_CC_H #define _LIBDECT_DECT_CC_H +#ifdef __cplusplus +extern "C" { +#endif + /** * @addtogroup cc * @{ @@ -278,4 +282,7 @@ extern int dect_dl_u_data_req(const struct dect_handle *dh, struct dect_call *ca /** @} */ +#ifdef __cplusplus +} +#endif #endif /* _LIBDECT_DECT_CC_H */ diff --git a/include/dect/identities.h b/include/dect/identities.h index 944e972..401d833 100644 --- a/include/dect/identities.h +++ b/include/dect/identities.h @@ -7,6 +7,10 @@ #ifndef _LIBDECT_DECT_IDENTITIES_H #define _LIBDECT_DECT_IDENTITIES_H +#ifdef __cplusplus +extern "C" { +#endif + /* * Acess Rights Identity (ARI) */ @@ -183,4 +187,7 @@ extern void dect_dump_tpui(const struct dect_tpui *tpui); /* Collective broadcast identifier */ #define DECT_TPUI_CBI 0xcfff +#ifdef __cplusplus +} +#endif #endif /* _LIBDECT_DECT_IDENTITIES_H */ diff --git a/include/dect/ie.h b/include/dect/ie.h index 5629eae..00b00dd 100644 --- a/include/dect/ie.h +++ b/include/dect/ie.h @@ -7,6 +7,10 @@ #ifndef _LIBDECT_DECT_IE_H #define _LIBDECT_DECT_IE_H +#ifdef __cplusplus +extern "C" { +#endif + /** * @addtogroup ie * @{ @@ -1187,4 +1191,7 @@ struct dect_ie_call_information { /* @} */ +#ifdef __cplusplus +} +#endif #endif /* _LIBDECT_DECT_IE_H */ diff --git a/include/dect/keypad.h b/include/dect/keypad.h index 0a38f0a..d8743d9 100644 --- a/include/dect/keypad.h +++ b/include/dect/keypad.h @@ -1,6 +1,10 @@ #ifndef _LIBDECT_DECT_KEYPAD #define _LIBDECT_DECT_KEYPAD +#ifdef __cplusplus +extern "C" { +#endif + extern struct dect_keypad_buffer * dect_keypad_buffer_init(const struct dect_handle *dh, uint8_t timeout, void (*complete)(struct dect_handle *, void *data, @@ -12,4 +16,7 @@ extern void dect_keypad_append(struct dect_handle *dh, const struct dect_ie_keypad *keypad, bool sending_complete); +#ifdef __cplusplus +} +#endif #endif /* _LIBDECT_DECT_KEYPAD */ diff --git a/include/dect/lce.h b/include/dect/lce.h index bc7a5bc..17b376e 100644 --- a/include/dect/lce.h +++ b/include/dect/lce.h @@ -9,6 +9,10 @@ #include <dect/ie.h> +#ifdef __cplusplus +extern "C" { +#endif + struct dect_lce_page_param { struct dect_ie_collection common; struct dect_ie_portable_identity *portable_identity; @@ -26,4 +30,7 @@ struct dect_lce_ops { extern int dect_lce_group_ring(struct dect_handle *dh, enum dect_ring_patterns pattern); +#ifdef __cplusplus +} +#endif #endif /* _LIBDECT_DECT_LCE_H */ diff --git a/include/dect/libdect.h b/include/dect/libdect.h index ba95b5a..b004505 100644 --- a/include/dect/libdect.h +++ b/include/dect/libdect.h @@ -20,6 +20,10 @@ #include <dect/ss.h> #include <list.h> +#ifdef __cplusplus +extern "C" { +#endif + struct dect_handle; /** @@ -138,4 +142,7 @@ extern int dect_init(struct dect_handle *dh); extern void dect_set_debug_hook(int (*fn)(const char *fmt, va_list ap)); +#ifdef __cplusplus +extern "C" { +#endif #endif /* _LIBDECT_DECT_LIBDECT_H */ diff --git a/include/dect/mm.h b/include/dect/mm.h index 77e0c01..0504150 100644 --- a/include/dect/mm.h +++ b/include/dect/mm.h @@ -7,6 +7,10 @@ #ifndef _LIBDECT_DECT_MM_H #define _LIBDECT_DECT_MM_H +#ifdef __cplusplus +extern "C" { +#endif + /** * @addtogroup mm * @{ @@ -329,4 +333,7 @@ extern int dect_mm_iwu_req(struct dect_handle *dh, struct dect_mm_endpoint *mme, /** @} */ +#ifdef __cplusplus +} +#endif #endif /* _LIBDECT_DECT_MM_H */ diff --git a/include/dect/raw.h b/include/dect/raw.h index ff19637..dc71c9d 100644 --- a/include/dect/raw.h +++ b/include/dect/raw.h @@ -1,8 +1,15 @@ #ifndef _LIBDECT_DECT_RAW_H #define _LIBDECT_DECT_RAW_H +#ifdef __cplusplus +extern "C" { +#endif + extern struct dect_fd *dect_raw_socket(struct dect_handle *dh); extern ssize_t dect_raw_transmit(const struct dect_fd *dfd, uint8_t slot, const struct dect_msg_buf *mb); +#ifdef __cplusplus +} +#endif #endif /* _LIBDECT_DECT_RAW_H */ diff --git a/include/dect/ss.h b/include/dect/ss.h index d16b78d..2828635 100644 --- a/include/dect/ss.h +++ b/include/dect/ss.h @@ -7,6 +7,10 @@ #ifndef _LIBDECT_DECT_SS_H #define _LIBDECT_DECT_SS_H +#ifdef __cplusplus +extern "C" { +#endif + #include <dect/ie.h> struct dect_mnss_param { @@ -43,4 +47,7 @@ extern int dect_mnss_facility_req(struct dect_handle *dh, struct dect_ss_endpoin extern int dect_mnss_release_req(struct dect_handle *dh, struct dect_ss_endpoint *sse, const struct dect_mnss_param *param); +#ifdef __cplusplus +} +#endif #endif /* _LIBDECT_DECT_SS_H */ diff --git a/include/dect/terminal.h b/include/dect/terminal.h index b7fdf0e..85a6c3e 100644 --- a/include/dect/terminal.h +++ b/include/dect/terminal.h @@ -1,6 +1,10 @@ #ifndef _LIBDECT_DECT_TERMINAL #define _LIBDECT_DECT_TERMINAL +#ifdef __cplusplus +extern "C" { +#endif + /* * DECT Standard 8-bit characters * @@ -67,4 +71,7 @@ enum dect_control_characters { #define DECT_TABSIZE 10 +#ifdef __cplusplus +} +#endif #endif /* _LIBDECT_DECT_TERMINAL */ diff --git a/include/dect/utils.h b/include/dect/utils.h index 90a9eb6..6dc6e7d 100644 --- a/include/dect/utils.h +++ b/include/dect/utils.h @@ -1,10 +1,17 @@ #ifndef _LIBDECT_DECT_UTILS_H #define _LIBDECT_DECT_UTILS_H +#ifdef __cplusplus +extern "C" { +#endif + #include <stddef.h> #define container_of(ptr, type, member) ({ \ const typeof( ((type *)0)->member ) *__mptr = (ptr); \ (type *)( (char *)__mptr - offsetof(type,member) );}) +#ifdef __cplusplus +} +#endif #endif /* _LIBDECT_DECT_UTILS_H */ |