918-git-images-111dconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacion
Last change
on this file since 227093f was
5c30724,
checked in by OpenGnSys Support Team <soporte-og@…>, 5 years ago
|
#941 add basic database-independent abstraction (dbi)
Add basic infrastructure to support for the independent database layer.
|
-
Property mode set to
100644
|
File size:
322 bytes
|
Rev | Line | |
---|
[5c30724] | 1 | #ifndef __OG_DBI |
---|
| 2 | #define __OG_DBI |
---|
| 3 | |
---|
| 4 | #include <dbi/dbi.h> |
---|
| 5 | |
---|
| 6 | struct og_dbi_config { |
---|
| 7 | const char *user; |
---|
| 8 | const char *passwd; |
---|
| 9 | const char *host; |
---|
| 10 | const char *database; |
---|
| 11 | }; |
---|
| 12 | |
---|
| 13 | struct og_dbi { |
---|
| 14 | dbi_conn conn; |
---|
| 15 | dbi_inst inst; |
---|
| 16 | }; |
---|
| 17 | |
---|
| 18 | struct og_dbi *og_dbi_open(struct og_dbi_config *config); |
---|
| 19 | void og_dbi_close(struct og_dbi *db); |
---|
| 20 | |
---|
| 21 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.