mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2024-11-03 04:17:20 -05:00
Update: Migrated away from igloo_ro_new()
This commit is contained in:
parent
dd0ba39af3
commit
8baa9de529
@ -47,14 +47,6 @@ igloo_RO_FORWARD_TYPE(igloo_buffer_t);
|
||||
*/
|
||||
igloo_buffer_t * igloo_buffer_new(ssize_t preallocation, const char *name, igloo_ro_t associated, igloo_ro_t instance);
|
||||
|
||||
/* Depreciated: This creates a new buffer with defaults.
|
||||
* Do NOT use this. Use refobject_new(igloo_buffer_t)
|
||||
*
|
||||
* This is the same as:
|
||||
* igloo_buffer_new(-1, NULL, NULL, REFOBJECT_NULL)
|
||||
*/
|
||||
igloo_buffer_t * igloo_buffer_new_simple(void);
|
||||
|
||||
/* This function preallocates space for later use.
|
||||
* Parameters:
|
||||
* buffer
|
||||
|
@ -59,11 +59,6 @@ igloo_buffer_t * igloo_buffer_new(ssize_t preallocation, const char *name, iglo
|
||||
return buffer;
|
||||
}
|
||||
|
||||
igloo_buffer_t * igloo_buffer_new_simple(void)
|
||||
{
|
||||
return igloo_ro_new(igloo_buffer_t);
|
||||
}
|
||||
|
||||
void igloo_buffer_preallocate(igloo_buffer_t *buffer, size_t request)
|
||||
{
|
||||
void *n;
|
||||
|
@ -134,7 +134,7 @@ int igloo_objecthandler_push_filter(igloo_objecthandler_t *handler, igloo_filter
|
||||
|
||||
igloo_thread_rwlock_wlock(&(handler->rwlock));
|
||||
if (!handler->filter_list && handler->filter_a && handler->filter_b) {
|
||||
handler->filter_list = igloo_ro_new(igloo_list_t);
|
||||
handler->filter_list = igloo_ro_new_ext(igloo_list_t, NULL, igloo_RO_NULL, handler);
|
||||
if (!handler->filter_list) {
|
||||
igloo_thread_rwlock_unlock(&(handler->rwlock));
|
||||
return -1;
|
||||
|
@ -1287,7 +1287,7 @@ igloo_reportxml_t * igloo_reportxml_database_build_report(igloo_report
|
||||
} else if (count == 0) {
|
||||
/* Empty definition? Not exactly an exciting report... */
|
||||
igloo_ro_unref(definition);
|
||||
return igloo_ro_new(igloo_reportxml_t);
|
||||
return igloo_ro_new_ext(igloo_reportxml_t, NULL, igloo_RO_NULL, db);
|
||||
}
|
||||
|
||||
if (type == igloo_REPORTXML_NODE_TYPE__ERROR) {
|
||||
@ -1313,7 +1313,7 @@ igloo_reportxml_t * igloo_reportxml_database_build_report(igloo_report
|
||||
break;
|
||||
}
|
||||
|
||||
ret = igloo_ro_new(igloo_reportxml_t);
|
||||
ret = igloo_ro_new_ext(igloo_reportxml_t, NULL, igloo_RO_NULL, db);
|
||||
if (!ret) {
|
||||
igloo_ro_unref(definition);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user