[aravis] buffer: fix buffer_new annotation.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] buffer: fix buffer_new annotation.
- Date: Thu, 20 May 2010 08:09:43 +0000 (UTC)
commit 45523da1f26653de305845ea66fa520956f129a7
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Thu May 20 10:09:08 2010 +0200
buffer: fix buffer_new annotation.
src/arvbuffer.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/arvbuffer.c b/src/arvbuffer.c
index b2df9c8..4d00afa 100644
--- a/src/arvbuffer.c
+++ b/src/arvbuffer.c
@@ -28,8 +28,9 @@ static GObjectClass *parent_class = NULL;
arv_buffer_new:
@size: payload size
- @preallocated: (transfer full): preallocated memory buffer
+ @preallocated: (transfer none): preallocated memory buffer
+ Creates a new buffer for the storage of the video stream images. The data space can be either preallocated, and the caller is responsible for it's deallocation, or allocated by this function. If it is the case, data memory will be freed when the buffer is destroyed.
*/
ArvBuffer *
@@ -51,6 +52,12 @@ arv_buffer_new (size_t size, void *preallocated)
return buffer;
}
+/**
+ arv_buffer_clear:
+
+ Clears the buffer status.
+ */
+
void
arv_buffer_clear (ArvBuffer *buffer)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]