X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=include%2Fpacket.h;h=aed45023942eca123883e8c90b07ff0945a517de;hb=3d59398668e6f0977c147c5efeefe7582d05b25b;hp=9c2c639030c714987321e60346973161b1a33e51;hpb=b70944c4b84fc2b707d0853ddf03975569dac2bd;p=ircu2.10.12-pk.git diff --git a/include/packet.h b/include/packet.h index 9c2c639..aed4502 100644 --- a/include/packet.h +++ b/include/packet.h @@ -1,11 +1,22 @@ -#ifndef PACKET_H -#define PACKET_H +/** @file packet.h + * @brief Declarations for packet handling functions. + * @version $Id$ + */ +#ifndef INCLUDED_packet_h +#define INCLUDED_packet_h +#ifndef INCLUDED_sys_types_h +#include +#define INCLUDED_sys_types_h +#endif + +struct Client; -/*============================================================================= - * Proto types +/* + * Prototypes */ -extern int dopacket(aClient *cptr, char *buffer, int length); -extern int client_dopacket(aClient *cptr, size_t length); +extern int server_dopacket(struct Client* cptr, const char* buffer, int length); +extern int connect_dopacket(struct Client* cptr, const char* buffer, int length); +extern int client_dopacket(struct Client* cptr, unsigned int length); -#endif /* PACKET_H */ +#endif /* INCLUDED_packet_h */