X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=include%2Flttng%2Flocation.h;h=a1ea16f23a60cd75cf2f09b61e8eee8e28395c7d;hb=HEAD;hp=d875b2484c4795b3e6986a37195580791d17bf09;hpb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a;p=lttng-tools.git diff --git a/include/lttng/location.h b/include/lttng/location.h index d875b2484..a1ea16f23 100644 --- a/include/lttng/location.h +++ b/include/lttng/location.h @@ -8,6 +8,8 @@ #ifndef LTTNG_LOCATION_H #define LTTNG_LOCATION_H +#include + #include #ifdef __cplusplus @@ -38,19 +40,17 @@ struct lttng_trace_archive_location; /* * Get a trace archive location's type. */ -extern enum lttng_trace_archive_location_type -lttng_trace_archive_location_get_type( - const struct lttng_trace_archive_location *location); +LTTNG_EXPORT extern enum lttng_trace_archive_location_type +lttng_trace_archive_location_get_type(const struct lttng_trace_archive_location *location); /* * Get the absolute path of a local trace archive location. * * The trace archive location maintains ownership of the absolute_path. */ -extern enum lttng_trace_archive_location_status +LTTNG_EXPORT extern enum lttng_trace_archive_location_status lttng_trace_archive_location_local_get_absolute_path( - const struct lttng_trace_archive_location *location, - const char **absolute_path); + const struct lttng_trace_archive_location *location, const char **absolute_path); /* * Get the host address of the relay daemon associated to this trace archive @@ -58,47 +58,43 @@ lttng_trace_archive_location_local_get_absolute_path( * * The trace archive location maintains ownership of relay_host. */ -extern enum lttng_trace_archive_location_status -lttng_trace_archive_location_relay_get_host( - const struct lttng_trace_archive_location *location, - const char **relay_host); +LTTNG_EXPORT extern enum lttng_trace_archive_location_status +lttng_trace_archive_location_relay_get_host(const struct lttng_trace_archive_location *location, + const char **relay_host); /* * Get the control port of the relay daemon associated to this trace archive * location. */ -extern enum lttng_trace_archive_location_status +LTTNG_EXPORT extern enum lttng_trace_archive_location_status lttng_trace_archive_location_relay_get_control_port( - const struct lttng_trace_archive_location *location, - uint16_t *control_port); + const struct lttng_trace_archive_location *location, uint16_t *control_port); /* * Get the data port of the relay daemon associated to this trace archive * location. */ -extern enum lttng_trace_archive_location_status +LTTNG_EXPORT extern enum lttng_trace_archive_location_status lttng_trace_archive_location_relay_get_data_port( - const struct lttng_trace_archive_location *location, - uint16_t *data_port); + const struct lttng_trace_archive_location *location, uint16_t *data_port); /* * Get the protocol used to communicate with the relay daemon associated to this * trace archive location. */ -extern enum lttng_trace_archive_location_status +LTTNG_EXPORT extern enum lttng_trace_archive_location_status lttng_trace_archive_location_relay_get_protocol_type( - const struct lttng_trace_archive_location *location, - enum lttng_trace_archive_location_relay_protocol_type *protocol); + const struct lttng_trace_archive_location *location, + enum lttng_trace_archive_location_relay_protocol_type *protocol); /* * Get path relative to the relay daemon's current output path. * * The trace archive location maintains ownership of relative_path. */ -extern enum lttng_trace_archive_location_status +LTTNG_EXPORT extern enum lttng_trace_archive_location_status lttng_trace_archive_location_relay_get_relative_path( - const struct lttng_trace_archive_location *location, - const char **relative_path); + const struct lttng_trace_archive_location *location, const char **relative_path); #ifdef __cplusplus }