aboutsummaryrefslogtreecommitdiff
path: root/include/quickmedia
diff options
context:
space:
mode:
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