romele / git-trace public
62 commits · 1 branch · 1 tag · 1 contributor (top: Romele) · first commit 3d ago · last push 11m ago
src/db.h
#ifndef GT_DB_H #define GT_DB_H #include <sqlite3.h> /* open (and bootstrap) the database at path; dies on failure */ sqlite3 *db_open(const char *path); /* append an event to audit_log; fmt may be NULL. repo_id 0 = global */ void db_audit(sqlite3 *db, int uid, const char *actor, const char *ip, int repo_id, const char *action, const char *fmt, ...); #endif