[libsoup/hsts: 78/101] Use a typedef for the callback function



commit bfab8520c8ed7eff90113ecb348b8480215684e7
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]