X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Flttng%2Fust-error.h;h=cbcb5ebd161a9dd85acc421c3e7705a9b1989bf8;hb=e56bb47c3af00db3bc9e2dea711bef4882e6ef4c;hp=49890a965db426b7488c6577b45e843c5c51ee5e;hpb=7bc53e94a229963972aa78880b361b1510fdd268;p=lttng-ust.git diff --git a/include/lttng/ust-error.h b/include/lttng/ust-error.h index 49890a96..cbcb5ebd 100644 --- a/include/lttng/ust-error.h +++ b/include/lttng/ust-error.h @@ -30,13 +30,26 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + /* * ustcomm error code. */ enum lttng_ust_error_code { LTTNG_UST_OK = 0, /* Ok */ LTTNG_UST_ERR = 1024, /* Unknown Error */ - LTTNG_UST_ERR_NOENT, /* No entry */ + LTTNG_UST_ERR_NOENT = 1025, /* No entry */ + LTTNG_UST_ERR_EXIST = 1026, /* Object exists */ + LTTNG_UST_ERR_INVAL = 1027, /* Invalid argument */ + LTTNG_UST_ERR_PERM = 1028, /* Permission denied */ + LTTNG_UST_ERR_NOSYS = 1029, /* Not implemented */ + LTTNG_UST_ERR_EXITING = 1030, /* Process is exiting */ + + LTTNG_UST_ERR_INVAL_MAGIC = 1031, /* Invalid magic number */ + LTTNG_UST_ERR_INVAL_SOCKET_TYPE = 1032, /* Invalid socket type */ + LTTNG_UST_ERR_UNSUP_MAJOR = 1033, /* Unsupported major version */ /* MUST be last element */ LTTNG_UST_ERR_NR, /* Last element */ @@ -48,4 +61,8 @@ enum lttng_ust_error_code { */ extern const char *lttng_ust_strerror(int code); +#ifdef __cplusplus +} +#endif + #endif /* _LTTNG_UST_ERROR_H */