mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
parser: fixes routing-only mode, set valueParsed & valueLength for data as well; render: added support for rendering raw content
This commit is contained in:
parent
fea30e3688
commit
fd5d886053
6 changed files with 116 additions and 46 deletions
|
@ -56,6 +56,7 @@ typedef struct
|
|||
psycHeader entity; ///< Entity header.
|
||||
psycString method;
|
||||
psycString data;
|
||||
psycString content;
|
||||
size_t routingLength; ///< Length of routing part.
|
||||
size_t contentLength; ///< Length of content part.
|
||||
size_t length; ///< Total length of packet.
|
||||
|
@ -135,4 +136,11 @@ psycPacket psyc_newPacket2 (psycModifier *routing, size_t routinglen,
|
|||
const char *data, size_t datalen,
|
||||
psycPacketFlag flag);
|
||||
|
||||
psycPacket psyc_newPacketContent (psycHeader *routing, psycString *content,
|
||||
psycPacketFlag flag);
|
||||
|
||||
psycPacket psyc_newPacketContent2 (psycModifier *routing, size_t routinglen,
|
||||
const char *content, size_t contentlen,
|
||||
psycPacketFlag flag);
|
||||
|
||||
#endif // PSYC_PACKET_H
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* All parsing functions and the definitions they use are
|
||||
* defined in this file.
|
||||
*/
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup parser Parsing Functions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue