]> git.stg.codes - stg.git/blobdiff - rlm_stg/iface.h
Port to CMake, get rid of os_int.h.
[stg.git] / rlm_stg / iface.h
diff --git a/rlm_stg/iface.h b/rlm_stg/iface.h
new file mode 100644 (file)
index 0000000..e863e93
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef __STG_IFACE_H__
+#define __STG_IFACE_H__
+
+#include <stdint.h>
+
+#include "stgpair.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int stgInstantiateImpl(const char* address);
+STG_RESULT stgAuthorizeImpl(const char* userName, const char* password, const STG_PAIR* vps);
+STG_RESULT stgAuthenticateImpl(const char* userName, const char* password, const STG_PAIR* vps);
+STG_RESULT stgPostAuthImpl(const char* userName, const char* password, const STG_PAIR* vps);
+STG_RESULT stgPreAcctImpl(const char* userName, const char* password, const STG_PAIR* vps);
+STG_RESULT stgAccountingImpl(const char* userName, const char* password, const STG_PAIR* vps);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif