summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/tlv.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/tlv.h b/include/tlv.h
index 7bfb275..b52763a 100644
--- a/include/tlv.h
+++ b/include/tlv.h
@@ -69,6 +69,9 @@ A few things to note:
#define TLV_SZ_MAX_RAW (MTU - 64)
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
/**
* Message sequence number since beggining of sesssion.
*
@@ -187,4 +190,8 @@ int tlv_push_data(struct tlv *t, const char *data, size_t size);
*/
int tlv_push_tlv(struct tlv *t, const struct tlv *other);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* USURPATION_PROTOCOL_H_INCLUDED */