From: David Goulet Date: Wed, 30 Nov 2011 19:35:19 +0000 (-0500) Subject: Add context exist error code X-Git-Tag: v2.0-pre15~53 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=ae357384bdcd4fece4f1c5ae4311d82a1345bf67;p=lttng-tools.git Add context exist error code Signed-off-by: David Goulet --- diff --git a/include/lttng-sessiond-comm.h b/include/lttng-sessiond-comm.h index 90ff06233..3d31ff842 100644 --- a/include/lttng-sessiond-comm.h +++ b/include/lttng-sessiond-comm.h @@ -134,6 +134,7 @@ enum lttcomm_return_code { LTTCOMM_UST_LIST_FAIL, /* UST listing events failed */ LTTCOMM_UST_EVENT_EXIST, /* UST event exist */ LTTCOMM_UST_EVENT_NOT_FOUND, /* UST event not found */ + LTTCOMM_UST_CONTEXT_EXIST, /* UST context exist */ CONSUMERD_COMMAND_SOCK_READY, /* when consumerd command socket ready */ CONSUMERD_SUCCESS_RECV_FD, /* success on receiving fds */ diff --git a/liblttng-sessiond-comm/lttng-sessiond-comm.c b/liblttng-sessiond-comm/lttng-sessiond-comm.c index 5fe26f3a0..3672a83ab 100644 --- a/liblttng-sessiond-comm/lttng-sessiond-comm.c +++ b/liblttng-sessiond-comm/lttng-sessiond-comm.c @@ -94,6 +94,7 @@ static const char *lttcomm_readable_code[] = { [ LTTCOMM_ERR_INDEX(LTTCOMM_UST_LIST_FAIL) ] = "Listing UST events failed", [ LTTCOMM_ERR_INDEX(LTTCOMM_UST_EVENT_EXIST) ] = "UST event already exist", [ LTTCOMM_ERR_INDEX(LTTCOMM_UST_EVENT_NOT_FOUND)] = "UST event not found", + [ LTTCOMM_ERR_INDEX(LTTCOMM_UST_CONTEXT_EXIST)] = "UST context already exist", [ LTTCOMM_ERR_INDEX(CONSUMERD_COMMAND_SOCK_READY) ] = "consumerd command socket ready", [ LTTCOMM_ERR_INDEX(CONSUMERD_SUCCESS_RECV_FD) ] = "consumerd success on receiving fds", [ LTTCOMM_ERR_INDEX(CONSUMERD_ERROR_RECV_FD) ] = "consumerd error on receiving fds",