diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-08 15:22:05 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-08 15:22:05 +0100 |
commit | c271eb36656a4ff88a9c8c1d59934949260275a3 (patch) | |
tree | 3dd586e38b5b37cfebc7c12b6ff6f434904167c7 /src/libutil/sqlite_utils.h | |
parent | b266445f47dec06392a7e058f499325fa3c052b9 (diff) | |
download | rspamd-c271eb36656a4ff88a9c8c1d59934949260275a3.tar.gz rspamd-c271eb36656a4ff88a9c8c1d59934949260275a3.zip |
[Rework] Add C++ guards to all headers
Diffstat (limited to 'src/libutil/sqlite_utils.h')
-rw-r--r-- | src/libutil/sqlite_utils.h | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/src/libutil/sqlite_utils.h b/src/libutil/sqlite_utils.h index 78ee26fc6..53f13747c 100644 --- a/src/libutil/sqlite_utils.h +++ b/src/libutil/sqlite_utils.h @@ -22,6 +22,10 @@ #define RSPAMD_SQLITE3_STMT_MULTIPLE (1 << 0) +#ifdef __cplusplus +extern "C" { +#endif + struct rspamd_sqlite3_prstmt { gint idx; const gchar *sql; @@ -39,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 @@ -53,7 +57,7 @@ GArray* rspamd_sqlite3_init_prstmt (sqlite3 *db, * @return */ gint rspamd_sqlite3_run_prstmt (rspamd_mempool_t *pool, sqlite3 *db, GArray *stmts, - gint idx, ...); + gint idx, ...); /** * Close and free prepared statements @@ -68,8 +72,9 @@ 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); /** @@ -78,4 +83,8 @@ sqlite3 * rspamd_sqlite3_open_or_create (rspamd_mempool_t *pool, const gchar *pa */ gboolean rspamd_sqlite3_sync (sqlite3 *db, gint *wal_frames, gint *wal_checkpoints); +#ifdef __cplusplus +} +#endif + #endif /* SRC_LIBUTIL_SQLITE_UTILS_H_ */ |