aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/HtmlParser.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/HtmlParser.h b/include/HtmlParser.h
index 0bd7203..e6f0c3b 100644
--- a/include/HtmlParser.h
+++ b/include/HtmlParser.h
@@ -8,6 +8,10 @@
#include <stddef.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct {
const char *data;
size_t size;
@@ -52,4 +56,8 @@ struct HtmlParser {
/* Note: HTML_PARSE_TAG_START is guaranteed to be called for a tag before HTML_PARSE_TAG_END */
void html_parser_parse(const char *html_source, size_t len, HtmlParseCallback parse_callback, void *userdata);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* HTML_PARSER_H */