/**
* foo_test_array:
* @a: (element-type):
* @b: (element-type x y z):
*
* Returns: (element-type utf8) (transfer container): returns %NULL.
*/
foo_test_array
a
element-type
b
element-type
returns
element-type
transfer
returns %NULL.
3: Warning: Test: "element-type" annotation takes at least one option, none given
4: Warning: Test: "element-type" annotation takes at most 2 options, 3 given
/**
* RegressTestObj::sig-with-hash-prop:
* @self: an object
* @hash: (element-type utf8 GObject.Value):
*
* This test signal is like TelepathyGlib's
* TpAccount::status-changed
*/
RegressTestObj::sig-with-hash-prop
self
an object
hash
element-type
This test signal is like TelepathyGlib's
TpAccount::status-changed
) (transfer full):
*/]]>
regress_test_ghash_nested_everything_return2
Another way of specifying nested parameterized types: using the
element-type annotation.
returns
element-type
transfer
/**
* foo_test_array:
*
* Returns: (element-type invalid utf8=invalid GLib.HashTable(utf8,utf8)): returns %NULL.
*/
foo_test_array
returns
element-type
returns %NULL.
4: Warning: Test: invalid annotation options: expected a "list" but received "key=value pairs":
* Returns: (element-type invalid utf8=invalid GLib.HashTable(utf8,utf8)): returns %NULL.
^
/**
* foo_test_array:
*
* Returns: (element-type utf8=invalid GLib.HashTable(utf8,utf8) invalid): returns %NULL.
*/
foo_test_array
returns
element-type
returns %NULL.
4: Warning: Test: invalid annotation options: expected a "list" but received "key=value pairs":
* Returns: (element-type utf8=invalid GLib.HashTable(utf8,utf8) invalid): returns %NULL.
^