src/lib/trema_wrapper.c in trema-0.2.2.1 vs src/lib/trema_wrapper.c in trema-0.2.3
- old
+ new
@@ -21,10 +21,11 @@
#include <sqlite3.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
+#include <syslog.h>
#include <unistd.h>
int ( *trema_fprintf )( FILE *stream, const char *format, ... ) = fprintf;
int ( *trema_vprintf )( const char *format, va_list ap ) = vprintf;
@@ -37,9 +38,13 @@
void ( *trema_abort )( void ) = abort;
int ( *trema_unlink )( const char *pathname ) = unlink;
pid_t ( *trema_getpid )( void ) = getpid;
+
+void ( *trema_openlog ) ( const char *ident, int option, int facility ) = openlog;
+void ( *trema_closelog ) ( void ) = closelog;
+void ( *trema_vsyslog ) ( int priority, const char *format, va_list ap ) = vsyslog;
int ( *trema_sqlite3_open )( const char *filename, sqlite3 **ppDb ) = sqlite3_open;
int ( *trema_sqlite3_close )( sqlite3 * ) = sqlite3_close;
int ( *trema_sqlite3_exec )( sqlite3 *, const char *sql, int ( *callback ) ( void *, int, char **, char ** ), void *, char **errmsg ) = sqlite3_exec;
int ( *trema_sqlite3_changes )( sqlite3 * ) = sqlite3_changes;