-/**
- * gst_memory_allocator_register:
- * @name: the name of the allocator
- * @info: #GstMemoryInfo
- *
- * Registers the memory allocator with @name and implementation functions
- * @info.
- *
- * All functions in @info are mandatory exept the copy and is_span
- * functions, which will have a default implementation when left NULL.
- *
- * The user_data field in @info will be passed to all calls of the alloc
- * function.
- *
- * Returns: a new #GstMemoryAllocator.
- */
-const GstMemoryAllocator *
-gst_memory_allocator_register (const gchar * name, const GstMemoryInfo * info)
-{
- GstMemoryAllocator *allocator;
-
-#define INSTALL_FALLBACK(_t) \
- if (allocator->info._t == NULL) allocator->info._t = _fallback_ ##_t;
-
- g_return_val_if_fail (name != NULL, NULL);
- g_return_val_if_fail (info != NULL, NULL);
- g_return_val_if_fail (info->alloc != NULL, NULL);
- g_return_val_if_fail (info->get_sizes != NULL, NULL);
- g_return_val_if_fail (info->resize != NULL, NULL);
- g_return_val_if_fail (info->map != NULL, NULL);
- g_return_val_if_fail (info->unmap != NULL, NULL);
- g_return_val_if_fail (info->free != NULL, NULL);
- g_return_val_if_fail (info->share != NULL, NULL);
-
- allocator = g_slice_new (GstMemoryAllocator);
- allocator->name = g_quark_from_string (name);
- allocator->info = *info;
- INSTALL_FALLBACK (copy);
- INSTALL_FALLBACK (is_span);
-#undef INSTALL_FALLBACK
-
- GST_DEBUG ("register \"%s\" of size %" G_GSIZE_FORMAT, name);
-
- g_static_rw_lock_writer_lock (&lock);
- g_hash_table_insert (allocators, (gpointer) name, (gpointer) allocator);
- g_static_rw_lock_writer_unlock (&lock);
-
- return allocator;
-}
-
-/**
- * gst_memory_allocator_find:
- * @name: the name of the allocator
- *
- * Find a previously registered allocator with @name. When @name is NULL, the
- * default allocator will be returned.
- *
- * Returns: a #GstMemoryAllocator or NULL when the allocator with @name was not
- * registered.
- */
-const GstMemoryAllocator *
-gst_memory_allocator_find (const gchar * name)
-{
- const GstMemoryAllocator *allocator;
-
- g_static_rw_lock_reader_lock (&lock);
- if (name) {
- allocator = g_hash_table_lookup (allocators, (gconstpointer) name);
- } else {
- allocator = _default_allocator;
- }
- g_static_rw_lock_reader_unlock (&lock);
-
- return allocator;
-}
-
-/**
- * gst_memory_allocator_set_default:
- * @allocator: a ##GstMemoryAllocator
- *
- * Set the default allocator.
- */