aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAleksi Lindeman <dec05eba@protonmail.com>2019-05-25 03:59:40 +0200
committerAleksi Lindeman <dec05eba@protonmail.com>2019-05-25 03:59:43 +0200
commit43b6ea91ed733d397cef8d1a09a0b4f5e825528f (patch)
treee5d8f526bf5fd5aff1ee130b8398c417df6388bf /include
parentc5f4811d0ba74715c8e128da133248cc399a6a6a (diff)
Add extern c for c++
Diffstat (limited to 'include')
-rw-r--r--include/quickmedia/NodeSearch.h8
-rw-r--r--include/quickmedia/XpathParser.h8
-rw-r--r--include/quickmedia/XpathTokenizer.h8
3 files changed, 24 insertions, 0 deletions
diff --git a/include/quickmedia/NodeSearch.h b/include/quickmedia/NodeSearch.h
index f06354b..adaac44 100644
--- a/include/quickmedia/NodeSearch.h
+++ b/include/quickmedia/NodeSearch.h
@@ -1,6 +1,10 @@
#ifndef QUICKMEDIA_NODE_SEARCH_H
#define QUICKMEDIA_NODE_SEARCH_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct {
char *name;
char *value;
@@ -25,4 +29,8 @@ void quickmedia_node_search_param_init(QuickMediaNodeSearchParam *self);
void quickmedia_node_search_init(QuickMediaNodeSearch *self);
void quickmedia_node_search_deinit(QuickMediaNodeSearch *self);
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/include/quickmedia/XpathParser.h b/include/quickmedia/XpathParser.h
index 2dfc81e..eeab3c3 100644
--- a/include/quickmedia/XpathParser.h
+++ b/include/quickmedia/XpathParser.h
@@ -3,6 +3,14 @@
#include "NodeSearch.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
int quickmedia_parse_xpath(const char *xpath, QuickMediaNodeSearch *result);
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/include/quickmedia/XpathTokenizer.h b/include/quickmedia/XpathTokenizer.h
index 8827cff..cada673 100644
--- a/include/quickmedia/XpathTokenizer.h
+++ b/include/quickmedia/XpathTokenizer.h
@@ -3,6 +3,10 @@
#include "NodeSearch.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct {
const char *code;
union {
@@ -29,4 +33,8 @@ int quickmedia_xpath_tokenizer_next_if(QuickMediaXpathTokenizer *self, QuickMedi
char* quickmedia_xpath_tokenizer_copy_identifier(QuickMediaXpathTokenizer *self);
char* quickmedia_xpath_tokenizer_copy_string(QuickMediaXpathTokenizer *self);
+#ifdef __cplusplus
+}
+#endif
+
#endif