index
:
ndpi-daemon.git
Tiny nDPI based deep packet inspection daemons / toolkit.
log msg
author
committer
range
add/PF_RING
add/apple-bsd-port
add/config-file-support
add/event-io-abstraction
add/nDPId-UDP-endpoint
add/tls-proxy-support
add/tunnel-decoding
add/udp-aes256-gcm
main
ndpi-example-proposal
tmp
summary
refs
log
tree
commit
diff
path:
root
/
jsmn.h
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
Serge Zaitsev <zaitsev.serge@gmail.com>
2014-02-21 11:03:29 +0200
committer
Serge Zaitsev <zaitsev.serge@gmail.com>
2014-02-21 11:03:29 +0200
commit
f2864e69b90e7f80b37c04c562b99b222b591235
(
patch
)
tree
b0f6e227730318b1601dfa77e28912e7ad05cff5
/
jsmn.h
parent
5faee057cb4f75fcb72a57e628cf697bf0467c85
(
diff
)
parent
db379ec1248ff8a24c3bb330d46e73898ff3adc6
(
diff
)
Merged in MacGritsch/jsmn-patch (pull request #7)
Added "extern C" to use it with CPP.
Diffstat
(limited to 'jsmn.h')
-rw-r--r--
jsmn.h
8
1 files changed, 8 insertions, 0 deletions
diff --git a/jsmn.h b/jsmn.h
index 54930ad55..c8f388cd0 100644
--- a/
jsmn.h
+++ b/
jsmn.h
@@ -1,6 +1,10 @@
#ifndef __JSMN_H_
#define __JSMN_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* JSON type identifier. Basic types are:
* o Object
@@ -62,4 +66,8 @@ void jsmn_init(jsmn_parser *parser);
jsmnerr_t jsmn_parse(jsmn_parser *parser, const char *js, size_t len,
jsmntok_t *tokens, unsigned int num_tokens);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __JSMN_H_ */