mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
spyc: use libpsyc for parsing & rendering
This commit is contained in:
parent
a21b0024ef
commit
ffabd7af08
12 changed files with 343 additions and 242 deletions
|
@ -1,9 +1,18 @@
|
|||
#ifndef LPC_LIBPSYC_H
|
||||
#define LPC_LIBPSYC_H 1
|
||||
# define LPC_LIBPSYC_H 1
|
||||
|
||||
#define PACKET_ROUTING 0 // 2-dimensional mapping of routing modifiers
|
||||
#define PACKET_ENTITY 1 // 2-dimensional mapping of entity modifiers
|
||||
#define PACKET_METHOD 2 // PSYC method string
|
||||
#define PACKET_BODY 3 // packet body.. possibly binary data
|
||||
# define PACKET_ROUTING 0 // 2-dimensional mapping of routing modifiers
|
||||
# define PACKET_ENTITY 1 // 2-dimensional mapping of entity modifiers
|
||||
# define PACKET_METHOD 2 // PSYC method string
|
||||
# define PACKET_BODY 3 // packet body.. possibly binary data
|
||||
|
||||
// error codes returned by psyc_parse
|
||||
# define PSYC_PARSE_ERROR_AMOUNT 1
|
||||
# define PSYC_PARSE_ERROR_DEGREE 2
|
||||
# define PSYC_PARSE_ERROR_DATE 3
|
||||
# define PSYC_PARSE_ERROR_TIME 4
|
||||
# define PSYC_PARSE_ERROR_FLAG 5
|
||||
# define PSYC_PARSE_ERROR_LIST 6
|
||||
# define PSYC_PARSE_ERROR_LIST_TOO_LARGE 7
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue