Name
yw_packet_new -- make new empty packet
Synopsis
YwPacket *yw_packet_new
(YwPacketType type);
DESCRIPTION
This function constructs new empty packet of type type.
type argument is of type YwPacketType, defined as follows:
typedef enum {
yw_call_packet = 'c',
yw_void_call_packet = 'v',
yw_reply_packet = 'r',
yw_taglist_packet = 't'
} YwPacketType;
|
When type argument is invalid this function bombs.
RETURN VALUE
Pointer to newly allocated packet is returned. It should be
released using yw_packet_free(3) when no longed needed.
SEE ALSO
yw_packet_make
(3),
yw_packet_free
(3),
yw_packet_copyof
(3),
INFO
Generated from: packet.c,v 1.10 2001/05/21 09:58:51 malekith Exp.