📄 mal_sabaoth.h
字号:
#ifndef _MAL_SABAOTH_DEF#define _MAL_SABAOTH_DEF#include <mal.h>#include <mal_exception.h>mal_export void SABAOTHinit(str dbfarm, str dbname);mal_export str SABAOTHmarchScenario(int *ret, str *lang);mal_export str SABAOTHretreatScenario(int *ret, str *lang);mal_export str SABAOTHmarchConnection(int *ret, str *host, int *port, bit *ssl);mal_export str SABAOTHwildRetreat(int *ret);mal_export str SABAOTHregisterStart(int *ret);mal_export str SABAOTHregisterStop(int *ret);typedef struct Ssablist { str val; /* list value */ struct Ssablist* next; /* pointer to the next available value*/} sablist;#define SABdbIllegal 0#define SABdbRunning 1#define SABdbCrashed 2#define SABdbInactive 3typedef struct Ssabdb { str dbname; /* database name as string */ /* str path; */ short state; /* SABdbRunning, SABdbCrashed or SABdbInactive */ sablist* scens; /* scenarios available for this database */ sablist* conns; /* connections available for this database */ struct Ssabdb* next; /* next database */} sabdb;/* Caching strategies (might be nice) should create a new struct with * the last modified time_t of the files involved, such that a stat is * sufficient to see if reparsing is necessary. The gdk_lock always has * to be checked to detect crashes. */mal_export str SABAOTHgetStatus(sabdb** ret, str dbname);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -