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

added psyc operator defs

This commit is contained in:
tg(x) 2011-11-09 19:01:05 +01:00
parent 940a18572c
commit 4b31a16ad6
10 changed files with 32 additions and 21 deletions

View file

@ -32,6 +32,7 @@
#define PSYC_NUM_ELEM(a) (sizeof(a) / sizeof(*(a)))
/// Boolean: true/false, yes/no.
typedef enum
{
PSYC_FALSE = 0,
@ -40,15 +41,14 @@ typedef enum
PSYC_YES = 1,
} PsycBool;
/// Return code: OK/error.
typedef enum
{
PSYC_OK = 1,
PSYC_ERROR = -1,
} PsycRC;
/**
* PSYC packet parts.
*/
/// PSYC packet parts.
typedef enum
{
PSYC_PART_RESET = -1,

View file

@ -54,6 +54,15 @@ typedef enum
PSYC_PACKET_NO_LENGTH = 2,
} PsycPacketFlag;
typedef enum
{
PSYC_OPERATOR_SET = ':',
PSYC_OPERATOR_ASSIGN = '=',
PSYC_OPERATOR_AUGMENT = '+',
PSYC_OPERATOR_DIMINISH = '-',
PSYC_OPERATOR_QUERY = '?',
} PsycOperator;
/** Structure for a modifier. */
typedef struct
{