mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
allocator: Switch allow-none
annotations to nullable
/ optional
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3364>
This commit is contained in:
parent
aadebd6921
commit
82f09d64d7
1 changed files with 5 additions and 5 deletions
|
@ -240,7 +240,7 @@ gst_allocator_register (const gchar * name, GstAllocator * allocator)
|
|||
|
||||
/**
|
||||
* 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
|
||||
* default allocator will be returned.
|
||||
|
@ -290,9 +290,9 @@ gst_allocator_set_default (GstAllocator * allocator)
|
|||
|
||||
/**
|
||||
* 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
|
||||
* @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
|
||||
* @size big.
|
||||
|
@ -643,8 +643,8 @@ _priv_gst_allocator_cleanup (void)
|
|||
* @maxsize: allocated size of @data
|
||||
* @offset: offset in @data
|
||||
* @size: size of valid data
|
||||
* @user_data: (allow-none): user_data
|
||||
* @notify: (allow-none) (scope async) (closure user_data): called with @user_data when the memory is freed
|
||||
* @user_data: (nullable): user_data
|
||||
* @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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue