X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Fhandle.h;h=c5958b4023e3b361a0496122a35e249435942b3f;hb=3647288fe42b25340f905046f3bd9aef21e12aaa;hp=b1057efe530bc2865bbc3a2dad6d1a5c75b36a31;hpb=1239a312e7e0e4c33948fdaf04e7637cb93c8b10;p=lttng-tools.git diff --git a/include/lttng/handle.h b/include/lttng/handle.h index b1057efe5..c5958b402 100644 --- a/include/lttng/handle.h +++ b/include/lttng/handle.h @@ -31,7 +31,7 @@ extern "C" { */ #define LTTNG_HANDLE_PADDING1 16 struct lttng_handle { - char session_name[NAME_MAX]; + char session_name[LTTNG_NAME_MAX]; struct lttng_domain domain; char padding[LTTNG_HANDLE_PADDING1]; @@ -43,7 +43,11 @@ struct lttng_handle { * This handle contains the session name and domain on which the command will * be executed. A domain is basically a tracer like the kernel or user space. * - * Return an newly allocated handle that should be freed using + * A NULL domain indicates that the handle is not bound to a specific domain. + * This is mostly used for actions that apply on a session and not on a domain + * (e.g lttng_set_consumer_url). + * + * 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,