1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
#ifndef __SCIINTERFACE_H__
#define __SCIINTERFACE_H__
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
#include "sci.h"
#include "sciWebServices.h"
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// SDK instance
typedef struct
{
SCWebServices mWebServices;
gsi_u32 mGameId;
//gsi_u32 mOptionsFlags;
gsi_bool mInit;
const char * mServiceURL;
GSCoreMgr * mSdkCore;
gsi_u8 mSessionId[SC_SESSION_GUID_SIZE];
gsi_u8 mConnectionId[SC_CONNECTION_GUID_SIZE];
} SCInterface;
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
SCResult sciInterfaceCreate (SCInterface** theInterfaceOut);
SCResult sciInterfaceInit (SCInterface* theInterface);
void sciInterfaceDestroy(SCInterface* theInterface);
void sciInterfaceSetSessionId(SCInterface* theInterface, const char * theSessionId);
void sciInterfaceSetConnectionId(SCInterface* theInterface, const char * theConnectionId);
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
#endif // __SCINTERFACE_H__
|