[libsoup/hsts: 9/36] Use a typedef for the callback function
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/hsts: 9/36] Use a typedef for the callback function
- Date: Tue, 25 Sep 2018 14:55:36 +0000 (UTC)
commit dceb3239b66174462fd4999c7e837cc7e7373dba
Author: Claudio Saavedra <csaavedra igalia com>
Date: Fri Aug 17 15:56:47 2018 +0300
Use a typedef for the callback function
libsoup/soup-hsts-enforcer-db.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/libsoup/soup-hsts-enforcer-db.c b/libsoup/soup-hsts-enforcer-db.c
index d01bb368..611cd769 100644
--- a/libsoup/soup-hsts-enforcer-db.c
+++ b/libsoup/soup-hsts-enforcer-db.c
@@ -183,10 +183,12 @@ try_create_table (sqlite3 *db)
}
}
+typedef int (*ExecQueryCallback) (void *, int, char**, char**);
+
static void
exec_query_with_try_create_table (sqlite3 *db,
const char *sql,
- int (*callback)(void*,int,char**,char**),
+ ExecQueryCallback callback,
void *argument)
{
char *error = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]