aboutsummaryrefslogtreecommitdiff
path: root/duser.h
diff options
context:
space:
mode:
Diffstat (limited to 'duser.h')
-rw-r--r--duser.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/duser.h b/duser.h
index 764ff76..2ed8674 100644
--- a/duser.h
+++ b/duser.h
@@ -3,10 +3,7 @@
#include <limits.h>
#define REGEX_MAX 255
-#define regex_fmt "\%s$"
-//#define regex_fmt "m/%s$/"
-#define list_path "/internal/1/domotest/opt/majordomo/majordomo-1.94.3/lists/"
-#define LOGFILE "/var/log/duser"
+#define CFG_PATH "/usr/local/etc/duser"
#define SELF __FUNCTION__
typedef struct stats_t
{
@@ -31,9 +28,11 @@ typedef struct record_t
int pad3;
} record_t;
+int cfg_open(const char* filename);
+void cfg_close();
+int cfg_get_key(char* val, const char* key);
int logcleanup();
int COM(const char* func, char *format, ...);
-char* basename(const char* path);
record_t* find_in_file(const char* filename, const char* needle);
int get_file_count(const char* path);
char** get_file_list(const char* path, int count);