X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Flttng%2Fhandle.h;h=14a0e54072a0fb570a7c61ad5cd1f01a056f5c14;hb=f40b76aed659ff694cf948bf8ebd1d4b5741c986;hp=10ec82c62f604c6d7bef5a2fdc3fa9502b5e8589;hpb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a;p=lttng-tools.git diff --git a/include/lttng/handle.h b/include/lttng/handle.h index 10ec82c62..14a0e5407 100644 --- a/include/lttng/handle.h +++ b/include/lttng/handle.h @@ -9,6 +9,7 @@ #define LTTNG_HANDLE_H #include +#include #ifdef __cplusplus extern "C" { @@ -19,7 +20,7 @@ extern "C" { * * The structures should be initialized to zero before use. */ -#define LTTNG_HANDLE_PADDING1 16 +#define LTTNG_HANDLE_PADDING1 16 struct lttng_handle { char session_name[LTTNG_NAME_MAX]; struct lttng_domain domain; @@ -40,16 +41,15 @@ struct lttng_handle { * Return a newly allocated handle that should be freed using * lttng_destroy_handle. On error, NULL is returned. */ -extern struct lttng_handle *lttng_create_handle(const char *session_name, - struct lttng_domain *domain); +LTTNG_EXPORT extern struct lttng_handle *lttng_create_handle(const char *session_name, + struct lttng_domain *domain); /* * Destroy an handle that has been previously created with lttng_create_handle. * * It free the given pointer making it unusable. */ -extern void lttng_destroy_handle(struct lttng_handle *handle); - +LTTNG_EXPORT extern void lttng_destroy_handle(struct lttng_handle *handle); #ifdef __cplusplus }