mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-31 01:15:48 -04:00
this is a more "clean" conversion to 64 bit than the type-fixups branch, which does borrow some elements from it but has far less find and replace...it is about 98-99% done, notes to follow later
This commit is contained in:
@@ -16,18 +16,18 @@ namespace GenericAPI
|
||||
class GenericMessage
|
||||
{
|
||||
public:
|
||||
GenericMessage(short type);
|
||||
GenericMessage(int16_t type);
|
||||
virtual ~GenericMessage() {};
|
||||
|
||||
short getType() const { return m_type; }
|
||||
int16_t getType() const { return m_type; }
|
||||
protected:
|
||||
short m_type;
|
||||
int16_t m_type;
|
||||
};
|
||||
|
||||
class GenericRequest : public GenericMessage
|
||||
{
|
||||
public:
|
||||
GenericRequest(short type);
|
||||
GenericRequest(int16_t type);
|
||||
virtual ~GenericRequest() {};
|
||||
#ifdef USE_SERIALIZE_LIB
|
||||
virtual const unsigned char *pack(unsigned &msgSize) = 0;
|
||||
@@ -54,7 +54,7 @@ protected:
|
||||
class GenericResponse : public GenericMessage
|
||||
{
|
||||
public:
|
||||
GenericResponse(short type, unsigned result, void *user);
|
||||
GenericResponse(int16_t type, unsigned result, void *user);
|
||||
virtual ~GenericResponse() {};
|
||||
#ifdef USE_SERIALIZE_LIB
|
||||
virtual void unpack(const unsigned char *data, unsigned dataLen) = 0;
|
||||
|
||||
Reference in New Issue
Block a user