XMMS2
Functions
transaction.c File Reference
#include "s4_priv.h"
#include <stdlib.h>

Functions

void _transaction_writing (s4_transaction_t *trans)
 
s4_lock_t_transaction_get_waiting_for (s4_transaction_t *trans)
 
void _transaction_set_waiting_for (s4_transaction_t *trans, s4_lock_t *waiting_for)
 
GList * _transaction_get_locks (s4_transaction_t *trans)
 
void _transaction_add_lock (s4_transaction_t *trans, s4_lock_t *lock)
 
void _transaction_set_deadlocked (s4_transaction_t *trans)
 
s4_transaction_t_transaction_dummy_alloc (s4_t *s4)
 
void _transaction_dummy_free (s4_transaction_t *trans)
 
int _transaction_get_flags (s4_transaction_t *trans)
 
s4_transaction_ts4_begin (s4_t *s4, int flags)
 Starts a new transaction. More...
 
int s4_commit (s4_transaction_t *trans)
 Commits a transaction. More...
 
int s4_abort (s4_transaction_t *trans)
 Aborts a transaction. More...
 
s4_t_transaction_get_db (s4_transaction_t *trans)
 
int s4_add (s4_transaction_t *trans, const char *key_a, const s4_val_t *val_a, const char *key_b, const s4_val_t *val_b, const char *src)
 Adds a relationship to the database. More...
 
int s4_del (s4_transaction_t *trans, const char *key_a, const s4_val_t *val_a, const char *key_b, const s4_val_t *val_b, const char *src)
 Deletes a relationship from the database. More...
 
s4_resultset_ts4_query (s4_transaction_t *trans, s4_fetchspec_t *spec, s4_condition_t *cond)
 Queries an S4 database. More...