#ifndef __LIBCT_ERRORS_H__
#define __LIBCT_ERRORS_H__
/*
 * This file contains errors, that can be returned from various
 * library calls
 */

/* Generic */
#define LCTERR_BADCTSTATE	-2	/* Bad container state */
#define LCTERR_BADFSTYPE	-3	/* Bad FS type */
#define LCTERR_BADNETTYPE	-4	/* Bad Net type */
#define LCTERR_BADOPTION	-5	/* Bad option requested */

/* RPC-specific ones */
#define LCTERR_BADCTRID		-42	/* Bad container remote ID given */
#define LCTERR_BADCTRNAME	-43	/* Bad name on open */
#define LCTERR_RPCUNKNOWN	-44	/* Remote problem , but err is not given */
#define LCTERR_RPCCOMM		-45	/* Error communicating via channel */

#endif /* __LIBCT_ERRORS_H__ */

#ifndef __LIBCT_ERRORS_H__
#define __LIBCT_ERRORS_H__
/*
 * This file contains errors, that can be returned from various
 * library calls
 */

/*
 * -1 is "reserved" for generic "something went wrong" result
 * since this value can be (well, is) widely explicitly used
 * all over the code.
 */

/* Generic */
#define LCTERR_BADCTSTATE	-2	/* Bad container state */
#define LCTERR_BADFSTYPE	-3	/* Bad FS type */
#define LCTERR_BADNETTYPE	-4	/* Bad Net type */
#define LCTERR_BADOPTION	-5	/* Bad option requested */

/* RPC-specific ones */
#define LCTERR_BADCTRID		-42	/* Bad container remote ID given */
#define LCTERR_BADCTRNAME	-43	/* Bad name on open */
#define LCTERR_RPCUNKNOWN	-44	/* Remote problem , but err is not given */
#define LCTERR_RPCCOMM		-45	/* Error communicating via channel */

#endif /* __LIBCT_ERRORS_H__ */

Add comment about "reserved" -1 value
err: Add comment about "reserved" -1 value

Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>
