mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
+
This commit is contained in:
parent
e22d028c15
commit
f9b6b9a41d
2 changed files with 11 additions and 11 deletions
|
@ -136,10 +136,10 @@ psycPacket psyc_newPacket2 (psycModifier *routing, size_t routinglen,
|
||||||
const char *data, size_t datalen,
|
const char *data, size_t datalen,
|
||||||
psycPacketFlag flag);
|
psycPacketFlag flag);
|
||||||
|
|
||||||
psycPacket psyc_newPacketContent (psycHeader *routing, psycString *content,
|
psycPacket psyc_newRawPacket (psycHeader *routing, psycString *content,
|
||||||
psycPacketFlag flag);
|
psycPacketFlag flag);
|
||||||
|
|
||||||
psycPacket psyc_newPacketContent2 (psycModifier *routing, size_t routinglen,
|
psycPacket psyc_newRawPacket2 (psycModifier *routing, size_t routinglen,
|
||||||
const char *content, size_t contentlen,
|
const char *content, size_t contentlen,
|
||||||
psycPacketFlag flag);
|
psycPacketFlag flag);
|
||||||
|
|
||||||
|
|
|
@ -171,7 +171,7 @@ psycPacket psyc_newPacket2 (psycModifier *routing, size_t routinglen,
|
||||||
}
|
}
|
||||||
|
|
||||||
inline
|
inline
|
||||||
psycPacket psyc_newPacketContent (psycHeader *routing, psycString *content,
|
psycPacket psyc_newRawPacket (psycHeader *routing, psycString *content,
|
||||||
psycPacketFlag flag)
|
psycPacketFlag flag)
|
||||||
{
|
{
|
||||||
psycPacket p = {*routing, {0,0}, {0,0}, {0,0}, *content, 0, 0, flag};
|
psycPacket p = {*routing, {0,0}, {0,0}, {0,0}, *content, 0, 0, flag};
|
||||||
|
@ -184,12 +184,12 @@ psycPacket psyc_newPacketContent (psycHeader *routing, psycString *content,
|
||||||
}
|
}
|
||||||
|
|
||||||
inline
|
inline
|
||||||
psycPacket psyc_newPacketContent2 (psycModifier *routing, size_t routinglen,
|
psycPacket psyc_newRawPacket2 (psycModifier *routing, size_t routinglen,
|
||||||
const char *content, size_t contentlen,
|
const char *content, size_t contentlen,
|
||||||
psycPacketFlag flag)
|
psycPacketFlag flag)
|
||||||
{
|
{
|
||||||
psycHeader r = {routinglen, routing};
|
psycHeader r = {routinglen, routing};
|
||||||
psycString c = {contentlen, content};
|
psycString c = {contentlen, content};
|
||||||
|
|
||||||
return psyc_newPacketContent(&r, &c, flag);
|
return psyc_newRawPacket(&r, &c, flag);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue