JULEA
|
Functions | |
void | j_helper_get_number_string (gchar *string, guint32 length, guint32 number) |
void | j_helper_set_cork (GSocketConnection *connection, gboolean enable) |
void | j_helper_set_nodelay (GSocketConnection *connection, gboolean enable) |
guint64 | j_helper_atomic_add (guint64 volatile *ptr, guint64 val) |
gboolean | j_helper_execute_parallel (JBackgroundOperationFunc func, gpointer *data, guint length) |
guint32 | j_helper_hash (gchar const *str) |
gchar * | j_helper_str_replace (gchar const *str, gchar const *old, gchar const *new) |
gpointer | j_helper_alloc_aligned (gsize align, gsize len) |
gboolean | j_helper_file_sync (gchar const *path) |
gboolean | j_helper_file_discard (gchar const *path) |
GQuark | j_backend_bson_error_quark (void) |
GQuark | j_backend_db_error_quark (void) |
GQuark | j_backend_sql_error_quark (void) |
gboolean | j_backend_load (gchar const *name, JBackendComponent component, JBackendType type, GModule **module, JBackend **backend) |
gboolean | j_backend_unload (JBackend *backend, GModule *module) |
gboolean | j_backend_object_init (JBackend *backend, gchar const *path) |
void | j_backend_object_fini (JBackend *backend) |
gboolean | j_backend_object_create (JBackend *backend, gchar const *namespace, gchar const *path, gpointer *data) |
gboolean | j_backend_object_open (JBackend *backend, gchar const *namespace, gchar const *path, gpointer *data) |
gboolean | j_backend_object_delete (JBackend *backend, gpointer data) |
gboolean | j_backend_object_get_all (JBackend *backend, gchar const *namespace, gpointer *iterator) |
gboolean | j_backend_object_get_by_prefix (JBackend *backend, gchar const *namespace, gchar const *prefix, gpointer *iterator) |
gboolean | j_backend_object_iterate (JBackend *backend, gpointer iterator, gchar const **name) |
gboolean | j_backend_object_close (JBackend *backend, gpointer data) |
gboolean | j_backend_object_status (JBackend *backend, gpointer data, gint64 *modification_time, guint64 *size) |
gboolean | j_backend_object_sync (JBackend *backend, gpointer data) |
gboolean | j_backend_object_read (JBackend *backend, gpointer data, gpointer buffer, guint64 length, guint64 offset, guint64 *bytes_read) |
gboolean | j_backend_object_write (JBackend *backend, gpointer data, gconstpointer buffer, guint64 length, guint64 offset, guint64 *bytes_written) |
gboolean | j_backend_kv_init (JBackend *backend, gchar const *path) |
void | j_backend_kv_fini (JBackend *backend) |
gboolean | j_backend_kv_batch_start (JBackend *backend, gchar const *namespace, JSemantics *semantics, gpointer *batch) |
gboolean | j_backend_kv_batch_execute (JBackend *backend, gpointer batch) |
gboolean | j_backend_kv_put (JBackend *backend, gpointer batch, gchar const *key, gconstpointer value, guint32 value_len) |
gboolean | j_backend_kv_delete (JBackend *backend, gpointer batch, gchar const *key) |
gboolean | j_backend_kv_get (JBackend *backend, gpointer batch, gchar const *key, gpointer *value, guint32 *value_len) |
gboolean | j_backend_kv_get_all (JBackend *backend, gchar const *namespace, gpointer *iterator) |
gboolean | j_backend_kv_get_by_prefix (JBackend *backend, gchar const *namespace, gchar const *prefix, gpointer *iterator) |
gboolean | j_backend_kv_iterate (JBackend *backend, gpointer iterator, gchar const **key, gconstpointer *value, guint32 *value_len) |
gboolean | j_backend_db_init (JBackend *backend, gchar const *path) |
void | j_backend_db_fini (JBackend *backend) |
gboolean | j_backend_db_batch_start (JBackend *backend, gchar const *namespace, JSemantics *semantics, gpointer *batch, GError **error) |
gboolean | j_backend_db_batch_execute (JBackend *backend, gpointer batch, GError **error) |
gboolean | j_backend_db_schema_create (JBackend *backend, gpointer batch, gchar const *name, bson_t const *schema, GError **error) |
gboolean | j_backend_db_schema_get (JBackend *backend, gpointer batch, gchar const *name, bson_t *schema, GError **error) |
gboolean | j_backend_db_schema_delete (JBackend *backend, gpointer batch, gchar const *name, GError **error) |
gboolean | j_backend_db_insert (JBackend *backend, gpointer batch, gchar const *name, bson_t const *metadata, bson_t *id, GError **error) |
gboolean | j_backend_db_update (JBackend *backend, gpointer batch, gchar const *name, bson_t const *selector, bson_t const *metadata, GError **error) |
gboolean | j_backend_db_delete (JBackend *backend, gpointer batch, gchar const *name, bson_t const *selector, GError **error) |
gboolean | j_backend_db_query (JBackend *backend, gpointer batch, gchar const *name, bson_t const *selector, gpointer *iterator, GError **error) |
gboolean | j_backend_db_iterate (JBackend *backend, gpointer iterator, bson_t *metadata, GError **error) |
Helper data structures and functions.
GQuark j_backend_bson_error_quark | ( | void | ) |
gboolean j_backend_db_batch_execute | ( | JBackend * | backend, |
gpointer | batch, | ||
GError ** | error | ||
) |
gboolean j_backend_db_batch_start | ( | JBackend * | backend, |
gchar const * | namespace, | ||
JSemantics * | semantics, | ||
gpointer * | batch, | ||
GError ** | error | ||
) |
gboolean j_backend_db_delete | ( | JBackend * | backend, |
gpointer | batch, | ||
gchar const * | name, | ||
bson_t const * | selector, | ||
GError ** | error | ||
) |
GQuark j_backend_db_error_quark | ( | void | ) |
void j_backend_db_fini | ( | JBackend * | backend | ) |
gboolean j_backend_db_init | ( | JBackend * | backend, |
gchar const * | path | ||
) |
gboolean j_backend_db_insert | ( | JBackend * | backend, |
gpointer | batch, | ||
gchar const * | name, | ||
bson_t const * | metadata, | ||
bson_t * | id, | ||
GError ** | error | ||
) |
gboolean j_backend_db_iterate | ( | JBackend * | backend, |
gpointer | iterator, | ||
bson_t * | metadata, | ||
GError ** | error | ||
) |
gboolean j_backend_db_query | ( | JBackend * | backend, |
gpointer | batch, | ||
gchar const * | name, | ||
bson_t const * | selector, | ||
gpointer * | iterator, | ||
GError ** | error | ||
) |
gboolean j_backend_db_schema_create | ( | JBackend * | backend, |
gpointer | batch, | ||
gchar const * | name, | ||
bson_t const * | schema, | ||
GError ** | error | ||
) |
gboolean j_backend_db_schema_delete | ( | JBackend * | backend, |
gpointer | batch, | ||
gchar const * | name, | ||
GError ** | error | ||
) |
gboolean j_backend_db_schema_get | ( | JBackend * | backend, |
gpointer | batch, | ||
gchar const * | name, | ||
bson_t * | schema, | ||
GError ** | error | ||
) |
gboolean j_backend_db_update | ( | JBackend * | backend, |
gpointer | batch, | ||
gchar const * | name, | ||
bson_t const * | selector, | ||
bson_t const * | metadata, | ||
GError ** | error | ||
) |
gboolean j_backend_kv_batch_execute | ( | JBackend * | backend, |
gpointer | batch | ||
) |
gboolean j_backend_kv_batch_start | ( | JBackend * | backend, |
gchar const * | namespace, | ||
JSemantics * | semantics, | ||
gpointer * | batch | ||
) |
gboolean j_backend_kv_delete | ( | JBackend * | backend, |
gpointer | batch, | ||
gchar const * | key | ||
) |
void j_backend_kv_fini | ( | JBackend * | backend | ) |
gboolean j_backend_kv_get | ( | JBackend * | backend, |
gpointer | batch, | ||
gchar const * | key, | ||
gpointer * | value, | ||
guint32 * | value_len | ||
) |
gboolean j_backend_kv_get_all | ( | JBackend * | backend, |
gchar const * | namespace, | ||
gpointer * | iterator | ||
) |
gboolean j_backend_kv_get_by_prefix | ( | JBackend * | backend, |
gchar const * | namespace, | ||
gchar const * | prefix, | ||
gpointer * | iterator | ||
) |
gboolean j_backend_kv_init | ( | JBackend * | backend, |
gchar const * | path | ||
) |
gboolean j_backend_kv_iterate | ( | JBackend * | backend, |
gpointer | iterator, | ||
gchar const ** | key, | ||
gconstpointer * | value, | ||
guint32 * | value_len | ||
) |
gboolean j_backend_kv_put | ( | JBackend * | backend, |
gpointer | batch, | ||
gchar const * | key, | ||
gconstpointer | value, | ||
guint32 | value_len | ||
) |
gboolean j_backend_load | ( | gchar const * | name, |
JBackendComponent | component, | ||
JBackendType | type, | ||
GModule ** | module, | ||
JBackend ** | backend | ||
) |
gboolean j_backend_object_close | ( | JBackend * | backend, |
gpointer | data | ||
) |
gboolean j_backend_object_create | ( | JBackend * | backend, |
gchar const * | namespace, | ||
gchar const * | path, | ||
gpointer * | data | ||
) |
gboolean j_backend_object_delete | ( | JBackend * | backend, |
gpointer | data | ||
) |
void j_backend_object_fini | ( | JBackend * | backend | ) |
gboolean j_backend_object_get_all | ( | JBackend * | backend, |
gchar const * | namespace, | ||
gpointer * | iterator | ||
) |
gboolean j_backend_object_get_by_prefix | ( | JBackend * | backend, |
gchar const * | namespace, | ||
gchar const * | prefix, | ||
gpointer * | iterator | ||
) |
gboolean j_backend_object_init | ( | JBackend * | backend, |
gchar const * | path | ||
) |
gboolean j_backend_object_iterate | ( | JBackend * | backend, |
gpointer | iterator, | ||
gchar const ** | name | ||
) |
gboolean j_backend_object_open | ( | JBackend * | backend, |
gchar const * | namespace, | ||
gchar const * | path, | ||
gpointer * | data | ||
) |
gboolean j_backend_object_read | ( | JBackend * | backend, |
gpointer | data, | ||
gpointer | buffer, | ||
guint64 | length, | ||
guint64 | offset, | ||
guint64 * | bytes_read | ||
) |
gboolean j_backend_object_status | ( | JBackend * | backend, |
gpointer | data, | ||
gint64 * | modification_time, | ||
guint64 * | size | ||
) |
gboolean j_backend_object_sync | ( | JBackend * | backend, |
gpointer | data | ||
) |
gboolean j_backend_object_write | ( | JBackend * | backend, |
gpointer | data, | ||
gconstpointer | buffer, | ||
guint64 | length, | ||
guint64 | offset, | ||
guint64 * | bytes_written | ||
) |
GQuark j_backend_sql_error_quark | ( | void | ) |
gboolean j_backend_unload | ( | JBackend * | backend, |
GModule * | module | ||
) |
gpointer j_helper_alloc_aligned | ( | gsize | align, |
gsize | len | ||
) |
Error checking wrapper for aligned_alloc().
align | The alignment to use. Must be support by implementation. |
len | The number of bytes to allocate. |
guint64 j_helper_atomic_add | ( | guint64 volatile * | ptr, |
guint64 | val | ||
) |
Atomically add val
to *ptr
and return the result.
ptr | Address of a 64 bit unsigned integer. |
val | Value to add to *ptr . |
gboolean j_helper_execute_parallel | ( | JBackgroundOperationFunc | func, |
gpointer * | data, | ||
guint | length | ||
) |
Execute func
in parallel.
func | A JBackgroundOperationFunc. |
data | An argument array for parallel execution of func . |
length | The length of data . |
data
but func
will not be executed with NULL as argument. gboolean j_helper_file_discard | ( | gchar const * | path | ) |
Synchronizes the file described by path
with the storage device. The file will be marked as not accessed in the near future to make optimization in kernel possible.
path | The file to sync. |
gboolean j_helper_file_sync | ( | gchar const * | path | ) |
Synchronizes the file described by path
with the storage device.
path | The file to sync. |
void j_helper_get_number_string | ( | gchar * | string, |
guint32 | length, | ||
guint32 | number | ||
) |
Convert a number to a string.
string | The buffer to be filled with the number string. |
length | The size of the string buffer. |
number | The number to convert. |
guint32 j_helper_hash | ( | gchar const * | str | ) |
A hash function for strings
str | The string to be hashed. |
void j_helper_set_cork | ( | GSocketConnection * | connection, |
gboolean | enable | ||
) |
Set the TCP_CORK flag to the value of enable
connection | The connection to manipulate. |
enable | The value to be set for TCP_CORK. |
void j_helper_set_nodelay | ( | GSocketConnection * | connection, |
gboolean | enable | ||
) |
Set the TCP_NODELAY flag to the value of enable
connection | The connection to manipulate. |
enable | The value to be set for TCP_NODELAY. |
gchar * j_helper_str_replace | ( | gchar const * | str, |
gchar const * | old, | ||
gchar const * | new | ||
) |
Replaces all occurences of old
with new
in str
in a new string.
str | A string. |
old | A string. |
new | A string. |