1f4783a9fSFrançois Revol #ifndef _XDRINPACKET_H 2f4783a9fSFrançois Revol 3f4783a9fSFrançois Revol #define _XDRINPACKET_H 4f4783a9fSFrançois Revol 5f4783a9fSFrançois Revol #include <SupportDefs.h> 6f4783a9fSFrançois Revol 7f4783a9fSFrançois Revol struct XDRInPacket 8f4783a9fSFrançois Revol { 9f4783a9fSFrançois Revol uint8 *fBuffer; 10f4783a9fSFrançois Revol size_t fOffset; 11f4783a9fSFrançois Revol }; 12f4783a9fSFrançois Revol 13f4783a9fSFrançois Revol void XDRInPacketInit (struct XDRInPacket *packet); 14f4783a9fSFrançois Revol void XDRInPacketDestroy (struct XDRInPacket *packet); 15f4783a9fSFrançois Revol int32 XDRInPacketGetInt32 (struct XDRInPacket *packet); 16*0c729c22SJérôme Duval status_t XDRInPacketGetFixed (struct XDRInPacket *packet, void *buffer, size_t len); 17*0c729c22SJérôme Duval status_t XDRInPacketGetDynamic (struct XDRInPacket *packet, void *buffer, size_t *_len); 18f4783a9fSFrançois Revol char *XDRInPacketGetString (struct XDRInPacket *packet); 19f4783a9fSFrançois Revol void XDRInPacketSetTo (struct XDRInPacket *packet, uint8 *buffer, size_t offset); 20f4783a9fSFrançois Revol 21f4783a9fSFrançois Revol #endif 22