From 4f0942a605ec432ae8a7b4c43e05d447967e94ce Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 25 May 2019 03:59:40 +0200 Subject: Add extern c for c++ --- include/quickmedia/NodeSearch.h | 8 ++++++++ include/quickmedia/XpathParser.h | 8 ++++++++ include/quickmedia/XpathTokenizer.h | 8 ++++++++ 3 files changed, 24 insertions(+) (limited to 'include') 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 -- cgit v1.2.3