mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
more PSYC_Packet fields; s/Var/Modifier/
This commit is contained in:
parent
29f6e6c432
commit
f6448c8fe7
4 changed files with 22 additions and 7 deletions
|
@ -79,18 +79,31 @@ typedef enum
|
|||
PSYC_LIST_BINARY = 2,
|
||||
} PSYC_ListType;
|
||||
|
||||
typedef enum {
|
||||
PSYC_MODIFIER_CHECK_LENGTH = 0,
|
||||
PSYC_MODIFIER_NEED_LENGTH = 1,
|
||||
PSYC_MODIFIER_NO_LENGTH = 2,
|
||||
PSYC_MODIFIER_ROUTING = 3,
|
||||
} PSYC_ModifierType;
|
||||
|
||||
typedef enum {
|
||||
PSYC_CONTENT_CHECK_LENGTH = 0,
|
||||
PSYC_CONTENT_NEED_LENGTH = 1,
|
||||
PSYC_CONTENT_NO_LENGTH = 2,
|
||||
} PSYC_ContentType;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
size_t length;
|
||||
const char* ptr;
|
||||
} PSYC_Array;
|
||||
|
||||
|
||||
/* intermediate struct for a PSYC variable modification */
|
||||
typedef struct {
|
||||
char oper; // not call it 'operator' as C++ may not like that..?
|
||||
PSYC_Array name;
|
||||
PSYC_Array parameter;
|
||||
PSYC_Array value;
|
||||
PSYC_ModifierType type;
|
||||
} PSYC_Modifier;
|
||||
|
||||
/* intermediate struct for a PSYC packet */
|
||||
|
@ -99,6 +112,8 @@ typedef struct {
|
|||
PSYC_Modifier **entity; // Header
|
||||
PSYC_Array method;
|
||||
PSYC_Array data;
|
||||
PSYC_ContentType contentType;
|
||||
size_t contentLength;
|
||||
} PSYC_Packet;
|
||||
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ typedef struct
|
|||
*/
|
||||
inline void PSYC_initRenderState (PSYC_RenderState* state);
|
||||
|
||||
int PSYC_renderVar(PSYC_RenderState* render,
|
||||
int PSYC_renderModifier(PSYC_RenderState* render,
|
||||
const char* name, size_t nlength,
|
||||
const char* value, size_t vlength,
|
||||
PSYC_RenderFlag flags, char oper);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue