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

compiles now. setting of expectedBytes and parsing of length is still missing

This commit is contained in:
Marenz 2011-04-16 11:30:26 +02:00
parent 35d33eda39
commit cbfaeabdef
3 changed files with 26 additions and 28 deletions

View file

@ -1,15 +1,11 @@
#include <stdint.h>
#include <string.h>
enum
{
}
typedef struct
{
unsigned int length;
const uint8_t *ptr;
const uint8_t * ptr;
} PSYC_Array;
typedef struct
@ -23,7 +19,7 @@ typedef struct
} PSYC_State;
inline PSYC_Array (const uint8_t memory, unsigned int length)
inline PSYC_Array PSYC_CreateArray (uint8_t* const memory, unsigned int length)
{
PSYC_Array arr = {length, memory};
@ -41,11 +37,9 @@ inline void PSYC_nextBuffer (PSYC_State* state, PSYC_Array newBuf)
}
int PSYC_parse(PSYC_State* state,
PSYC_ConstArray name,
PSYC_ConstArray value,
uint8_t modifier,
unsigned long *expectedBytes);
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)