3 #include "loki/Singleton.h"
5 #include "thriftclient.h"
7 int stgInstantiateImpl(const char * server, uint16_t port, const char * password)
9 if (STG_CLIENT_ST::Get().Configure(server, port, password))
15 const STG_PAIR * stgAuthorizeImpl(const char * userName, const char * serviceType)
17 return STG_CLIENT_ST::Get().Authorize(userName, serviceType);
20 const STG_PAIR * stgAuthenticateImpl(const char * userName, const char * serviceType)
22 return STG_CLIENT_ST::Get().Authenticate(userName, serviceType);
25 const STG_PAIR * stgPostAuthImpl(const char * userName, const char * serviceType)
27 return STG_CLIENT_ST::Get().PostAuth(userName, serviceType);
30 const STG_PAIR * stgPreAcctImpl(const char * userName, const char * serviceType)
32 return STG_CLIENT_ST::Get().PreAcct(userName, serviceType);
35 const STG_PAIR * stgAccountingImpl(const char * userName, const char * serviceType, const char * statusType, const char * sessionId)
37 return STG_CLIENT_ST::Get().Account(userName, serviceType, statusType, sessionId);
40 void deletePairs(const STG_PAIR * pairs)