X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Flttng%2Fust-ctl.h;h=a067480b0bc8cff9aa9d9389680432f313f715a0;hb=00b217e613614b8addc4ee2bbcdec473275842fd;hp=c2b255cd6cb6032cc113799754dc2a0b6f1085e7;hpb=7bc53e94a229963972aa78880b361b1510fdd268;p=lttng-ust.git diff --git a/include/lttng/ust-ctl.h b/include/lttng/ust-ctl.h index c2b255cd..a067480b 100644 --- a/include/lttng/ust-ctl.h +++ b/include/lttng/ust-ctl.h @@ -23,7 +23,7 @@ /* * Error values: all the following functions return: - * >= 0: Sucess (LTTNG_UST_OK) + * >= 0: Success (LTTNG_UST_OK) * < 0: error code. */ int ustctl_register_done(int sock); @@ -34,8 +34,6 @@ int ustctl_open_metadata(int sock, int session_handle, int ustctl_create_channel(int sock, int session_handle, struct lttng_ust_channel_attr *chops, struct lttng_ust_object_data **channel_data); -int ustctl_create_stream(int sock, struct lttng_ust_object_data *channel_data, - struct lttng_ust_object_data **stream_data); int ustctl_create_event(int sock, struct lttng_ust_event *ev, struct lttng_ust_object_data *channel_data, struct lttng_ust_object_data **event_data); @@ -50,6 +48,15 @@ int ustctl_disable(int sock, struct lttng_ust_object_data *object); int ustctl_start_session(int sock, int handle); int ustctl_stop_session(int sock, int handle); +/* + * Return -LTTNG_UST_ERR_NOENT if no more stream is available for creation. + * Return 0 on success. + * Return negative error value on system error. + * Return positive error value on UST error. + */ +int ustctl_create_stream(int sock, struct lttng_ust_object_data *channel_data, + struct lttng_ust_object_data **stream_data); + /* * ustctl_tracepoint_list returns a tracepoint list handle, or negative * error value.