aboutsummaryrefslogtreecommitdiff
path: root/include/quickmedia
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-05-25 03:59:40 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 06:55:04 +0200
commit4f0942a605ec432ae8a7b4c43e05d447967e94ce (patch)
tree5a01dfc76495e3e7234ea48f0b50364b006f4176 /include/quickmedia
parentbc0b7338ed2d4c126c15eaf57aeb84655e0e1cc3 (diff)
Add extern c for c++
Diffstat (limited to 'include/quickmedia')
-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