Add lttng-error.h containing every API err. code
authorDavid Goulet <dgoulet@efficios.com>
Wed, 22 Aug 2012 19:04:52 +0000 (15:04 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 24 Aug 2012 16:17:16 +0000 (12:17 -0400)
Move all error codes from sessiond-comm.h to lttng-error.h and rename
them changing the prefix LTTCOMM* to the LTTNG_ERR_*.

With this change, the error codes will soon be public in
<lttng/lttng-error.h> that lttng.h will include by default.

This commit also removes a bunch of unused code but does NOT changed the
values so we don't break the 2.0 API.

The lttng_strerror() call uses the new error_get_str function. The
lttcomm_* API now only have internal communication error code such as
the consumerd errors. Those codes must NEVER be exposed to the public
API or, in that case, must be moved to lttng-error.h *without* changing
the current values of the lttng_error_code enum.

The gaps in the lttng_error_code enum found in lttng-error.h can be used
for new error codes but the assigned value are considered immutable for
the 2.x API.

Signed-off-by: David Goulet <dgoulet@efficios.com>

No differences found
This page took 0.025517 seconds and 4 git commands to generate.