GBytes: Add missing annotations
authorMartin Pitt <martinpitt@gnome.org>
Fri, 9 Nov 2012 08:02:22 +0000 (09:02 +0100)
committerMartin Pitt <martinpitt@gnome.org>
Fri, 9 Nov 2012 08:09:39 +0000 (09:09 +0100)
commite06268d72e49dd487038043674aa1ee2f419118c
treeb6988f907286025f44b271021cf88a33e0597d22
parent8dd70a261df853d86f4944481dc6a18d4c8a62af
GBytes: Add missing annotations

Annotate g_bytes_new*()'s data argument to be a guint8 array, as
introspection clients cannot deal with raw gconstpointers. This makes
GBytes' behaviour similar to GByteArray whose API already uses guint8.

Add missing transfer annotation to g_bytes_get_data() to make it
introspectable.

This is covered by test cases in PyGObject.
glib/gbytes.c