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

added state op return codes for psyc_parse, added stateop to PsycPacket

This commit is contained in:
tg(x) 2011-11-09 21:22:58 +01:00
parent 9f9bb2ffaa
commit 49dedd5864
9 changed files with 91 additions and 91 deletions

View file

@ -98,6 +98,11 @@ int test_input (int i, char *recvbuf, size_t nbytes) {
packet->routing.lines++;
break;
case PSYC_PARSE_STATE_SYNC:
case PSYC_PARSE_STATE_RESET:
packet->stateop = oper;
break;
case PSYC_PARSE_ENTITY_START:
case PSYC_PARSE_ENTITY_CONT:
case PSYC_PARSE_ENTITY_END:

View file

@ -30,6 +30,7 @@ int testPresence (const char *avail, int availlen,
entity, PSYC_NUM_ELEM(entity),
PSYC_C2ARG("_notice_presence"),
NULL, 0,
PSYC_STATE_NOOP,
PSYC_PACKET_CHECK_LENGTH);
char buffer[512];
@ -82,6 +83,7 @@ int testList (const char *rendered, uint8_t verbose)
entity, PSYC_NUM_ELEM(entity),
PSYC_C2ARG("_test_list"),
PSYC_C2ARG("list test"),
PSYC_STATE_NOOP,
PSYC_PACKET_CHECK_LENGTH);
char buffer[512];