1717 *)
1818
1919type info_type =
20- | Invalid (* * invalid type *)
21- | Function (* * function, see Function_info *)
22- | Callback (* * callback, see Function_info *)
23- | Struct (* * struct, see Struct_info *)
24- | Boxed (* * boxed, see Struct_info or Union_info *)
25- | Enum (* * enum, see Enum_info *)
26- | Flags (* * flags, see Enum_info *)
27- | Object (* * object, see Object_info *)
28- | Interface (* * interface, see Interface_info *)
29- | Constant (* * contant, see Constant_info *)
30- | Invalid_0 (* * deleted, used to be GI_INFO_TYPE_ERROR_DOMAIN. *)
31- | Union (* * union, see Union_info *)
32- | Value (* * enum value, see Value_info *)
33- | Signal (* * signal, see Signal_info *)
34- | Vfunc (* * virtual function, see VFunc_info *)
35- | Property (* * GObject property, see Property_info *)
36- | Field (* * struct or union field, see Field_info *)
37- | Arg (* * argument of a function or callback, see Arg_info *)
38- | Type (* * type information, see Type_info *)
39- | Unresolved (* * unresolved type, a type which is not present in the typelib, or any of its dependencies. *)
20+ | Invalid (* * invalid type *)
21+ | Function (* * function, see Function_info *)
22+ | Callback (* * callback, see Function_info *)
23+ | Struct (* * struct, see Struct_info *)
24+ | Boxed (* * boxed, see Struct_info or Union_info *)
25+ | Enum (* * enum, see Enum_info *)
26+ | Flags (* * flags, see Enum_info *)
27+ | Object (* * object, see Object_info *)
28+ | Interface (* * interface, see Interface_info *)
29+ | Constant (* * contant, see Constant_info *)
30+ | Invalid_0 (* * deleted, used to be GI_INFO_TYPE_ERROR_DOMAIN. *)
31+ | Union (* * union, see Union_info *)
32+ | Value (* * enum value, see Value_info *)
33+ | Signal (* * signal, see Signal_info *)
34+ | Vfunc (* * virtual function, see VFunc_info *)
35+ | Property (* * GObject property, see Property_info *)
36+ | Field (* * struct or union field, see Field_info *)
37+ | Arg (* * argument of a function or callback, see Arg_info *)
38+ | Type (* * type information, see Type_info *)
39+ | Unresolved
40+ (* * unresolved type, a type which is not present in the typelib, or any of its dependencies. *)
4041
4142let string_of_info_type = function
4243 | Invalid -> " Invalid"
@@ -60,49 +61,55 @@ let string_of_info_type = function
6061 | Type -> " Type"
6162 | Unresolved -> " Unresolved "
6263
63- module Enums = functor (T : Cstubs.Types.TYPE ) -> struct
64- let gi_info_type_invalid = T. constant " GI_INFO_TYPE_INVALID" T. int64_t
65- let gi_info_type_function = T. constant " GI_INFO_TYPE_FUNCTION" T. int64_t
66- let gi_info_type_callback = T. constant " GI_INFO_TYPE_CALLBACK" T. int64_t
67- let gi_info_type_struct = T. constant " GI_INFO_TYPE_STRUCT" T. int64_t
68- let gi_info_type_boxed = T. constant " GI_INFO_TYPE_BOXED" T. int64_t
69- let gi_info_type_enum = T. constant " GI_INFO_TYPE_ENUM" T. int64_t
70- let gi_info_type_flags = T. constant " GI_INFO_TYPE_FLAGS" T. int64_t
71- let gi_info_type_object = T. constant " GI_INFO_TYPE_OBJECT" T. int64_t
72- let gi_info_type_interface = T. constant " GI_INFO_TYPE_INTERFACE" T. int64_t
73- let gi_info_type_constant = T. constant " GI_INFO_TYPE_CONSTANT" T. int64_t
74- let gi_info_type_invalid_0 = T. constant " GI_INFO_TYPE_INVALID_0" T. int64_t
75- let gi_info_type_union = T. constant " GI_INFO_TYPE_UNION" T. int64_t
76- let gi_info_type_value = T. constant " GI_INFO_TYPE_VALUE" T. int64_t
77- let gi_info_type_signal = T. constant " GI_INFO_TYPE_SIGNAL" T. int64_t
78- let gi_info_type_vfunc = T. constant " GI_INFO_TYPE_VFUNC" T. int64_t
79- let gi_info_type_property = T. constant " GI_INFO_TYPE_PROPERTY" T. int64_t
80- let gi_info_type_field = T. constant " GI_INFO_TYPE_FIELD" T. int64_t
81- let gi_info_type_arg = T. constant " GI_INFO_TYPE_ARG" T. int64_t
82- let gi_info_type_type = T. constant " GI_INFO_TYPE_TYPE" T. int64_t
83- let gi_info_type_unresolved = T. constant " GI_INFO_TYPE_UNRESOLVED" T. int64_t
64+ module Enums =
65+ functor
66+ (T : Cstubs.Types.TYPE )
67+ ->
68+ struct
69+ let gi_info_type_invalid = T. constant " GI_INFO_TYPE_INVALID" T. int64_t
70+ let gi_info_type_function = T. constant " GI_INFO_TYPE_FUNCTION" T. int64_t
71+ let gi_info_type_callback = T. constant " GI_INFO_TYPE_CALLBACK" T. int64_t
72+ let gi_info_type_struct = T. constant " GI_INFO_TYPE_STRUCT" T. int64_t
73+ let gi_info_type_boxed = T. constant " GI_INFO_TYPE_BOXED" T. int64_t
74+ let gi_info_type_enum = T. constant " GI_INFO_TYPE_ENUM" T. int64_t
75+ let gi_info_type_flags = T. constant " GI_INFO_TYPE_FLAGS" T. int64_t
76+ let gi_info_type_object = T. constant " GI_INFO_TYPE_OBJECT" T. int64_t
77+ let gi_info_type_interface = T. constant " GI_INFO_TYPE_INTERFACE" T. int64_t
78+ let gi_info_type_constant = T. constant " GI_INFO_TYPE_CONSTANT" T. int64_t
79+ let gi_info_type_invalid_0 = T. constant " GI_INFO_TYPE_INVALID_0" T. int64_t
80+ let gi_info_type_union = T. constant " GI_INFO_TYPE_UNION" T. int64_t
81+ let gi_info_type_value = T. constant " GI_INFO_TYPE_VALUE" T. int64_t
82+ let gi_info_type_signal = T. constant " GI_INFO_TYPE_SIGNAL" T. int64_t
83+ let gi_info_type_vfunc = T. constant " GI_INFO_TYPE_VFUNC" T. int64_t
84+ let gi_info_type_property = T. constant " GI_INFO_TYPE_PROPERTY" T. int64_t
85+ let gi_info_type_field = T. constant " GI_INFO_TYPE_FIELD" T. int64_t
86+ let gi_info_type_arg = T. constant " GI_INFO_TYPE_ARG" T. int64_t
87+ let gi_info_type_type = T. constant " GI_INFO_TYPE_TYPE" T. int64_t
88+ let gi_info_type_unresolved = T. constant " GI_INFO_TYPE_UNRESOLVED" T. int64_t
8489
85- let info_type = T. enum " GIInfoType" ~typedef: true [
86- Invalid , gi_info_type_invalid;
87- Function , gi_info_type_function;
88- Callback , gi_info_type_callback;
89- Struct , gi_info_type_struct;
90- Boxed , gi_info_type_boxed;
91- Enum , gi_info_type_enum;
92- Flags , gi_info_type_flags;
93- Object , gi_info_type_object;
94- Interface , gi_info_type_interface;
95- Constant , gi_info_type_constant;
96- Invalid_0 , gi_info_type_invalid_0;
97- Union , gi_info_type_union;
98- Value , gi_info_type_value;
99- Signal , gi_info_type_signal;
100- Vfunc , gi_info_type_vfunc;
101- Property , gi_info_type_property;
102- Field , gi_info_type_field;
103- Arg , gi_info_type_arg;
104- Type , gi_info_type_type;
105- Unresolved , gi_info_type_unresolved;
106- ]
107- ~unexpected: (Utils. unexpected_value_for " GIInfoType" )
108- end
90+ let info_type =
91+ T. enum " GIInfoType" ~typedef: true
92+ [
93+ (Invalid , gi_info_type_invalid);
94+ (Function , gi_info_type_function);
95+ (Callback , gi_info_type_callback);
96+ (Struct , gi_info_type_struct);
97+ (Boxed , gi_info_type_boxed);
98+ (Enum , gi_info_type_enum);
99+ (Flags , gi_info_type_flags);
100+ (Object , gi_info_type_object);
101+ (Interface , gi_info_type_interface);
102+ (Constant , gi_info_type_constant);
103+ (Invalid_0 , gi_info_type_invalid_0);
104+ (Union , gi_info_type_union);
105+ (Value , gi_info_type_value);
106+ (Signal , gi_info_type_signal);
107+ (Vfunc , gi_info_type_vfunc);
108+ (Property , gi_info_type_property);
109+ (Field , gi_info_type_field);
110+ (Arg , gi_info_type_arg);
111+ (Type , gi_info_type_type);
112+ (Unresolved , gi_info_type_unresolved);
113+ ]
114+ ~unexpected: (Utils. unexpected_value_for " GIInfoType" )
115+ end
0 commit comments