gir/delegate-array-length-type.gir \
gir/delegate-closure-destroy-index-conflict.gir \
gir/delegate-error-pos.gir \
+ gir/dev_t.gir \
gir/enum.gir \
gir/errordomain.gir \
+ gir/gid_t.gir \
gir/gtype-struct-name.gir \
gir/instance-parameter-owned.gir \
gir/method-array-length-type.gir \
gir/parameter-array-length-type.gir \
gir/parameter-array-out.gir \
gir/parameter-nullable-out-simple-type.gir \
+ gir/pid_t.gir \
gir/property-non-readable.gir \
gir/signal-virtual.gir \
gir/record-copy-free-func.gir \
+ gir/socklen_t.gir \
gir/symbol-redefined.gir \
gir/symbol-type-csuffix.gir \
gir/symbol-without-name.gir \
gir/time_t.gir \
+ gir/uid_t.gir \
gir/union.gir \
gir/union-transparent.gir \
girwriter/class-final.test \
--- /dev/null
+<?xml version="1.0"?>
+<repository version="1.2" xmlns="http://www.gtk.org/introspection/core/1.0" xmlns:c="http://www.gtk.org/introspection/c/1.0" xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
+<include name="GLib" version="2.0"/>
+<package name="test"/>
+<c:include name="test.h"/>
+<namespace name="Test" version="1.0" shared-library="test" c:prefix="Test" c:identifier-prefixes="Test" c:symbol-prefixes="test">
+<function name="function" c:identifier="test_function">
+ <return-value transfer-ownership="none">
+ <type name="dev_t" c:type="dev_t"/>
+ </return-value>
+ <parameters>
+ <parameter name="device" transfer-ownership="none">
+ <type name="dev_t" c:type="dev_t"/>
+ </parameter>
+ </parameters>
+</function>
+<function name="function_compat" c:identifier="test_function_compat">
+ <return-value transfer-ownership="none">
+ <type name="gint" c:type="dev_t"/>
+ </return-value>
+ <parameters>
+ <parameter name="device" transfer-ownership="none">
+ <type name="gint" c:type="dev_t"/>
+ </parameter>
+ </parameters>
+</function>
+</namespace>
+</repository>
--- /dev/null
+[CCode (cprefix = "Test", gir_namespace = "Test", gir_version = "1.0", lower_case_cprefix = "test_")]
+namespace Test {
+ [CCode (cheader_filename = "test.h")]
+ public static dev_t function (dev_t device);
+ [CCode (cheader_filename = "test.h")]
+ public static dev_t function_compat (dev_t device);
+}
--- /dev/null
+<?xml version="1.0"?>
+<repository version="1.2" xmlns="http://www.gtk.org/introspection/core/1.0" xmlns:c="http://www.gtk.org/introspection/c/1.0" xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
+<include name="GLib" version="2.0"/>
+<package name="test"/>
+<c:include name="test.h"/>
+<namespace name="Test" version="1.0" shared-library="test" c:prefix="Test" c:identifier-prefixes="Test" c:symbol-prefixes="test">
+<function name="function" c:identifier="test_function">
+ <return-value transfer-ownership="none">
+ <type name="gid_t" c:type="gid_t"/>
+ </return-value>
+ <parameters>
+ <parameter name="group" transfer-ownership="none">
+ <type name="gid_t" c:type="gid_t"/>
+ </parameter>
+ </parameters>
+</function>
+<function name="function_compat" c:identifier="test_function_compat">
+ <return-value transfer-ownership="none">
+ <type name="guint" c:type="gid_t"/>
+ </return-value>
+ <parameters>
+ <parameter name="group" transfer-ownership="none">
+ <type name="guint" c:type="gid_t"/>
+ </parameter>
+ </parameters>
+</function>
+</namespace>
+</repository>
--- /dev/null
+[CCode (cprefix = "Test", gir_namespace = "Test", gir_version = "1.0", lower_case_cprefix = "test_")]
+namespace Test {
+ [CCode (cheader_filename = "test.h")]
+ public static gid_t function (gid_t group);
+ [CCode (cheader_filename = "test.h")]
+ public static gid_t function_compat (gid_t group);
+}
--- /dev/null
+<?xml version="1.0"?>
+<repository version="1.2" xmlns="http://www.gtk.org/introspection/core/1.0" xmlns:c="http://www.gtk.org/introspection/c/1.0" xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
+<include name="GLib" version="2.0"/>
+<package name="test"/>
+<c:include name="test.h"/>
+<namespace name="Test" version="1.0" shared-library="test" c:prefix="Test" c:identifier-prefixes="Test" c:symbol-prefixes="test">
+<function name="function" c:identifier="test_function">
+ <return-value transfer-ownership="none">
+ <type name="pid_t" c:type="pid_t"/>
+ </return-value>
+ <parameters>
+ <parameter name="process" transfer-ownership="none">
+ <type name="pid_t" c:type="pid_t"/>
+ </parameter>
+ </parameters>
+</function>
+<function name="function_compat" c:identifier="test_function_compat">
+ <return-value transfer-ownership="none">
+ <type name="gint" c:type="pid_t"/>
+ </return-value>
+ <parameters>
+ <parameter name="process" transfer-ownership="none">
+ <type name="gint" c:type="pid_t"/>
+ </parameter>
+ </parameters>
+</function>
+</namespace>
+</repository>
--- /dev/null
+[CCode (cprefix = "Test", gir_namespace = "Test", gir_version = "1.0", lower_case_cprefix = "test_")]
+namespace Test {
+ [CCode (cheader_filename = "test.h")]
+ public static pid_t function (pid_t process);
+ [CCode (cheader_filename = "test.h")]
+ public static pid_t function_compat (pid_t process);
+}
--- /dev/null
+<?xml version="1.0"?>
+<repository version="1.2" xmlns="http://www.gtk.org/introspection/core/1.0" xmlns:c="http://www.gtk.org/introspection/c/1.0" xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
+<include name="GLib" version="2.0"/>
+<package name="test"/>
+<c:include name="test.h"/>
+<namespace name="Test" version="1.0" shared-library="test" c:prefix="Test" c:identifier-prefixes="Test" c:symbol-prefixes="test">
+<function name="function" c:identifier="test_function">
+ <return-value transfer-ownership="none">
+ <type name="socklen_t" c:type="socklen_t"/>
+ </return-value>
+ <parameters>
+ <parameter name="msg" transfer-ownership="none">
+ <type name="socklen_t" c:type="socklen_t"/>
+ </parameter>
+ </parameters>
+</function>
+<function name="function_compat" c:identifier="test_function_compat">
+ <return-value transfer-ownership="none">
+ <type name="gint32" c:type="socklen_t"/>
+ </return-value>
+ <parameters>
+ <parameter name="msg" transfer-ownership="none">
+ <type name="gint32" c:type="socklen_t"/>
+ </parameter>
+ </parameters>
+</function>
+</namespace>
+</repository>
--- /dev/null
+[CCode (cprefix = "Test", gir_namespace = "Test", gir_version = "1.0", lower_case_cprefix = "test_")]
+namespace Test {
+ [CCode (cheader_filename = "test.h")]
+ public static socklen_t function (socklen_t msg);
+ [CCode (cheader_filename = "test.h")]
+ public static socklen_t function_compat (socklen_t msg);
+}
--- /dev/null
+<?xml version="1.0"?>
+<repository version="1.2" xmlns="http://www.gtk.org/introspection/core/1.0" xmlns:c="http://www.gtk.org/introspection/c/1.0" xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
+<include name="GLib" version="2.0"/>
+<package name="test"/>
+<c:include name="test.h"/>
+<namespace name="Test" version="1.0" shared-library="test" c:prefix="Test" c:identifier-prefixes="Test" c:symbol-prefixes="test">
+<function name="function" c:identifier="test_function">
+ <return-value transfer-ownership="none">
+ <type name="uid_t" c:type="uid_t"/>
+ </return-value>
+ <parameters>
+ <parameter name="user" transfer-ownership="none">
+ <type name="uid_t" c:type="uid_t"/>
+ </parameter>
+ </parameters>
+</function>
+<function name="function_compat" c:identifier="test_function_compat">
+ <return-value transfer-ownership="none">
+ <type name="guint" c:type="uid_t"/>
+ </return-value>
+ <parameters>
+ <parameter name="user" transfer-ownership="none">
+ <type name="guint" c:type="uid_t"/>
+ </parameter>
+ </parameters>
+</function>
+</namespace>
+</repository>
--- /dev/null
+[CCode (cprefix = "Test", gir_namespace = "Test", gir_version = "1.0", lower_case_cprefix = "test_")]
+namespace Test {
+ [CCode (cheader_filename = "test.h")]
+ public static uid_t function (uid_t user);
+ [CCode (cheader_filename = "test.h")]
+ public static uid_t function_compat (uid_t user);
+}
} else if (type_name == "gushort") {
type_name = "ushort";
} else if (type_name == "gint") {
- type_name = "int";
+ if (ctype != null && ctype.has_prefix ("dev_t")) {
+ type_name = "dev_t";
+ } else if (ctype != null && ctype.has_prefix ("pid_t")) {
+ type_name = "pid_t";
+ } else {
+ type_name = "int";
+ }
} else if (type_name == "guint") {
- type_name = "uint";
+ if (ctype != null && ctype.has_prefix ("gid_t")) {
+ type_name = "gid_t";
+ } else if (ctype != null && ctype.has_prefix ("uid_t")) {
+ type_name = "uid_t";
+ } else {
+ type_name = "uint";
+ }
} else if (type_name == "glong") {
if (ctype != null && ctype.has_prefix ("gssize")) {
type_name = "ssize_t";
} else if (type_name == "guint16") {
type_name = "uint16";
} else if (type_name == "gint32") {
- type_name = "int32";
+ if (ctype != null && ctype.has_prefix ("socklen_t")) {
+ type_name = "socklen_t";
+ } else {
+ type_name = "int32";
+ }
} else if (type_name == "guint32") {
type_name = "uint32";
} else if (type_name == "gint64") {
public struct off_t {
}
+//FIXME [GIR (name = "pid_t")]
+[GIR (name = "gint")]
+[IntegerType (rank = 9)]
+[CCode (cheader_filename = "sys/types.h", has_type_id = false, default_value = "0")]
+public struct pid_t {
+}
+
+//FIXME [GIR (name = "uid_t")]
+[GIR (name = "guint")]
+[IntegerType (rank = 9)]
+[CCode (cheader_filename = "sys/types.h", has_type_id = false, default_value = "0")]
+public struct uid_t {
+}
+
+//FIXME [GIR (name = "gid_t")]
+[GIR (name = "guint")]
+[IntegerType (rank = 9)]
+[CCode (cheader_filename = "sys/types.h", has_type_id = false, default_value = "0")]
+public struct gid_t {
+}
+
+//FIXME [GIR (name = "dev_t")]
+[GIR (name = "gint")]
+[IntegerType (rank = 9)]
+[CCode (cheader_filename = "sys/types.h", has_type_id = false, default_value = "0")]
+public struct dev_t {
+}
+
+//FIXME [GIR (name = "socklen_t")]
+[GIR (name = "gint32")]
+[IntegerType (rank = 9)]
+[CCode (cheader_filename = "sys/socket.h", has_type_id = false, default_value = "0")]
+public struct socklen_t {
+}
+
//FIXME [GIR (name = "time_t")]
[GIR (name = "glong")]
[CCode (cheader_filename = "time.h", has_type_id = false, default_value = "0")]