]> git.stg.codes - stg.git/blob - projects/rlm_stg/iface.h
Some fixes in C-C++ bridge in rlm_stg.
[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 STG_PAIR* fromValuePairs(const VALUE_PAIR* pairs);
21 int countValuePairs(const VALUE_PAIR* pairs);
22
23 #ifdef __cplusplus
24 }
25 #endif
26
27 #endif