Defines | |
#define | microfeed_weak_reference_get(w, t) ((t*)microfeed_weak_reference_get_impl(w)) |
#define | microfeed_memory_allocate(t) ((t*)microfeed_memory_allocate_bytes(sizeof(t))) |
#define | microfeed_memory_allocate_with_strings(t,...) ((t*)microfeed_memory_allocate_with_strings_impl(sizeof(t),__VA_ARGS__)) |
Typedefs | |
typedef struct _MicrofeedWeakReference | MicrofeedWeakReference |
Opaque data type representing a weak reference. | |
Functions | |
MicrofeedWeakReference * | microfeed_weak_reference_new (void *referenced, MicrofeedWeakReference *existing_weak_reference) |
void | microfeed_weak_reference_free (MicrofeedWeakReference *weak_refeference) |
void * | microfeed_weak_reference_get_impl (MicrofeedWeakReference *weak_reference) |
void | microfeed_weak_reference_invalidate (MicrofeedWeakReference *weak_reference) |
void * | microfeed_memory_allocate_bytes (size_t size) |
void | microfeed_memory_free (void *p) |
char * | microfeed_util_string_concatenate (const char *s,...) |
char * | microfeed_util_string_unescape_percent_encoding (const char *s) |
#define microfeed_memory_allocate | ( | t | ) | ((t*)microfeed_memory_allocate_bytes(sizeof(t))) |
Definition at line 24 of file microfeedmisc.h.
Referenced by microfeed_configuration_new(), microfeed_database_environment_get_database(), microfeed_database_environment_new(), microfeed_database_get_index(), microfeed_database_index_iterate(), microfeed_database_iterate(), microfeed_error_new(), microfeed_feed_call_modify_item_callback(), microfeed_feed_iterate(), microfeed_feed_iterate_timeline(), microfeed_feed_new(), microfeed_feed_republish(), microfeed_feed_send_item_data(), microfeed_item_duplicate(), microfeed_item_iterate_properties(), microfeed_item_new_empty(), microfeed_main_add_timeout(), microfeed_main_add_watch(), microfeed_main_new_with_dbus_connection(), microfeed_mutex_new(), microfeed_provider_new(), microfeed_publisher_new(), microfeed_store_iterate(), microfeed_store_new_sorted(), microfeed_subscriber_new(), microfeed_thread_get_current(), microfeed_thread_new_with_exit_callback(), microfeed_thread_pool_new_with_exit_callback(), microfeed_thread_pool_queue_thread_with_exit_callback(), and microfeed_weak_reference_new().
#define microfeed_memory_allocate_with_strings | ( | t, | |||
... | ) | ((t*)microfeed_memory_allocate_with_strings_impl(sizeof(t),__VA_ARGS__)) |
Definition at line 26 of file microfeedmisc.h.
#define microfeed_weak_reference_get | ( | w, | |||
t | ) | ((t*)microfeed_weak_reference_get_impl(w)) |
Definition at line 21 of file microfeedmisc.h.
typedef struct _MicrofeedWeakReference MicrofeedWeakReference |
void* microfeed_memory_allocate_bytes | ( | size_t | size | ) |
Definition at line 14 of file microfeedmisc.c.
Referenced by microfeed_configuration_new(), microfeed_item_get_properties_as_string(), and microfeed_main_loop().
void microfeed_memory_free | ( | void * | p | ) |
Definition at line 67 of file microfeedmisc.c.
Referenced by microfeed_configuration_free(), microfeed_database_environment_free(), microfeed_database_environment_get_database(), microfeed_database_environment_new(), microfeed_database_free(), microfeed_database_get_index(), microfeed_database_iterator_free(), microfeed_error_free(), microfeed_feed_iterator_free(), microfeed_item_free(), microfeed_item_iterator_free(), microfeed_main_add_watch(), microfeed_main_free(), microfeed_main_remove_timeout(), microfeed_main_remove_watch(), microfeed_mutex_free(), microfeed_provider_free(), microfeed_provider_new(), microfeed_publisher_new(), microfeed_store_iterator_free(), microfeed_thread_free(), and microfeed_weak_reference_free().
char* microfeed_util_string_concatenate | ( | const char * | s, | |
... | ||||
) |
Definition at line 71 of file microfeedmisc.c.
Referenced by microfeed_configuration_get_provider_name(), microfeed_database_get_index(), microfeed_feed_new(), and microfeed_publisher_new().
char* microfeed_util_string_unescape_percent_encoding | ( | const char * | s | ) |
Definition at line 107 of file microfeedmisc.c.
void microfeed_weak_reference_free | ( | MicrofeedWeakReference * | weak_refeference | ) |
Definition at line 160 of file microfeedmisc.c.
References microfeed_memory_free(), _MicrofeedWeakReference::reference_count, and _MicrofeedWeakReference::referenced.
void* microfeed_weak_reference_get_impl | ( | MicrofeedWeakReference * | weak_reference | ) |
void microfeed_weak_reference_invalidate | ( | MicrofeedWeakReference * | weak_reference | ) |
Definition at line 173 of file microfeedmisc.c.
References _MicrofeedWeakReference::referenced.
Referenced by microfeed_feed_free().
MicrofeedWeakReference* microfeed_weak_reference_new | ( | void * | referenced, | |
MicrofeedWeakReference * | existing_weak_reference | |||
) |
Definition at line 148 of file microfeedmisc.c.
References microfeed_memory_allocate, _MicrofeedWeakReference::reference_count, and _MicrofeedWeakReference::referenced.
Referenced by microfeed_feed_get_weak_reference().