mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
allocator: Switch allow-none
annotations to nullable
/ optional
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3369>
This commit is contained in:
parent
ef8474aad5
commit
30d894866d
1 changed files with 5 additions and 5 deletions
|
@ -240,7 +240,7 @@ gst_allocator_register (const gchar * name, GstAllocator * allocator)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_allocator_find:
|
* gst_allocator_find:
|
||||||
* @name: (allow-none): the name of the allocator
|
* @name: (nullable): the name of the allocator
|
||||||
*
|
*
|
||||||
* Find a previously registered allocator with @name. When @name is %NULL, the
|
* Find a previously registered allocator with @name. When @name is %NULL, the
|
||||||
* default allocator will be returned.
|
* default allocator will be returned.
|
||||||
|
@ -290,9 +290,9 @@ gst_allocator_set_default (GstAllocator * allocator)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_allocator_alloc:
|
* gst_allocator_alloc:
|
||||||
* @allocator: (transfer none) (allow-none): a #GstAllocator to use
|
* @allocator: (transfer none) (nullable): a #GstAllocator to use
|
||||||
* @size: size of the visible memory area
|
* @size: size of the visible memory area
|
||||||
* @params: (transfer none) (allow-none): optional parameters
|
* @params: (transfer none) (nullable): optional parameters
|
||||||
*
|
*
|
||||||
* Use @allocator to allocate a new memory block with memory that is at least
|
* Use @allocator to allocate a new memory block with memory that is at least
|
||||||
* @size big.
|
* @size big.
|
||||||
|
@ -643,8 +643,8 @@ _priv_gst_allocator_cleanup (void)
|
||||||
* @maxsize: allocated size of @data
|
* @maxsize: allocated size of @data
|
||||||
* @offset: offset in @data
|
* @offset: offset in @data
|
||||||
* @size: size of valid data
|
* @size: size of valid data
|
||||||
* @user_data: (allow-none): user_data
|
* @user_data: (nullable): user_data
|
||||||
* @notify: (allow-none) (scope async) (closure user_data): called with @user_data when the memory is freed
|
* @notify: (nullable) (scope async) (closure user_data): called with @user_data when the memory is freed
|
||||||
*
|
*
|
||||||
* Allocate a new memory block that wraps the given @data.
|
* Allocate a new memory block that wraps the given @data.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue