diff --git a/include/psyc/packet.h b/include/psyc/packet.h index 31c7748..350a418 100644 --- a/include/psyc/packet.h +++ b/include/psyc/packet.h @@ -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 diff --git a/src/packet.c b/src/packet.c index d96e31a..aed1aa5 100644 --- a/src/packet.c +++ b/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); }