Skip to content

Commit

Permalink
add (nullable) annotation to three methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jwahlstrand authored and EmmanuelP committed Dec 16, 2024
1 parent a33a3f4 commit 23dde5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/arvcamera.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ arv_camera_abort_acquisition (ArvCamera *camera, GError **error)
* Continuous acquisition mode for later operations, using arv_camera_set_acquisition_mode().</para>
* </warning>
*
* Returns: (transfer full): A new #ArvBuffer, NULL on error. The returned buffer must be freed using
* Returns: (transfer full) (nullable): A new #ArvBuffer, NULL on error or if timed out. The returned buffer must be freed using
* [method@GObject.Object.unref].
*
* Since: 0.8.0
Expand Down
4 changes: 2 additions & 2 deletions src/arvstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ arv_stream_pop_buffer (ArvStream *stream)
*
* This method is thread safe.
*
* Returns: (transfer full): a #ArvBuffer, NULL if no buffer is available.
* Returns: (transfer full) (nullable): a #ArvBuffer, NULL if no buffer is available.
*
* Since: 0.2.0
*/
Expand All @@ -166,7 +166,7 @@ arv_stream_try_pop_buffer (ArvStream *stream)
*
* This method is thread safe.
*
* Returns: (transfer full): a #ArvBuffer, NULL if no buffer is available until the timeout occurs.
* Returns: (transfer full) (nullable): a #ArvBuffer, NULL if no buffer is available until the timeout occurs.
*
* Since: 0.2.0
*/
Expand Down

0 comments on commit 23dde5a

Please sign in to comment.