xref: /haiku/src/add-ons/kernel/file_systems/nfs/XDRInPacket.h (revision f4783a9fb9129819d76ecd61907238780345ea9c)
1*f4783a9fSFrançois Revol #ifndef _XDRINPACKET_H
2*f4783a9fSFrançois Revol 
3*f4783a9fSFrançois Revol #define _XDRINPACKET_H
4*f4783a9fSFrançois Revol 
5*f4783a9fSFrançois Revol #include <SupportDefs.h>
6*f4783a9fSFrançois Revol 
7*f4783a9fSFrançois Revol struct XDRInPacket
8*f4783a9fSFrançois Revol {
9*f4783a9fSFrançois Revol 	uint8 *fBuffer;
10*f4783a9fSFrançois Revol 	size_t fOffset;
11*f4783a9fSFrançois Revol };
12*f4783a9fSFrançois Revol 
13*f4783a9fSFrançois Revol void XDRInPacketInit (struct XDRInPacket *packet);
14*f4783a9fSFrançois Revol void XDRInPacketDestroy (struct XDRInPacket *packet);
15*f4783a9fSFrançois Revol int32 XDRInPacketGetInt32 (struct XDRInPacket *packet);
16*f4783a9fSFrançois Revol void XDRInPacketGetFixed (struct XDRInPacket *packet, void *buffer, size_t len);
17*f4783a9fSFrançois Revol size_t XDRInPacketGetDynamic (struct XDRInPacket *packet, void *buffer);
18*f4783a9fSFrançois Revol char *XDRInPacketGetString (struct XDRInPacket *packet);
19*f4783a9fSFrançois Revol void XDRInPacketSetTo (struct XDRInPacket *packet, uint8 *buffer, size_t offset);
20*f4783a9fSFrançois Revol 
21*f4783a9fSFrançois Revol #endif
22