summaryrefslogtreecommitdiff
path: root/src/common/conf.h
diff options
context:
space:
mode:
authorGuilherme Menaldo <guilherme.menaldo@outlook.com>2019-10-01 22:57:09 -0300
committerGuilherme Menaldo <guilherme.menaldo@outlook.com>2019-10-05 16:42:54 -0300
commit7d25827001493a82a8f75cfc6a0b956164b44f05 (patch)
tree911eff2691b6804c6a971bd86234313ee1af7dcf /src/common/conf.h
parentd026e28fd78f60dfa21da381f17f2a8cc9ae3d11 (diff)
downloadhercules-7d25827001493a82a8f75cfc6a0b956164b44f05.tar.gz
hercules-7d25827001493a82a8f75cfc6a0b956164b44f05.tar.bz2
hercules-7d25827001493a82a8f75cfc6a0b956164b44f05.tar.xz
hercules-7d25827001493a82a8f75cfc6a0b956164b44f05.zip
Dehardcodes db files base path so the db folder can be easily moved
Diffstat (limited to 'src/common/conf.h')
-rw-r--r--src/common/conf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/conf.h b/src/common/conf.h
index 66960c0ec..ccab6dc17 100644
--- a/src/common/conf.h
+++ b/src/common/conf.h
@@ -29,6 +29,10 @@
* The libconfig interface -- specially for plugins, but we enforce it throughout the core to be consistent
**/
struct libconfig_interface {
+ char db_path[256];
+ void (*set_db_path) (const char *db_path);
+ void (*format_db_path) (const char *filename, char *path_buf, int buffer_len);
+ /* */
int (*read) (struct config_t *config, FILE *stream);
void (*write) (const struct config_t *config, FILE *stream);
/* */