Release 0.41.92
[vala-gnome.git] / tests / gir / bug667751.test
blobdfba91609f431a89a7013ac64063aee3811fe045
1 GIR
3 Input:
5 <alias name="RemoteConnectionCommitFunc"
6  c:type="NMRemoteConnectionCommitFunc">
7  <type name="RemoteConnectionResultFunc"
8   c:type="NMRemoteConnectionResultFunc"/>
9 </alias>
11 <callback name="RemoteConnectionResultFunc"
12  c:type="NMRemoteConnectionResultFunc">
13  <return-value transfer-ownership="none">
14   <type name="none" c:type="void"/>
15  </return-value>
16  <parameters>
17   <parameter name="error" transfer-ownership="none">
18    <doc xml:whitespace="preserve">on failure, a descriptive error</doc>
19    <type name="GLib.Error" c:type="GError*"/>
20   </parameter>
21   <parameter name="user_data" transfer-ownership="none" closure="1">
22    <doc xml:whitespace="preserve">user data passed to function which began the operation</doc>
23    <type name="gpointer" c:type="gpointer"/>
24   </parameter>
25  </parameters>
26 </callback>
28 Output:
30 [CCode (cheader_filename = "test.h", cname = "NMRemoteConnectionResultFunc", instance_pos = 1.9)]
31 public delegate void RemoteConnectionCommitFunc (GLib.Error error);
32 [CCode (cheader_filename = "test.h", cname = "NMRemoteConnectionResultFunc", instance_pos = 1.9)]
33 public delegate void RemoteConnectionResultFunc (GLib.Error error);