X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Fconstant.h;h=2cbb4609566c174a7e5de91d3407608855ad4248;hp=faa582f7707d6609173b62bd0f45616e685ec455;hb=HEAD;hpb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a diff --git a/include/lttng/constant.h b/include/lttng/constant.h index faa582f77..f20e96458 100644 --- a/include/lttng/constant.h +++ b/include/lttng/constant.h @@ -9,9 +9,7 @@ #define LTTNG_CONSTANT_H #ifndef LTTNG_DEPRECATED -#if defined (__GNUC__) \ - && ((__GNUC_MAJOR__ == 4) && (__GNUC_MINOR__ >= 5) \ - || __GNUC_MAJOR__ >= 5) +#if defined(__GNUC__) && ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 5) || __GNUC__ >= 5) #define LTTNG_DEPRECATED(msg) __attribute__((deprecated(msg))) #else #define LTTNG_DEPRECATED(msg) __attribute__((deprecated)) @@ -35,16 +33,29 @@ /* * Event symbol length. Copied from LTTng kernel ABI. */ -#define LTTNG_SYMBOL_NAME_LEN 256 + +/*! +@brief + Maximum symbol length. + +@ingroup api_gen +*/ +#define LTTNG_SYMBOL_NAME_LEN 256 /* * PROC(5) mentions that PID_MAX_LIMIT may not exceed 2^22 on 64-bit HW. * We prefer to use 32-bits for simplicity's sake. */ -#define LTTNG_MAX_PID INT32_MAX -#define LTTNG_MAX_PID_STR "2147483647" +#define LTTNG_MAX_PID INT32_MAX +#define LTTNG_MAX_PID_STR "2147483647" + +/*! +@brief + Maximum name length. -#define LTTNG_NAME_MAX 255 +@ingroup api_gen +*/ +#define LTTNG_NAME_MAX 255 /* * POSIX guarantees that a host name will not exceed 255 characters. @@ -53,8 +64,8 @@ * * 256 is used to include a trailing NULL character. */ -#define LTTNG_HOST_NAME_MAX 256 +#define LTTNG_HOST_NAME_MAX 256 -#define LTTNG_PATH_MAX 4096 +#define LTTNG_PATH_MAX 4096 #endif /* LTTNG_CONSTANT_H */