Archived
1
0
Fork 0

Initial commit

This commit is contained in:
Henrik Hautakoski 2010-04-20 20:38:50 +02:00 committed by Henrik Hautakoski
commit fdfefe7d55
31 changed files with 3242 additions and 0 deletions

33
test/t_mysql.c Normal file
View file

@ -0,0 +1,33 @@
#ifndef INOTIFY_DEBUG
#define INOTIFY_DEBUG
#endif
#include <stdio.h>
#include "../src/notify_db.h"
int main(int argc, char *argv[]) {
// Keep me safe
printf("Run!\n");
// Connect
notify_db_init("localhost", "warez", "elebobo", "filesystem", "filesystem");
// Truncate
//notify_db_truncate();
sleep(10);
// Insert
notify_db_insert("/this/is/my/path/to/", "myfile", 0);
// Delete
//notify_db_delete("/this/is/my/path/to/", "myfile");
// Close
notify_db_close();
// Kill me
return 0;
}