diff --git a/src/api.c b/src/api.c index 8d527bc..1e19f42 100644 --- a/src/api.c +++ b/src/api.c @@ -134,7 +134,8 @@ raw(const char * const sql) } -static int get_project_count_callback(void* data, int argc, char** argv, char** colname) { +DECL int +get_project_count_callback(void* data, int argc, char** argv, char** colname) { (void)argc; (void)colname; int* count = (int*)data; @@ -142,7 +143,8 @@ static int get_project_count_callback(void* data, int argc, char** argv, char** return 0; } -static int get_project_count(){ +DECL int +get_project_count(){ int r = 0; const char* sql = "SELECT COUNT(*) FROM project;";