|
XMMS2
|
The in-memory database. More...
Functions | |
| 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 new relation to a database. More... | |
| int | _s4_add_internal (s4_t *s4, const char *key_a, const s4_val_t *value_a, const char *key_b, const s4_val_t *value_b, const char *src) |
| 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 relation from a database. More... | |
| s4_resultset_t * | _s4_query (s4_transaction_t *trans, s4_fetchspec_t *fs, s4_condition_t *cond) |
| Queries a database for all entries matching a condition, then fetches data from them. More... | |
| s4_entry_data_t * | _entry_create_data () |
| void | _entry_free_data (s4_entry_data_t *data) |
| void | _free_relations (s4_t *s4) |
| Frees all relations in a database. More... | |
The in-memory database.
| s4_entry_data_t* _entry_create_data | ( | void | ) |
Referenced by _reread_file().
| void _entry_free_data | ( | s4_entry_data_t * | data | ) |
Referenced by _reread_file().
| void _free_relations | ( | s4_t * | s4 | ) |
Frees all relations in a database.
| s4 | The database to free in |
Referenced by _reread_file().
| 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 new relation to a database.
| s4 | The database to add to |
| key_a | The key of the first entry |
| val_a | The value of the first entry |
| key_b | The key of the second entry |
| val_b | The value of the second entry |
| src | The source that made the relation |
Referenced by _oplist_execute(), _oplist_rollback(), and s4_add().
| int _s4_add_internal | ( | s4_t * | s4, |
| const char * | key_a, | ||
| const s4_val_t * | value_a, | ||
| const char * | key_b, | ||
| const s4_val_t * | value_b, | ||
| const char * | src | ||
| ) |
| 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 relation from a database.
| s4 | The database to delete from |
| key_a | The key of the first entry |
| val_a | The value of the first entry |
| key_b | The key of the second entry |
| val_b | The value of the second entry |
| src | The source that made the relation |
Referenced by _oplist_execute(), _oplist_rollback(), and s4_del().
| s4_resultset_t* _s4_query | ( | s4_transaction_t * | trans, |
| s4_fetchspec_t * | fs, | ||
| s4_condition_t * | cond | ||
| ) |
Queries a database for all entries matching a condition, then fetches data from them.
| trans | The transaction this query belongs to. |
| fs | The fetchspec to use when fetching data |
| cond | The condition to check entries against |
Referenced by s4_query().