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

updated testparser to work with the new api. Debugging time now

This commit is contained in:
Marenz 2011-04-17 13:25:06 +02:00
parent 69ca100ed0
commit b6ef420efa
5 changed files with 46 additions and 67 deletions

View file

@ -9,12 +9,12 @@ enum PSYC_Flags
enum PSYC_ReturnCodes
{
PSYC_SUCCESS = 0,
PSYC_INSUFFICIENT = 1,
PSYC_ROUTING = 2,
PSYC_ENTITY = 3,
PSYC_COMPLETE = 4,
PSYC_HEADER_COMPLETE = 5,
PSYC_METHOD = 1,
PSYC_INSUFFICIENT,
PSYC_ROUTING,
PSYC_ENTITY,
PSYC_COMPLETE,
PSYC_HEADER_COMPLETE,
};
@ -35,7 +35,7 @@ typedef struct
unsigned int contentLength;
} PSYC_State;
#ifndef PSYC_COMPILE_LIBRARY
inline PSYC_Array PSYC_CreateArray (uint8_t* const memory, unsigned int length)
{
PSYC_Array arr = {length, memory};
@ -60,15 +60,15 @@ inline void PSYC_nextBuffer (PSYC_State* state, PSYC_Array newBuf)
}
inline int PSYC_parse(PSYC_State* state,
PSYC_Array* name, PSYC_Array* value,
uint8_t* modifier, unsigned long *expectedBytes);
inline unsigned int PSYC_getBodyLength (PSYC_State* state)
{
return state->length;
}
#endif
int PSYC_parse(PSYC_State* state,
PSYC_Array* name, PSYC_Array* value,
uint8_t* modifier, unsigned long *expectedBytes);