#define LTTNG_HANDLE_H
#include <lttng/domain.h>
+#include <lttng/lttng-export.h>
#ifdef __cplusplus
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;
* 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
}