aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/sqlite_utils.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-07-26 10:49:23 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-07-26 10:49:23 +0100
commit537a7180a0d5132c11636c4fd8b1450cd99d352c (patch)
treefb9f8c84955a411bdffbd6371ea32f2716fb3687 /src/libutil/sqlite_utils.h
parent5fd7a90fdaa33f52c59bdb0ca84451e5c1e22365 (diff)
downloadrspamd-537a7180a0d5132c11636c4fd8b1450cd99d352c.tar.gz
rspamd-537a7180a0d5132c11636c4fd8b1450cd99d352c.zip
[Rework] Use clang-format to unify formatting in all sources
No meaningful changes.
Diffstat (limited to 'src/libutil/sqlite_utils.h')
-rw-r--r--src/libutil/sqlite_utils.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/libutil/sqlite_utils.h b/src/libutil/sqlite_utils.h
index 53f13747c..5411a476e 100644
--- a/src/libutil/sqlite_utils.h
+++ b/src/libutil/sqlite_utils.h
@@ -22,7 +22,7 @@
#define RSPAMD_SQLITE3_STMT_MULTIPLE (1 << 0)
-#ifdef __cplusplus
+#ifdef __cplusplus
extern "C" {
#endif
@@ -43,10 +43,10 @@ struct rspamd_sqlite3_prstmt {
* @param err
* @return new prepared statements array or NULL
*/
-GArray *rspamd_sqlite3_init_prstmt (sqlite3 *db,
- struct rspamd_sqlite3_prstmt *init_stmt,
- gint max_idx,
- GError **err);
+GArray *rspamd_sqlite3_init_prstmt(sqlite3 *db,
+ struct rspamd_sqlite3_prstmt *init_stmt,
+ gint max_idx,
+ GError **err);
/**
* Run prepared statements by its index getting parameters and setting results from
@@ -56,15 +56,15 @@ GArray *rspamd_sqlite3_init_prstmt (sqlite3 *db,
* @param idx
* @return
*/
-gint rspamd_sqlite3_run_prstmt (rspamd_mempool_t *pool, sqlite3 *db, GArray *stmts,
- gint idx, ...);
+gint rspamd_sqlite3_run_prstmt(rspamd_mempool_t *pool, sqlite3 *db, GArray *stmts,
+ gint idx, ...);
/**
* Close and free prepared statements
* @param db
* @param stmts
*/
-void rspamd_sqlite3_close_prstmt (sqlite3 *db, GArray *stmts);
+void rspamd_sqlite3_close_prstmt(sqlite3 *db, GArray *stmts);
/**
* Creates or opens sqlite database trying to share it between processes
@@ -72,18 +72,18 @@ void rspamd_sqlite3_close_prstmt (sqlite3 *db, GArray *stmts);
* @param create_sql
* @return
*/
-sqlite3 *rspamd_sqlite3_open_or_create (rspamd_mempool_t *pool,
- const gchar *path, const gchar *create_sql,
- guint32 version, GError **err);
+sqlite3 *rspamd_sqlite3_open_or_create(rspamd_mempool_t *pool,
+ const gchar *path, const gchar *create_sql,
+ guint32 version, GError **err);
/**
* Sync sqlite3 db ensuring that all wal things are done
* @param db
*/
-gboolean rspamd_sqlite3_sync (sqlite3 *db, gint *wal_frames, gint *wal_checkpoints);
+gboolean rspamd_sqlite3_sync(sqlite3 *db, gint *wal_frames, gint *wal_checkpoints);
-#ifdef __cplusplus
+#ifdef __cplusplus
}
#endif