X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Fsession-descriptor.h;h=5db04be7e9a959aa7935692e4481f9f3e1d19d03;hb=c9e313bc594f40a86eed237dce222c0fc99c957f;hp=e24ecd462242607716a80293e6b3ff87c8d347e2;hpb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a;p=lttng-tools.git diff --git a/include/lttng/session-descriptor.h b/include/lttng/session-descriptor.h index e24ecd462..5db04be7e 100644 --- a/include/lttng/session-descriptor.h +++ b/include/lttng/session-descriptor.h @@ -8,6 +8,8 @@ #ifndef LTTNG_SESSION_DESCRIPTOR_H #define LTTNG_SESSION_DESCRIPTOR_H +#include + #ifdef __cplusplus extern "C" { #endif @@ -56,12 +58,12 @@ struct lttng_session_descriptor; * Where CREATION_TIME is time of the creation of the session on the session * daemon in the form "yyyymmdd-hhmmss". * - * Network output locations can also be auto-genated by leaving the + * Network output locations can also be auto-generated by leaving the * 'control_url' and 'data_url' output parameters unspecified. In such cases, * the session daemon will create a default output targeting a relay daemon * at net://127.0.0.1, using the default 'control' and 'data' ports. * - * The format of the 'control_url' and 'data_url' paramaters is: + * The format of the 'control_url' and 'data_url' parameters is: * NETPROTO://(HOST | IPADDR)[:CTRLPORT[:DATAPORT]][/TRACEPATH] * * NETPROTO: Network protocol, amongst: @@ -103,7 +105,7 @@ enum lttng_session_descriptor_status { * * Returns an lttng_session_descriptor instance on success, NULL on error. */ -extern struct lttng_session_descriptor * +LTTNG_EXPORT extern struct lttng_session_descriptor * lttng_session_descriptor_create(const char *name); /* @@ -112,11 +114,11 @@ lttng_session_descriptor_create(const char *name); * The 'name' parameter can be left NULL to auto-generate a session name. * * The 'path' must either be an absolute path or it can be left NULL to - * use the default local outout destination. + * use the default local output destination. * * Returns an lttng_session_descriptor instance on success, NULL on error. */ -extern struct lttng_session_descriptor * +LTTNG_EXPORT extern struct lttng_session_descriptor * lttng_session_descriptor_local_create(const char *name, const char *path); /* @@ -129,7 +131,7 @@ lttng_session_descriptor_local_create(const char *name, const char *path); * * Returns an lttng_session_descriptor instance on success, NULL on error. */ -extern struct lttng_session_descriptor * +LTTNG_EXPORT extern struct lttng_session_descriptor * lttng_session_descriptor_network_create(const char *name, const char *control_url, const char *data_url); @@ -140,7 +142,7 @@ lttng_session_descriptor_network_create(const char *name, * * Returns an lttng_session_descriptor instance on success, NULL on error. */ -extern struct lttng_session_descriptor * +LTTNG_EXPORT extern struct lttng_session_descriptor * lttng_session_descriptor_snapshot_create(const char *name); /* @@ -153,7 +155,7 @@ lttng_session_descriptor_snapshot_create(const char *name); * * Returns an lttng_session_descriptor instance on success, NULL on error. */ -extern struct lttng_session_descriptor * +LTTNG_EXPORT extern struct lttng_session_descriptor * lttng_session_descriptor_snapshot_local_create(const char *name, const char *path); @@ -168,7 +170,7 @@ lttng_session_descriptor_snapshot_local_create(const char *name, * * Returns an lttng_session_descriptor instance on success, NULL on error. */ -extern struct lttng_session_descriptor * +LTTNG_EXPORT extern struct lttng_session_descriptor * lttng_session_descriptor_snapshot_network_create(const char *name, const char *control_url, const char *data_url); @@ -185,7 +187,7 @@ lttng_session_descriptor_snapshot_network_create(const char *name, * * Returns an lttng_session_descriptor instance on success, NULL on error. */ -extern struct lttng_session_descriptor * +LTTNG_EXPORT extern struct lttng_session_descriptor * lttng_session_descriptor_live_create( const char *name, unsigned long long live_timer_interval_us); @@ -205,7 +207,7 @@ lttng_session_descriptor_live_create( * * Returns an lttng_session_descriptor instance on success, NULL on error. */ -extern struct lttng_session_descriptor * +LTTNG_EXPORT extern struct lttng_session_descriptor * lttng_session_descriptor_live_network_create( const char *name, const char *control_url, const char *data_url, @@ -226,7 +228,7 @@ lttng_session_descriptor_live_network_create( * NULL, and LTTNG_SESSION_DESCRIPTOR_STATUS_UNSET if the descriptor's * name parameter is unset. */ -extern enum lttng_session_descriptor_status +LTTNG_EXPORT extern enum lttng_session_descriptor_status lttng_session_descriptor_get_session_name( const struct lttng_session_descriptor *descriptor, const char **name); @@ -237,7 +239,7 @@ lttng_session_descriptor_get_session_name( * This does not destroy the session on the session daemon; it releases * the resources allocated by the descriptor object. */ -extern void lttng_session_descriptor_destroy( +LTTNG_EXPORT extern void lttng_session_descriptor_destroy( struct lttng_session_descriptor *descriptor); #ifdef __cplusplus