* variable "LTTNG_UST_REGISTER_TIMEOUT". Note that if the sessiond is not
* found, the application proceeds directly without any delay.
*/
* variable "LTTNG_UST_REGISTER_TIMEOUT". Note that if the sessiond is not
* found, the application proceeds directly without any delay.
*/
-__attribute__((visibility("hidden")))
-ssize_t ustcomm_recv_unix_sock(int sock, void *buf, size_t len);
+ssize_t ustcomm_recv_unix_sock(int sock, void *buf, size_t len)
+ __attribute__((visibility("hidden")));
-__attribute__((visibility("hidden")))
-ssize_t ustcomm_send_unix_sock(int sock, const void *buf, size_t len);
+ssize_t ustcomm_send_unix_sock(int sock, const void *buf, size_t len)
+ __attribute__((visibility("hidden")));
-__attribute__((visibility("hidden")))
-ssize_t ustcomm_send_fds_unix_sock(int sock, int *fds, size_t nb_fd);
+ssize_t ustcomm_send_fds_unix_sock(int sock, int *fds, size_t nb_fd)
+ __attribute__((visibility("hidden")));
-__attribute__((visibility("hidden")))
-ssize_t ustcomm_recv_fds_unix_sock(int sock, int *fds, size_t nb_fd);
+ssize_t ustcomm_recv_fds_unix_sock(int sock, int *fds, size_t nb_fd)
+ __attribute__((visibility("hidden")));
-__attribute__((visibility("hidden")))
-int ustcomm_send_app_msg(int sock, struct ustcomm_ust_msg *lum);
+int ustcomm_send_app_msg(int sock, struct ustcomm_ust_msg *lum)
+ __attribute__((visibility("hidden")));
int ustcomm_send_app_cmd(int sock,
struct ustcomm_ust_msg *lum,
int ustcomm_send_app_cmd(int sock,
struct ustcomm_ust_msg *lum,
- void **chan_data, uint64_t len, int *wakeup_fd);
+ void **chan_data, uint64_t len, int *wakeup_fd)
+ __attribute__((visibility("hidden")));
int ustcomm_recv_stream_from_sessiond(int sock,
uint64_t *memory_map_size,
int ustcomm_recv_stream_from_sessiond(int sock,
uint64_t *memory_map_size,
/*
* Returns 0 on success, negative error value on error.
* Returns -EPIPE or -ECONNRESET if other end has hung up.
*/
/*
* Returns 0 on success, negative error value on error.
* Returns -EPIPE or -ECONNRESET if other end has hung up.
*/
int ustcomm_send_reg_msg(int sock,
enum ustctl_socket_type type,
uint32_t bits_per_long,
int ustcomm_send_reg_msg(int sock,
enum ustctl_socket_type type,
uint32_t bits_per_long,
uint32_t uint16_t_alignment,
uint32_t uint32_t_alignment,
uint32_t uint64_t_alignment,
uint32_t uint16_t_alignment,
uint32_t uint32_t_alignment,
uint32_t uint64_t_alignment,
/*
* Returns 0 on success, negative error value on error.
* Returns -EPIPE or -ECONNRESET if other end has hung up.
*/
/*
* Returns 0 on success, negative error value on error.
* Returns -EPIPE or -ECONNRESET if other end has hung up.
*/
int ustcomm_register_event(int sock,
struct lttng_ust_session *session,
int session_objd, /* session descriptor */
int ustcomm_register_event(int sock,
struct lttng_ust_session *session,
int session_objd, /* session descriptor */
int loglevel,
const char *signature, /* event signature (input) */
size_t nr_fields, /* fields */
int loglevel,
const char *signature, /* event signature (input) */
size_t nr_fields, /* fields */
/*
* Returns 0 on success, negative error value on error.
* Returns -EPIPE or -ECONNRESET if other end has hung up.
*/
/*
* Returns 0 on success, negative error value on error.
* Returns -EPIPE or -ECONNRESET if other end has hung up.
*/
int ustcomm_register_enum(int sock,
int session_objd, /* session descriptor */
const char *enum_name, /* enum name (input) */
size_t nr_entries, /* entries */
int ustcomm_register_enum(int sock,
int session_objd, /* session descriptor */
const char *enum_name, /* enum name (input) */
size_t nr_entries, /* entries */
- struct lttng_ust_enum_entry **entries,
- uint64_t *id); /* enum id (output) */
+ const struct lttng_ust_enum_entry **entries,
+ uint64_t *id) /* enum id (output) */
+ __attribute__((visibility("hidden")));
/*
* Returns 0 on success, negative error value on error.
* Returns -EPIPE or -ECONNRESET if other end has hung up.
*/
/*
* Returns 0 on success, negative error value on error.
* Returns -EPIPE or -ECONNRESET if other end has hung up.
*/
int ustcomm_register_channel(int sock,
struct lttng_ust_session *session,
int session_objd, /* session descriptor */
int channel_objd, /* channel descriptor */
size_t nr_ctx_fields,
int ustcomm_register_channel(int sock,
struct lttng_ust_session *session,
int session_objd, /* session descriptor */
int channel_objd, /* channel descriptor */
size_t nr_ctx_fields,
-__attribute__((visibility("hidden")))
-int ustcomm_setsockopt_rcv_timeout(int sock, unsigned int msec);
+int ustcomm_setsockopt_rcv_timeout(int sock, unsigned int msec)
+ __attribute__((visibility("hidden")));
-__attribute__((visibility("hidden")))
-int ustcomm_setsockopt_snd_timeout(int sock, unsigned int msec);
+int ustcomm_setsockopt_snd_timeout(int sock, unsigned int msec)
+ __attribute__((visibility("hidden")));