Commit 2aa8e5b6 authored by Srikanth Raju's avatar Srikanth Raju Committed by Rémi Denis-Courmont

Sql: Rollback should return void

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 0b83687b
...@@ -110,7 +110,7 @@ struct sql_t ...@@ -110,7 +110,7 @@ struct sql_t
int (*pf_commit) ( sql_t* ); int (*pf_commit) ( sql_t* );
/** Rollback transaction */ /** Rollback transaction */
int (*pf_rollback) ( sql_t* ); void (*pf_rollback) ( sql_t* );
/** Create a statement object */ /** Create a statement object */
sql_stmt_t* (*pf_prepare) ( sql_t* p_sql, const char* p_fmt, sql_stmt_t* (*pf_prepare) ( sql_t* p_sql, const char* p_fmt,
...@@ -295,7 +295,7 @@ static inline int sql_CommitTransaction( sql_t *p_sql ) ...@@ -295,7 +295,7 @@ static inline int sql_CommitTransaction( sql_t *p_sql )
* @return VLC error code or success * @return VLC error code or success
* @note This function is threadsafe * @note This function is threadsafe
**/ **/
static inline int sql_RollbackTransaction( sql_t *p_sql ) static inline void sql_RollbackTransaction( sql_t *p_sql )
{ {
return p_sql->pf_rollback( p_sql ); return p_sql->pf_rollback( p_sql );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment