mal_sabaoth.h
来自「一个内存数据库的源代码这是服务器端还有客户端」· C头文件 代码 · 共 62 行
H
62 行
#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 + =
减小字号Ctrl + -
显示快捷键?