]> git.stg.codes - stg.git/blob - projects/rlm_stg/iface.h
Merge branch 'stg-2.409'
[stg.git] / projects / rlm_stg / iface.h
1 #ifndef __STG_IFACE_H__
2 #define __STG_IFACE_H__
3
4 #include <stdint.h>
5
6 #include "stgpair.h"
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12 int stgInstantiateImpl(const char * server, uint16_t port, const char * password);
13 const STG_PAIR * stgAuthorizeImpl(const char * userName, const char * serviceType);
14 const STG_PAIR * stgAuthenticateImpl(const char * userName, const char * serviceType);
15 const STG_PAIR * stgPostAuthImpl(const char * userName, const char * serviceType);
16 /*const STG_PAIR * stgPreAcctImpl(const char * userName, const char * serviceType);*/
17 const STG_PAIR * stgAccountingImpl(const char * userName, const char * serviceType, const char * statusType, const char * sessionId);
18
19 void deletePairs(const STG_PAIR * pairs);
20
21 #ifdef __cplusplus
22 }
23 #endif
24
25 #endif