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

PSYC_Packet struct?

This commit is contained in:
psyc://psyced.org/~lynX 2011-04-22 22:44:14 +02:00
parent 4de626227a
commit 746054dd03

View file

@ -85,6 +85,23 @@ typedef struct
const char* ptr; const char* ptr;
} PSYC_Array; } 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_Modifier;
/* intermediate struct for a PSYC packet */
typedef struct {
PSYC_Modifier **routing; // Header
PSYC_Modifier **entity; // Header
PSYC_Array method;
PSYC_Array data;
} PSYC_Packet;
/// Routing vars in alphabetical order. /// Routing vars in alphabetical order.
extern const PSYC_Array PSYC_routingVars[]; extern const PSYC_Array PSYC_routingVars[];
/// Number of routing vars. /// Number of routing vars.