1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00
This commit is contained in:
tg(x) 2011-05-06 00:18:25 +02:00
parent e22d028c15
commit f9b6b9a41d
2 changed files with 11 additions and 11 deletions

View file

@ -136,10 +136,10 @@ psycPacket psyc_newPacket2 (psycModifier *routing, size_t routinglen,
const char *data, size_t datalen,
psycPacketFlag flag);
psycPacket psyc_newPacketContent (psycHeader *routing, psycString *content,
psycPacket psyc_newRawPacket (psycHeader *routing, psycString *content,
psycPacketFlag flag);
psycPacket psyc_newPacketContent2 (psycModifier *routing, size_t routinglen,
psycPacket psyc_newRawPacket2 (psycModifier *routing, size_t routinglen,
const char *content, size_t contentlen,
psycPacketFlag flag);

View file

@ -171,7 +171,7 @@ psycPacket psyc_newPacket2 (psycModifier *routing, size_t routinglen,
}
inline
psycPacket psyc_newPacketContent (psycHeader *routing, psycString *content,
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,
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);
}