1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00

added check for invalid flags combination

This commit is contained in:
Marenz 2011-04-30 15:48:52 +02:00
parent 6463c3e9bb
commit 3e90a87c45
2 changed files with 7 additions and 0 deletions

View file

@ -21,6 +21,7 @@
typedef enum
{
/// Parse only the header
PSYC_PARSE_HEADER_ONLY = 1,
/// Expects only the content part of a packet. The length of the content must fit exactly in this case
PSYC_PARSE_BEGIN_AT_CONTENT = 2,
@ -32,6 +33,8 @@ typedef enum
*/
typedef enum
{
/// Invalid combination of flags
PSYC_PARSE_ERROR_INVALID_FLAGS = -10,
PSYC_PARSE_ERROR_END = -9,
PSYC_PARSE_ERROR_BODY = -8,
PSYC_PARSE_ERROR_METHOD = -7,