[gdk-pixbuf] Add introspection annotations for gdk_pixbuf_save_to_callback().
- From: Laszlo Pandy <lpandy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf] Add introspection annotations for gdk_pixbuf_save_to_callback().
- Date: Tue, 22 Feb 2011 22:06:30 +0000 (UTC)
commit 56c7de18e344d36efa095f3ea24855d0d011b8c7
Author: Laszlo Pandy <lpandy src gnome org>
Date: Tue Feb 22 23:04:17 2011 +0100
Add introspection annotations for gdk_pixbuf_save_to_callback().
gdk-pixbuf/gdk-pixbuf-core.h | 7 +++++++
gdk-pixbuf/gdk-pixbuf-io.c | 6 +++---
2 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/gdk-pixbuf/gdk-pixbuf-core.h b/gdk-pixbuf/gdk-pixbuf-core.h
index 35d3f97..13cec1e 100644
--- a/gdk-pixbuf/gdk-pixbuf-core.h
+++ b/gdk-pixbuf/gdk-pixbuf-core.h
@@ -182,6 +182,13 @@ gboolean gdk_pixbuf_savev (GdkPixbuf *pixbuf,
/* Saving to a callback function */
+/**
+ * GdkPixbufSaveFunc:
+ * @buf:
+ * @count:
+ * @error: (out):
+ * @data: (closure):
+ **/
typedef gboolean (*GdkPixbufSaveFunc) (const gchar *buf,
gsize count,
GError **error,
diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c
index d01575c..b6eb4ea 100644
--- a/gdk-pixbuf/gdk-pixbuf-io.c
+++ b/gdk-pixbuf/gdk-pixbuf-io.c
@@ -2309,10 +2309,10 @@ gdk_pixbuf_save_to_callback (GdkPixbuf *pixbuf,
* @pixbuf: a #GdkPixbuf.
* @save_func: (scope call): a function that is called to save each block of data that
* the save routine generates.
- * @user_data: user data to pass to the save function.
+ * @user_data: (closure save_func): user data to pass to the save function.
* @type: name of file format.
- * @option_keys: name of options to set, %NULL-terminated
- * @option_values: values for named options
+ * @option_keys: (array zero-terminated=1) (element-type utf8): name of options to set, %NULL-terminated
+ * @option_values: (array zero-terminated=1) (element-type utf8): values for named options
* @error: (allow-none): return location for error, or %NULL
*
* Saves pixbuf to a callback in format @type, which is currently "jpeg",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]