| 1 |
pragma Ada_2012; |
| 2 |
pragma Style_Checks (Off); |
| 3 |
|
| 4 |
with Interfaces.C; use Interfaces.C; |
| 5 |
with Interfaces.C.Strings; |
| 6 |
with Interfaces.C.Extensions; |
| 7 |
with System; |
| 8 |
with dbus_types_h; |
| 9 |
|
| 10 |
package dbus_errors_h is |
| 11 |
|
| 12 |
-- unsupported macro: DBUS_ERROR_INIT { NULL, NULL, TRUE, 0, 0, 0, 0, NULL } |
| 13 |
type DBusError; |
| 14 |
type DBusError is record |
| 15 |
name : Interfaces.C.Strings.chars_ptr; -- /usr/include/dbus-1.0/dbus/dbus-errors.h:50 |
| 16 |
message : Interfaces.C.Strings.chars_ptr; -- /usr/include/dbus-1.0/dbus/dbus-errors.h:51 |
| 17 |
dummy1 : Extensions.Unsigned_1; -- /usr/include/dbus-1.0/dbus/dbus-errors.h:53 |
| 18 |
dummy2 : Extensions.Unsigned_1; -- /usr/include/dbus-1.0/dbus/dbus-errors.h:54 |
| 19 |
dummy3 : Extensions.Unsigned_1; -- /usr/include/dbus-1.0/dbus/dbus-errors.h:55 |
| 20 |
dummy4 : Extensions.Unsigned_1; -- /usr/include/dbus-1.0/dbus/dbus-errors.h:56 |
| 21 |
dummy5 : Extensions.Unsigned_1; -- /usr/include/dbus-1.0/dbus/dbus-errors.h:57 |
| 22 |
padding1 : System.Address; -- /usr/include/dbus-1.0/dbus/dbus-errors.h:59 |
| 23 |
end record |
| 24 |
with Convention => C_Pass_By_Copy, |
| 25 |
Pack => True; -- /usr/include/dbus-1.0/dbus/dbus-errors.h:48 |
| 26 |
|
| 27 |
procedure dbus_error_init (error : access DBusError) -- /usr/include/dbus-1.0/dbus/dbus-errors.h:65 |
| 28 |
with Import => True, |
| 29 |
Convention => C, |
| 30 |
External_Name => "dbus_error_init"; |
| 31 |
|
| 32 |
procedure dbus_error_free (error : access DBusError) -- /usr/include/dbus-1.0/dbus/dbus-errors.h:67 |
| 33 |
with Import => True, |
| 34 |
Convention => C, |
| 35 |
External_Name => "dbus_error_free"; |
| 36 |
|
| 37 |
procedure dbus_set_error |
| 38 |
(error : access DBusError; |
| 39 |
name : Interfaces.C.Strings.chars_ptr; |
| 40 |
message : Interfaces.C.Strings.chars_ptr -- , ... |
| 41 |
) -- /usr/include/dbus-1.0/dbus/dbus-errors.h:69 |
| 42 |
with Import => True, |
| 43 |
Convention => C, |
| 44 |
External_Name => "dbus_set_error"; |
| 45 |
|
| 46 |
procedure dbus_set_error_const |
| 47 |
(error : access DBusError; |
| 48 |
name : Interfaces.C.Strings.chars_ptr; |
| 49 |
message : Interfaces.C.Strings.chars_ptr) -- /usr/include/dbus-1.0/dbus/dbus-errors.h:74 |
| 50 |
with Import => True, |
| 51 |
Convention => C, |
| 52 |
External_Name => "dbus_set_error_const"; |
| 53 |
|
| 54 |
procedure dbus_move_error (src : access DBusError; dest : access DBusError) -- /usr/include/dbus-1.0/dbus/dbus-errors.h:78 |
| 55 |
with Import => True, |
| 56 |
Convention => C, |
| 57 |
External_Name => "dbus_move_error"; |
| 58 |
|
| 59 |
function dbus_error_has_name (error : access constant DBusError; name : Interfaces.C.Strings.chars_ptr) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-errors.h:81 |
| 60 |
with Import => True, |
| 61 |
Convention => C, |
| 62 |
External_Name => "dbus_error_has_name"; |
| 63 |
|
| 64 |
function dbus_error_is_set (error : access constant DBusError) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-errors.h:84 |
| 65 |
with Import => True, |
| 66 |
Convention => C, |
| 67 |
External_Name => "dbus_error_is_set"; |
| 68 |
|
| 69 |
end dbus_errors_h; |