X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Furi.h;h=3a02dda5c228f7b676f5ae966f27991afcb812ec;hb=a6bc4ca9d659caf016ef932fcd944029737ac57c;hp=ac1de9e0cbc2450f2592f54c46beb499321734c3;hpb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a;p=lttng-tools.git diff --git a/src/common/uri.h b/src/common/uri.h index ac1de9e0c..3a02dda5c 100644 --- a/src/common/uri.h +++ b/src/common/uri.h @@ -12,6 +12,10 @@ #include #include +#if defined(__cplusplus) +extern "C" { +#endif + /* Destination type of lttng URI */ enum lttng_dst_type { LTTNG_DST_IPV4 = 1, @@ -40,6 +44,7 @@ enum lttng_stream_type { * should be ignored. */ enum lttng_proto_type { + LTTNG_PROTO_TYPE_NONE = 0, LTTNG_TCP = 1, /* * UDP protocol is not supported for now. @@ -72,4 +77,8 @@ ssize_t uri_parse_str_urls(const char *ctrl_url, const char *data_url, struct lttng_uri **uris); int uri_to_str_url(struct lttng_uri *uri, char *dst, size_t size); +#if defined(__cplusplus) +} +#endif + #endif /* _LTT_URI_H */