diff --git a/profile/3.3.5a-windows-386/include/common/datastore.h b/profile/3.3.5a-windows-386/include/common/datastore.h index 804da93..f298b9e 100644 --- a/profile/3.3.5a-windows-386/include/common/datastore.h +++ b/profile/3.3.5a-windows-386/include/common/datastore.h @@ -4,28 +4,68 @@ DECLARE_STRUCT(CDataStore__v_table); DECLARE_STRUCT(CDataStore); -struct CDataStore__v_table{ - void* fn_InternalInitialize; - void* fn_InternalDestroy; - void* fn_InternalFetchRead; - void* fn_InternalFetchWrite; - void* fn_destructor; - void* fn_IsRead; - void* fn_Reset; - void* fn_Finalize; - void* fn_GetBufferParams; - void* fn_DetachBuffer; - void* fn_GetHeaderSpace; +#define INTERFACE CDataStore +struct CDataStore__v_table { + // void InternalInitialize(uint8_t*& data, uint32_t& base, uint32_t& alloc); + P_METHOD(void, _00_InternalInitialize, uint8_t** data, uint32_t* base, uint32_t* alloc); + // void InternalDestroy(uint8_t*& data, uint32_t& base, uint32_t& alloc); + P_METHOD(void, _01_InternalDestroy, uint8_t** data, uint32_t* base, uint32_t* alloc); + // int32_t InternalFetchRead( + // uint32_t pos, + // uint32_t bytes, + // uint8_t*& data, + // uint32_t& base, + // uint32_t& alloc); + P_METHOD( + int32_t, + _02_InternalFetchRead, + uint32_t pos, + uint32_t bytes, + uint8_t** data, + uint32_t* base, + uint32_t* alloc); + // int32_t InternalFetchWrite( + // uint32_t pos, + // uint32_t bytes, + // uint8_t*& data, + // uint32_t& base, + // uint32_t& alloc, + // const char* fileName, + // int32_t lineNumber); + P_METHOD( + int32_t, + _03_InternalFetchWrite, + uint32_t pos, + uint32_t bytes, + uint32_t** data, + uint32_t* base, + uint32_t* alloc, + const char* fileName, + int32_t linenumber); + // ~CDataStore(); + E_METHOD(void, _04_destructor); + // int32_t IsRead(); + E_METHOD(int32_t, _05_IsRead); + // void Reset(); + E_METHOD(void, _06_Reset); + // void Finalize(); + E_METHOD(void, _07_Finalize); + // void GetBufferParams(const void** data, uint32_t* size, uint32_t* alloc) const; + P_METHOD(void, _08_GetBufferParams, const void** data, uint32_t* size, uint32_t* alloc); + // void DetachBuffer(void** data, uint32_t* size, uint32_t* alloc); + P_METHOD(void, _09_DetachBuffer, void** data, uint32_t* size, uint32_t* alloc); + // uint32_t GetHeaderSpace(); + E_METHOD(uint32_t, _10_GetHeaderSpace); }; +#undef INTERFACE struct CDataStore { - CDataStore__v_table* v_table; - uint8_t* m_data; - uint32_t m_base; - uint32_t m_alloc; - uint32_t m_size; - uint32_t m_read; + CDataStore__v_table* v_table; + uint8_t* m_data; + uint32_t m_base; + uint32_t m_alloc; + uint32_t m_size; + uint32_t m_read; }; #endif -