• Martin Pitt's avatar
    GBytes: Add missing annotations · e06268d7
    Martin Pitt authored
    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
    This is covered by test cases in PyGObject.
gbytes.c 12.5 KB