| 1 |
pragma Ada_2012; |
| 2 |
pragma Style_Checks (Off); |
| 3 |
|
| 4 |
with Interfaces.C; use Interfaces.C; |
| 5 |
with System; |
| 6 |
with dbus_types_h; |
| 7 |
with Interfaces.C.Strings; |
| 8 |
limited with dbus_message_h; |
| 9 |
with dbus_shared_h; |
| 10 |
limited with dbus_errors_h; |
| 11 |
with dbus_arch_deps_h; |
| 12 |
with dbus_memory_h; |
| 13 |
|
| 14 |
package dbus_connection_h is |
| 15 |
|
| 16 |
type DBusWatch is null record; -- incomplete struct |
| 17 |
|
| 18 |
type DBusTimeout is null record; -- incomplete struct |
| 19 |
|
| 20 |
type DBusPreallocatedSend is null record; -- incomplete struct |
| 21 |
|
| 22 |
type DBusPendingCall is null record; -- incomplete struct |
| 23 |
|
| 24 |
type DBusConnection is null record; -- incomplete struct |
| 25 |
|
| 26 |
type DBusObjectPathVTable; |
| 27 |
subtype DBusWatchFlags is unsigned; |
| 28 |
DBUS_WATCH_READABLE : constant unsigned := 1; |
| 29 |
DBUS_WATCH_WRITABLE : constant unsigned := 2; |
| 30 |
DBUS_WATCH_ERROR : constant unsigned := 4; |
| 31 |
DBUS_WATCH_HANGUP : constant unsigned := 8; -- /usr/include/dbus-1.0/dbus/dbus-connection.h:74 |
| 32 |
|
| 33 |
type DBusDispatchStatus is |
| 34 |
(DBUS_DISPATCH_DATA_REMAINS, |
| 35 |
DBUS_DISPATCH_COMPLETE, |
| 36 |
DBUS_DISPATCH_NEED_MEMORY) |
| 37 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-connection.h:85 |
| 38 |
|
| 39 |
type DBusAddWatchFunction is access function (arg1 : access DBusWatch; arg2 : System.Address) return dbus_types_h.dbus_bool_t |
| 40 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-connection.h:92 |
| 41 |
|
| 42 |
type DBusWatchToggledFunction is access procedure (arg1 : access DBusWatch; arg2 : System.Address) |
| 43 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-connection.h:98 |
| 44 |
|
| 45 |
type DBusRemoveWatchFunction is access procedure (arg1 : access DBusWatch; arg2 : System.Address) |
| 46 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-connection.h:104 |
| 47 |
|
| 48 |
type DBusAddTimeoutFunction is access function (arg1 : access DBusTimeout; arg2 : System.Address) return dbus_types_h.dbus_bool_t |
| 49 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-connection.h:111 |
| 50 |
|
| 51 |
type DBusTimeoutToggledFunction is access procedure (arg1 : access DBusTimeout; arg2 : System.Address) |
| 52 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-connection.h:118 |
| 53 |
|
| 54 |
type DBusRemoveTimeoutFunction is access procedure (arg1 : access DBusTimeout; arg2 : System.Address) |
| 55 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-connection.h:124 |
| 56 |
|
| 57 |
type DBusDispatchStatusFunction is access procedure |
| 58 |
(arg1 : access DBusConnection; |
| 59 |
arg2 : DBusDispatchStatus; |
| 60 |
arg3 : System.Address) |
| 61 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-connection.h:129 |
| 62 |
|
| 63 |
type DBusWakeupMainFunction is access procedure (arg1 : System.Address) |
| 64 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-connection.h:136 |
| 65 |
|
| 66 |
type DBusAllowUnixUserFunction is access function |
| 67 |
(arg1 : access DBusConnection; |
| 68 |
arg2 : unsigned_long; |
| 69 |
arg3 : System.Address) return dbus_types_h.dbus_bool_t |
| 70 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-connection.h:144 |
| 71 |
|
| 72 |
type DBusAllowWindowsUserFunction is access function |
| 73 |
(arg1 : access DBusConnection; |
| 74 |
arg2 : Interfaces.C.Strings.chars_ptr; |
| 75 |
arg3 : System.Address) return dbus_types_h.dbus_bool_t |
| 76 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-connection.h:154 |
| 77 |
|
| 78 |
type DBusPendingCallNotifyFunction is access procedure (arg1 : access DBusPendingCall; arg2 : System.Address) |
| 79 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-connection.h:163 |
| 80 |
|
| 81 |
type DBusHandleMessageFunction is access function |
| 82 |
(arg1 : access DBusConnection; |
| 83 |
arg2 : access dbus_message_h.DBusMessage; |
| 84 |
arg3 : System.Address) return dbus_shared_h.DBusHandlerResult |
| 85 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-connection.h:170 |
| 86 |
|
| 87 |
function dbus_connection_open (address : Interfaces.C.Strings.chars_ptr; error : access dbus_errors_h.DBusError) return access DBusConnection -- /usr/include/dbus-1.0/dbus/dbus-connection.h:174 |
| 88 |
with Import => True, |
| 89 |
Convention => C, |
| 90 |
External_Name => "dbus_connection_open"; |
| 91 |
|
| 92 |
function dbus_connection_open_private (address : Interfaces.C.Strings.chars_ptr; error : access dbus_errors_h.DBusError) return access DBusConnection -- /usr/include/dbus-1.0/dbus/dbus-connection.h:177 |
| 93 |
with Import => True, |
| 94 |
Convention => C, |
| 95 |
External_Name => "dbus_connection_open_private"; |
| 96 |
|
| 97 |
function dbus_connection_ref (connection : access DBusConnection) return access DBusConnection -- /usr/include/dbus-1.0/dbus/dbus-connection.h:180 |
| 98 |
with Import => True, |
| 99 |
Convention => C, |
| 100 |
External_Name => "dbus_connection_ref"; |
| 101 |
|
| 102 |
procedure dbus_connection_unref (connection : access DBusConnection) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:182 |
| 103 |
with Import => True, |
| 104 |
Convention => C, |
| 105 |
External_Name => "dbus_connection_unref"; |
| 106 |
|
| 107 |
procedure dbus_connection_close (connection : access DBusConnection) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:184 |
| 108 |
with Import => True, |
| 109 |
Convention => C, |
| 110 |
External_Name => "dbus_connection_close"; |
| 111 |
|
| 112 |
function dbus_connection_get_is_connected (connection : access DBusConnection) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:186 |
| 113 |
with Import => True, |
| 114 |
Convention => C, |
| 115 |
External_Name => "dbus_connection_get_is_connected"; |
| 116 |
|
| 117 |
function dbus_connection_get_is_authenticated (connection : access DBusConnection) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:188 |
| 118 |
with Import => True, |
| 119 |
Convention => C, |
| 120 |
External_Name => "dbus_connection_get_is_authenticated"; |
| 121 |
|
| 122 |
function dbus_connection_get_is_anonymous (connection : access DBusConnection) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:190 |
| 123 |
with Import => True, |
| 124 |
Convention => C, |
| 125 |
External_Name => "dbus_connection_get_is_anonymous"; |
| 126 |
|
| 127 |
function dbus_connection_get_server_id (connection : access DBusConnection) return Interfaces.C.Strings.chars_ptr -- /usr/include/dbus-1.0/dbus/dbus-connection.h:192 |
| 128 |
with Import => True, |
| 129 |
Convention => C, |
| 130 |
External_Name => "dbus_connection_get_server_id"; |
| 131 |
|
| 132 |
function dbus_connection_can_send_type (connection : access DBusConnection; c_type : int) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:194 |
| 133 |
with Import => True, |
| 134 |
Convention => C, |
| 135 |
External_Name => "dbus_connection_can_send_type"; |
| 136 |
|
| 137 |
procedure dbus_connection_set_exit_on_disconnect (connection : access DBusConnection; exit_on_disconnect : dbus_types_h.dbus_bool_t) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:198 |
| 138 |
with Import => True, |
| 139 |
Convention => C, |
| 140 |
External_Name => "dbus_connection_set_exit_on_disconnect"; |
| 141 |
|
| 142 |
procedure dbus_connection_flush (connection : access DBusConnection) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:201 |
| 143 |
with Import => True, |
| 144 |
Convention => C, |
| 145 |
External_Name => "dbus_connection_flush"; |
| 146 |
|
| 147 |
function dbus_connection_read_write_dispatch (connection : access DBusConnection; timeout_milliseconds : int) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:203 |
| 148 |
with Import => True, |
| 149 |
Convention => C, |
| 150 |
External_Name => "dbus_connection_read_write_dispatch"; |
| 151 |
|
| 152 |
function dbus_connection_read_write (connection : access DBusConnection; timeout_milliseconds : int) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:206 |
| 153 |
with Import => True, |
| 154 |
Convention => C, |
| 155 |
External_Name => "dbus_connection_read_write"; |
| 156 |
|
| 157 |
function dbus_connection_borrow_message (connection : access DBusConnection) return access dbus_message_h.DBusMessage -- /usr/include/dbus-1.0/dbus/dbus-connection.h:209 |
| 158 |
with Import => True, |
| 159 |
Convention => C, |
| 160 |
External_Name => "dbus_connection_borrow_message"; |
| 161 |
|
| 162 |
procedure dbus_connection_return_message (connection : access DBusConnection; message : access dbus_message_h.DBusMessage) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:211 |
| 163 |
with Import => True, |
| 164 |
Convention => C, |
| 165 |
External_Name => "dbus_connection_return_message"; |
| 166 |
|
| 167 |
procedure dbus_connection_steal_borrowed_message (connection : access DBusConnection; message : access dbus_message_h.DBusMessage) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:214 |
| 168 |
with Import => True, |
| 169 |
Convention => C, |
| 170 |
External_Name => "dbus_connection_steal_borrowed_message"; |
| 171 |
|
| 172 |
function dbus_connection_pop_message (connection : access DBusConnection) return access dbus_message_h.DBusMessage -- /usr/include/dbus-1.0/dbus/dbus-connection.h:217 |
| 173 |
with Import => True, |
| 174 |
Convention => C, |
| 175 |
External_Name => "dbus_connection_pop_message"; |
| 176 |
|
| 177 |
function dbus_connection_get_dispatch_status (connection : access DBusConnection) return DBusDispatchStatus -- /usr/include/dbus-1.0/dbus/dbus-connection.h:219 |
| 178 |
with Import => True, |
| 179 |
Convention => C, |
| 180 |
External_Name => "dbus_connection_get_dispatch_status"; |
| 181 |
|
| 182 |
function dbus_connection_dispatch (connection : access DBusConnection) return DBusDispatchStatus -- /usr/include/dbus-1.0/dbus/dbus-connection.h:221 |
| 183 |
with Import => True, |
| 184 |
Convention => C, |
| 185 |
External_Name => "dbus_connection_dispatch"; |
| 186 |
|
| 187 |
function dbus_connection_has_messages_to_send (connection : access DBusConnection) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:223 |
| 188 |
with Import => True, |
| 189 |
Convention => C, |
| 190 |
External_Name => "dbus_connection_has_messages_to_send"; |
| 191 |
|
| 192 |
function dbus_connection_send |
| 193 |
(connection : access DBusConnection; |
| 194 |
message : access dbus_message_h.DBusMessage; |
| 195 |
client_serial : access dbus_arch_deps_h.dbus_uint32_t) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:225 |
| 196 |
with Import => True, |
| 197 |
Convention => C, |
| 198 |
External_Name => "dbus_connection_send"; |
| 199 |
|
| 200 |
function dbus_connection_send_with_reply |
| 201 |
(connection : access DBusConnection; |
| 202 |
message : access dbus_message_h.DBusMessage; |
| 203 |
pending_return : System.Address; |
| 204 |
timeout_milliseconds : int) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:229 |
| 205 |
with Import => True, |
| 206 |
Convention => C, |
| 207 |
External_Name => "dbus_connection_send_with_reply"; |
| 208 |
|
| 209 |
function dbus_connection_send_with_reply_and_block |
| 210 |
(connection : access DBusConnection; |
| 211 |
message : access dbus_message_h.DBusMessage; |
| 212 |
timeout_milliseconds : int; |
| 213 |
error : access dbus_errors_h.DBusError) return access dbus_message_h.DBusMessage -- /usr/include/dbus-1.0/dbus/dbus-connection.h:234 |
| 214 |
with Import => True, |
| 215 |
Convention => C, |
| 216 |
External_Name => "dbus_connection_send_with_reply_and_block"; |
| 217 |
|
| 218 |
function dbus_connection_set_watch_functions |
| 219 |
(connection : access DBusConnection; |
| 220 |
add_function : DBusAddWatchFunction; |
| 221 |
remove_function : DBusRemoveWatchFunction; |
| 222 |
toggled_function : DBusWatchToggledFunction; |
| 223 |
data : System.Address; |
| 224 |
free_data_function : dbus_memory_h.DBusFreeFunction) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:239 |
| 225 |
with Import => True, |
| 226 |
Convention => C, |
| 227 |
External_Name => "dbus_connection_set_watch_functions"; |
| 228 |
|
| 229 |
function dbus_connection_set_timeout_functions |
| 230 |
(connection : access DBusConnection; |
| 231 |
add_function : DBusAddTimeoutFunction; |
| 232 |
remove_function : DBusRemoveTimeoutFunction; |
| 233 |
toggled_function : DBusTimeoutToggledFunction; |
| 234 |
data : System.Address; |
| 235 |
free_data_function : dbus_memory_h.DBusFreeFunction) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:246 |
| 236 |
with Import => True, |
| 237 |
Convention => C, |
| 238 |
External_Name => "dbus_connection_set_timeout_functions"; |
| 239 |
|
| 240 |
procedure dbus_connection_set_wakeup_main_function |
| 241 |
(connection : access DBusConnection; |
| 242 |
wakeup_main_function : DBusWakeupMainFunction; |
| 243 |
data : System.Address; |
| 244 |
free_data_function : dbus_memory_h.DBusFreeFunction) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:253 |
| 245 |
with Import => True, |
| 246 |
Convention => C, |
| 247 |
External_Name => "dbus_connection_set_wakeup_main_function"; |
| 248 |
|
| 249 |
procedure dbus_connection_set_dispatch_status_function |
| 250 |
(connection : access DBusConnection; |
| 251 |
c_function : DBusDispatchStatusFunction; |
| 252 |
data : System.Address; |
| 253 |
free_data_function : dbus_memory_h.DBusFreeFunction) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:258 |
| 254 |
with Import => True, |
| 255 |
Convention => C, |
| 256 |
External_Name => "dbus_connection_set_dispatch_status_function"; |
| 257 |
|
| 258 |
function dbus_connection_get_unix_user (connection : access DBusConnection; uid : access unsigned_long) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:263 |
| 259 |
with Import => True, |
| 260 |
Convention => C, |
| 261 |
External_Name => "dbus_connection_get_unix_user"; |
| 262 |
|
| 263 |
function dbus_connection_get_unix_process_id (connection : access DBusConnection; pid : access unsigned_long) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:266 |
| 264 |
with Import => True, |
| 265 |
Convention => C, |
| 266 |
External_Name => "dbus_connection_get_unix_process_id"; |
| 267 |
|
| 268 |
function dbus_connection_get_adt_audit_session_data |
| 269 |
(connection : access DBusConnection; |
| 270 |
data : System.Address; |
| 271 |
data_size : access dbus_arch_deps_h.dbus_int32_t) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:269 |
| 272 |
with Import => True, |
| 273 |
Convention => C, |
| 274 |
External_Name => "dbus_connection_get_adt_audit_session_data"; |
| 275 |
|
| 276 |
procedure dbus_connection_set_unix_user_function |
| 277 |
(connection : access DBusConnection; |
| 278 |
c_function : DBusAllowUnixUserFunction; |
| 279 |
data : System.Address; |
| 280 |
free_data_function : dbus_memory_h.DBusFreeFunction) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:273 |
| 281 |
with Import => True, |
| 282 |
Convention => C, |
| 283 |
External_Name => "dbus_connection_set_unix_user_function"; |
| 284 |
|
| 285 |
function dbus_connection_get_windows_user (connection : access DBusConnection; windows_sid_p : System.Address) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:278 |
| 286 |
with Import => True, |
| 287 |
Convention => C, |
| 288 |
External_Name => "dbus_connection_get_windows_user"; |
| 289 |
|
| 290 |
procedure dbus_connection_set_windows_user_function |
| 291 |
(connection : access DBusConnection; |
| 292 |
c_function : DBusAllowWindowsUserFunction; |
| 293 |
data : System.Address; |
| 294 |
free_data_function : dbus_memory_h.DBusFreeFunction) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:281 |
| 295 |
with Import => True, |
| 296 |
Convention => C, |
| 297 |
External_Name => "dbus_connection_set_windows_user_function"; |
| 298 |
|
| 299 |
procedure dbus_connection_set_allow_anonymous (connection : access DBusConnection; value : dbus_types_h.dbus_bool_t) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:286 |
| 300 |
with Import => True, |
| 301 |
Convention => C, |
| 302 |
External_Name => "dbus_connection_set_allow_anonymous"; |
| 303 |
|
| 304 |
procedure dbus_connection_set_route_peer_messages (connection : access DBusConnection; value : dbus_types_h.dbus_bool_t) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:289 |
| 305 |
with Import => True, |
| 306 |
Convention => C, |
| 307 |
External_Name => "dbus_connection_set_route_peer_messages"; |
| 308 |
|
| 309 |
function dbus_connection_add_filter |
| 310 |
(connection : access DBusConnection; |
| 311 |
c_function : DBusHandleMessageFunction; |
| 312 |
user_data : System.Address; |
| 313 |
free_data_function : dbus_memory_h.DBusFreeFunction) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:296 |
| 314 |
with Import => True, |
| 315 |
Convention => C, |
| 316 |
External_Name => "dbus_connection_add_filter"; |
| 317 |
|
| 318 |
procedure dbus_connection_remove_filter |
| 319 |
(connection : access DBusConnection; |
| 320 |
c_function : DBusHandleMessageFunction; |
| 321 |
user_data : System.Address) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:301 |
| 322 |
with Import => True, |
| 323 |
Convention => C, |
| 324 |
External_Name => "dbus_connection_remove_filter"; |
| 325 |
|
| 326 |
function dbus_connection_allocate_data_slot (slot_p : access dbus_arch_deps_h.dbus_int32_t) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:308 |
| 327 |
with Import => True, |
| 328 |
Convention => C, |
| 329 |
External_Name => "dbus_connection_allocate_data_slot"; |
| 330 |
|
| 331 |
procedure dbus_connection_free_data_slot (slot_p : access dbus_arch_deps_h.dbus_int32_t) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:310 |
| 332 |
with Import => True, |
| 333 |
Convention => C, |
| 334 |
External_Name => "dbus_connection_free_data_slot"; |
| 335 |
|
| 336 |
function dbus_connection_set_data |
| 337 |
(connection : access DBusConnection; |
| 338 |
slot : dbus_arch_deps_h.dbus_int32_t; |
| 339 |
data : System.Address; |
| 340 |
free_data_func : dbus_memory_h.DBusFreeFunction) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:312 |
| 341 |
with Import => True, |
| 342 |
Convention => C, |
| 343 |
External_Name => "dbus_connection_set_data"; |
| 344 |
|
| 345 |
function dbus_connection_get_data (connection : access DBusConnection; slot : dbus_arch_deps_h.dbus_int32_t) return System.Address -- /usr/include/dbus-1.0/dbus/dbus-connection.h:317 |
| 346 |
with Import => True, |
| 347 |
Convention => C, |
| 348 |
External_Name => "dbus_connection_get_data"; |
| 349 |
|
| 350 |
procedure dbus_connection_set_change_sigpipe (will_modify_sigpipe : dbus_types_h.dbus_bool_t) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:321 |
| 351 |
with Import => True, |
| 352 |
Convention => C, |
| 353 |
External_Name => "dbus_connection_set_change_sigpipe"; |
| 354 |
|
| 355 |
procedure dbus_connection_set_max_message_size (connection : access DBusConnection; size : long) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:324 |
| 356 |
with Import => True, |
| 357 |
Convention => C, |
| 358 |
External_Name => "dbus_connection_set_max_message_size"; |
| 359 |
|
| 360 |
function dbus_connection_get_max_message_size (connection : access DBusConnection) return long -- /usr/include/dbus-1.0/dbus/dbus-connection.h:327 |
| 361 |
with Import => True, |
| 362 |
Convention => C, |
| 363 |
External_Name => "dbus_connection_get_max_message_size"; |
| 364 |
|
| 365 |
procedure dbus_connection_set_max_received_size (connection : access DBusConnection; size : long) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:329 |
| 366 |
with Import => True, |
| 367 |
Convention => C, |
| 368 |
External_Name => "dbus_connection_set_max_received_size"; |
| 369 |
|
| 370 |
function dbus_connection_get_max_received_size (connection : access DBusConnection) return long -- /usr/include/dbus-1.0/dbus/dbus-connection.h:332 |
| 371 |
with Import => True, |
| 372 |
Convention => C, |
| 373 |
External_Name => "dbus_connection_get_max_received_size"; |
| 374 |
|
| 375 |
procedure dbus_connection_set_max_message_unix_fds (connection : access DBusConnection; n : long) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:335 |
| 376 |
with Import => True, |
| 377 |
Convention => C, |
| 378 |
External_Name => "dbus_connection_set_max_message_unix_fds"; |
| 379 |
|
| 380 |
function dbus_connection_get_max_message_unix_fds (connection : access DBusConnection) return long -- /usr/include/dbus-1.0/dbus/dbus-connection.h:338 |
| 381 |
with Import => True, |
| 382 |
Convention => C, |
| 383 |
External_Name => "dbus_connection_get_max_message_unix_fds"; |
| 384 |
|
| 385 |
procedure dbus_connection_set_max_received_unix_fds (connection : access DBusConnection; n : long) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:340 |
| 386 |
with Import => True, |
| 387 |
Convention => C, |
| 388 |
External_Name => "dbus_connection_set_max_received_unix_fds"; |
| 389 |
|
| 390 |
function dbus_connection_get_max_received_unix_fds (connection : access DBusConnection) return long -- /usr/include/dbus-1.0/dbus/dbus-connection.h:343 |
| 391 |
with Import => True, |
| 392 |
Convention => C, |
| 393 |
External_Name => "dbus_connection_get_max_received_unix_fds"; |
| 394 |
|
| 395 |
function dbus_connection_get_outgoing_size (connection : access DBusConnection) return long -- /usr/include/dbus-1.0/dbus/dbus-connection.h:346 |
| 396 |
with Import => True, |
| 397 |
Convention => C, |
| 398 |
External_Name => "dbus_connection_get_outgoing_size"; |
| 399 |
|
| 400 |
function dbus_connection_get_outgoing_unix_fds (connection : access DBusConnection) return long -- /usr/include/dbus-1.0/dbus/dbus-connection.h:348 |
| 401 |
with Import => True, |
| 402 |
Convention => C, |
| 403 |
External_Name => "dbus_connection_get_outgoing_unix_fds"; |
| 404 |
|
| 405 |
function dbus_connection_preallocate_send (connection : access DBusConnection) return access DBusPreallocatedSend -- /usr/include/dbus-1.0/dbus/dbus-connection.h:351 |
| 406 |
with Import => True, |
| 407 |
Convention => C, |
| 408 |
External_Name => "dbus_connection_preallocate_send"; |
| 409 |
|
| 410 |
procedure dbus_connection_free_preallocated_send (connection : access DBusConnection; preallocated : access DBusPreallocatedSend) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:353 |
| 411 |
with Import => True, |
| 412 |
Convention => C, |
| 413 |
External_Name => "dbus_connection_free_preallocated_send"; |
| 414 |
|
| 415 |
procedure dbus_connection_send_preallocated |
| 416 |
(connection : access DBusConnection; |
| 417 |
preallocated : access DBusPreallocatedSend; |
| 418 |
message : access dbus_message_h.DBusMessage; |
| 419 |
client_serial : access dbus_arch_deps_h.dbus_uint32_t) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:356 |
| 420 |
with Import => True, |
| 421 |
Convention => C, |
| 422 |
External_Name => "dbus_connection_send_preallocated"; |
| 423 |
|
| 424 |
type DBusObjectPathUnregisterFunction is access procedure (arg1 : access DBusConnection; arg2 : System.Address) |
| 425 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-connection.h:368 |
| 426 |
|
| 427 |
type DBusObjectPathMessageFunction is access function |
| 428 |
(arg1 : access DBusConnection; |
| 429 |
arg2 : access dbus_message_h.DBusMessage; |
| 430 |
arg3 : System.Address) return dbus_shared_h.DBusHandlerResult |
| 431 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-connection.h:375 |
| 432 |
|
| 433 |
type DBusObjectPathVTable is record |
| 434 |
unregister_function : DBusObjectPathUnregisterFunction; -- /usr/include/dbus-1.0/dbus/dbus-connection.h:387 |
| 435 |
message_function : DBusObjectPathMessageFunction; -- /usr/include/dbus-1.0/dbus/dbus-connection.h:388 |
| 436 |
dbus_internal_pad1 : access procedure (arg1 : System.Address); -- /usr/include/dbus-1.0/dbus/dbus-connection.h:390 |
| 437 |
dbus_internal_pad2 : access procedure (arg1 : System.Address); -- /usr/include/dbus-1.0/dbus/dbus-connection.h:391 |
| 438 |
dbus_internal_pad3 : access procedure (arg1 : System.Address); -- /usr/include/dbus-1.0/dbus/dbus-connection.h:392 |
| 439 |
dbus_internal_pad4 : access procedure (arg1 : System.Address); -- /usr/include/dbus-1.0/dbus/dbus-connection.h:393 |
| 440 |
end record |
| 441 |
with Convention => C_Pass_By_Copy; -- /usr/include/dbus-1.0/dbus/dbus-connection.h:385 |
| 442 |
|
| 443 |
function dbus_connection_try_register_object_path |
| 444 |
(connection : access DBusConnection; |
| 445 |
path : Interfaces.C.Strings.chars_ptr; |
| 446 |
vtable : access constant DBusObjectPathVTable; |
| 447 |
user_data : System.Address; |
| 448 |
error : access dbus_errors_h.DBusError) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:397 |
| 449 |
with Import => True, |
| 450 |
Convention => C, |
| 451 |
External_Name => "dbus_connection_try_register_object_path"; |
| 452 |
|
| 453 |
function dbus_connection_register_object_path |
| 454 |
(connection : access DBusConnection; |
| 455 |
path : Interfaces.C.Strings.chars_ptr; |
| 456 |
vtable : access constant DBusObjectPathVTable; |
| 457 |
user_data : System.Address) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:404 |
| 458 |
with Import => True, |
| 459 |
Convention => C, |
| 460 |
External_Name => "dbus_connection_register_object_path"; |
| 461 |
|
| 462 |
function dbus_connection_try_register_fallback |
| 463 |
(connection : access DBusConnection; |
| 464 |
path : Interfaces.C.Strings.chars_ptr; |
| 465 |
vtable : access constant DBusObjectPathVTable; |
| 466 |
user_data : System.Address; |
| 467 |
error : access dbus_errors_h.DBusError) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:410 |
| 468 |
with Import => True, |
| 469 |
Convention => C, |
| 470 |
External_Name => "dbus_connection_try_register_fallback"; |
| 471 |
|
| 472 |
function dbus_connection_register_fallback |
| 473 |
(connection : access DBusConnection; |
| 474 |
path : Interfaces.C.Strings.chars_ptr; |
| 475 |
vtable : access constant DBusObjectPathVTable; |
| 476 |
user_data : System.Address) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:417 |
| 477 |
with Import => True, |
| 478 |
Convention => C, |
| 479 |
External_Name => "dbus_connection_register_fallback"; |
| 480 |
|
| 481 |
function dbus_connection_unregister_object_path (connection : access DBusConnection; path : Interfaces.C.Strings.chars_ptr) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:422 |
| 482 |
with Import => True, |
| 483 |
Convention => C, |
| 484 |
External_Name => "dbus_connection_unregister_object_path"; |
| 485 |
|
| 486 |
function dbus_connection_get_object_path_data |
| 487 |
(connection : access DBusConnection; |
| 488 |
path : Interfaces.C.Strings.chars_ptr; |
| 489 |
data_p : System.Address) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:426 |
| 490 |
with Import => True, |
| 491 |
Convention => C, |
| 492 |
External_Name => "dbus_connection_get_object_path_data"; |
| 493 |
|
| 494 |
function dbus_connection_list_registered |
| 495 |
(connection : access DBusConnection; |
| 496 |
parent_path : Interfaces.C.Strings.chars_ptr; |
| 497 |
child_entries : System.Address) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:431 |
| 498 |
with Import => True, |
| 499 |
Convention => C, |
| 500 |
External_Name => "dbus_connection_list_registered"; |
| 501 |
|
| 502 |
function dbus_connection_get_unix_fd (connection : access DBusConnection; fd : access int) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:436 |
| 503 |
with Import => True, |
| 504 |
Convention => C, |
| 505 |
External_Name => "dbus_connection_get_unix_fd"; |
| 506 |
|
| 507 |
function dbus_connection_get_socket (connection : access DBusConnection; fd : access int) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:439 |
| 508 |
with Import => True, |
| 509 |
Convention => C, |
| 510 |
External_Name => "dbus_connection_get_socket"; |
| 511 |
|
| 512 |
procedure dbus_clear_connection (pointer_to_connection : System.Address) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:465 |
| 513 |
with Import => True, |
| 514 |
Convention => C, |
| 515 |
External_Name => "dbus_clear_connection"; |
| 516 |
|
| 517 |
function dbus_watch_get_fd (watch : access DBusWatch) return int -- /usr/include/dbus-1.0/dbus/dbus-connection.h:481 |
| 518 |
with Import => True, |
| 519 |
Convention => C, |
| 520 |
External_Name => "dbus_watch_get_fd"; |
| 521 |
|
| 522 |
function dbus_watch_get_unix_fd (watch : access DBusWatch) return int -- /usr/include/dbus-1.0/dbus/dbus-connection.h:485 |
| 523 |
with Import => True, |
| 524 |
Convention => C, |
| 525 |
External_Name => "dbus_watch_get_unix_fd"; |
| 526 |
|
| 527 |
function dbus_watch_get_socket (watch : access DBusWatch) return int -- /usr/include/dbus-1.0/dbus/dbus-connection.h:487 |
| 528 |
with Import => True, |
| 529 |
Convention => C, |
| 530 |
External_Name => "dbus_watch_get_socket"; |
| 531 |
|
| 532 |
function dbus_watch_get_flags (watch : access DBusWatch) return unsigned -- /usr/include/dbus-1.0/dbus/dbus-connection.h:489 |
| 533 |
with Import => True, |
| 534 |
Convention => C, |
| 535 |
External_Name => "dbus_watch_get_flags"; |
| 536 |
|
| 537 |
function dbus_watch_get_data (watch : access DBusWatch) return System.Address -- /usr/include/dbus-1.0/dbus/dbus-connection.h:491 |
| 538 |
with Import => True, |
| 539 |
Convention => C, |
| 540 |
External_Name => "dbus_watch_get_data"; |
| 541 |
|
| 542 |
procedure dbus_watch_set_data |
| 543 |
(watch : access DBusWatch; |
| 544 |
data : System.Address; |
| 545 |
free_data_function : dbus_memory_h.DBusFreeFunction) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:493 |
| 546 |
with Import => True, |
| 547 |
Convention => C, |
| 548 |
External_Name => "dbus_watch_set_data"; |
| 549 |
|
| 550 |
function dbus_watch_handle (watch : access DBusWatch; flags : unsigned) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:497 |
| 551 |
with Import => True, |
| 552 |
Convention => C, |
| 553 |
External_Name => "dbus_watch_handle"; |
| 554 |
|
| 555 |
function dbus_watch_get_enabled (watch : access DBusWatch) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:500 |
| 556 |
with Import => True, |
| 557 |
Convention => C, |
| 558 |
External_Name => "dbus_watch_get_enabled"; |
| 559 |
|
| 560 |
function dbus_timeout_get_interval (timeout : access DBusTimeout) return int -- /usr/include/dbus-1.0/dbus/dbus-connection.h:510 |
| 561 |
with Import => True, |
| 562 |
Convention => C, |
| 563 |
External_Name => "dbus_timeout_get_interval"; |
| 564 |
|
| 565 |
function dbus_timeout_get_data (timeout : access DBusTimeout) return System.Address -- /usr/include/dbus-1.0/dbus/dbus-connection.h:512 |
| 566 |
with Import => True, |
| 567 |
Convention => C, |
| 568 |
External_Name => "dbus_timeout_get_data"; |
| 569 |
|
| 570 |
procedure dbus_timeout_set_data |
| 571 |
(timeout : access DBusTimeout; |
| 572 |
data : System.Address; |
| 573 |
free_data_function : dbus_memory_h.DBusFreeFunction) -- /usr/include/dbus-1.0/dbus/dbus-connection.h:514 |
| 574 |
with Import => True, |
| 575 |
Convention => C, |
| 576 |
External_Name => "dbus_timeout_set_data"; |
| 577 |
|
| 578 |
function dbus_timeout_handle (timeout : access DBusTimeout) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:518 |
| 579 |
with Import => True, |
| 580 |
Convention => C, |
| 581 |
External_Name => "dbus_timeout_handle"; |
| 582 |
|
| 583 |
function dbus_timeout_get_enabled (timeout : access DBusTimeout) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-connection.h:520 |
| 584 |
with Import => True, |
| 585 |
Convention => C, |
| 586 |
External_Name => "dbus_timeout_get_enabled"; |
| 587 |
|
| 588 |
end dbus_connection_h; |