diff options
Diffstat (limited to 'admin/Sources/Services/ogAdmServer/sources/dbi.h')
-rw-r--r-- | admin/Sources/Services/ogAdmServer/sources/dbi.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/admin/Sources/Services/ogAdmServer/sources/dbi.h b/admin/Sources/Services/ogAdmServer/sources/dbi.h new file mode 100644 index 00000000..882550f1 --- /dev/null +++ b/admin/Sources/Services/ogAdmServer/sources/dbi.h @@ -0,0 +1,21 @@ +#ifndef __OG_DBI +#define __OG_DBI + +#include <dbi/dbi.h> + +struct og_dbi_config { + const char *user; + const char *passwd; + const char *host; + const char *database; +}; + +struct og_dbi { + dbi_conn conn; + dbi_inst inst; +}; + +struct og_dbi *og_dbi_open(struct og_dbi_config *config); +void og_dbi_close(struct og_dbi *db); + +#endif |