From f9b6b9a41d93724e0f49035a8ebb9afe49b064b8 Mon Sep 17 00:00:00 2001 From: "tg(x)" <*@tg-x.net> Date: Fri, 6 May 2011 00:18:25 +0200 Subject: [PATCH] + --- include/psyc/packet.h | 10 +++++----- src/packet.c | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) 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); }