Archived
1
0
Fork 0

refactoring out mysql to database API

This commit is contained in:
Henrik Hautakoski 2010-10-26 14:43:50 +02:00
parent d420a86372
commit 97bdfd94f1
4 changed files with 263 additions and 241 deletions

24
src/database.h Normal file
View file

@ -0,0 +1,24 @@
/* database.h - database driver API
*
* Copyright (C) 2010 Fredric Nilsson <fredric@fiktivkod.org>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*/
#ifndef __DATABASE_H
#define __DATABASE_H
#include <ini/dictionary.h>
int database_init(dictionary *conf);
int database_insert(const char *path, const char *filename, const int isdir);
int database_delete(const char *path, const char *filename);
int database_close();
#endif /* __DATABASE_H */