bigpoint_packet.h 963 Bytes
#ifndef __BIGPOINT_PACKET_H__
#define __BIGPOINT_PACKET_H__

#include "bigpoint_cclass.h"
#include "bigpoint_dyntype.h"


enum BIGPOINT_PACKET_CONTENT_KEYS {
    BIGPOINT_PACKET_HEADER = 0,
    BIGPOINT_PACKET_DATA
};

struct BIGPOINT_PACKET {
    const struct BIGPOINT_CCLASS * const class;
    struct BIGPOINT_DYNTYPE * content[2];
};

extern const struct BIGPOINT_CCLASS * const BIGPOINT_PACKET;

struct BIGPOINT_DYNTYPE * bigpoint_packet_getHeader(
        struct BIGPOINT_PACKET * _this);

struct BIGPOINT_DYNTYPE * bigpoint_packet_getData(
        struct BIGPOINT_PACKET * _this);

void   bigpoint_packet_setHeader(
        struct BIGPOINT_PACKET * _this,
        struct BIGPOINT_DYNTYPE * header);

void   bigpoint_packet_setData(
        struct BIGPOINT_PACKET * _this,
        struct BIGPOINT_DYNTYPE * data);

void   bigpoint_packet_set_default_content(
        struct BIGPOINT_PACKET * _this);

#endif//__BIGPOINT_PACKET_H__

// vim: set et ts=4 sw=4: