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,11 +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_newRawPacket (psycHeader *routing, psycString *content,
|
||||
psycPacketFlag flag);
|
||||
|
||||
psycPacket psyc_newPacketContent2 (psycModifier *routing, size_t routinglen,
|
||||
const char *content, size_t contentlen,
|
||||
psycPacketFlag flag);
|
||||
psycPacket psyc_newRawPacket2 (psycModifier *routing, size_t routinglen,
|
||||
const char *content, size_t contentlen,
|
||||
psycPacketFlag flag);
|
||||
|
||||
#endif // PSYC_PACKET_H
|
||||
|
|
12
src/packet.c
12
src/packet.c
|
@ -171,8 +171,8 @@ psycPacket psyc_newPacket2 (psycModifier *routing, size_t routinglen,
|
|||
}
|
||||
|
||||
inline
|
||||
psycPacket psyc_newPacketContent (psycHeader *routing, psycString *content,
|
||||
psycPacketFlag flag)
|
||||
psycPacket psyc_newRawPacket (psycHeader *routing, psycString *content,
|
||||
psycPacketFlag 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
|
||||
psycPacket psyc_newPacketContent2 (psycModifier *routing, size_t routinglen,
|
||||
const char *content, size_t contentlen,
|
||||
psycPacketFlag flag)
|
||||
psycPacket psyc_newRawPacket2 (psycModifier *routing, size_t routinglen,
|
||||
const char *content, size_t contentlen,
|
||||
psycPacketFlag flag)
|
||||
{
|
||||
psycHeader r = {routinglen, routing};
|
||||
psycString c = {contentlen, content};
|
||||
|
||||
return psyc_newPacketContent(&r, &c, flag);
|
||||
return psyc_newRawPacket(&r, &c, flag);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue