| 1 |
pragma Ada_2012; |
| 2 |
pragma Style_Checks (Off); |
| 3 |
|
| 4 |
with Interfaces.C; use Interfaces.C; |
| 5 |
with dbus_types_h; |
| 6 |
|
| 7 |
package dbus_threads_h is |
| 8 |
|
| 9 |
type DBusMutex is null record; -- incomplete struct |
| 10 |
|
| 11 |
type DBusCondVar is null record; -- incomplete struct |
| 12 |
|
| 13 |
type DBusMutexNewFunction is access function return access DBusMutex |
| 14 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:46 |
| 15 |
|
| 16 |
type DBusMutexFreeFunction is access procedure (arg1 : access DBusMutex) |
| 17 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:48 |
| 18 |
|
| 19 |
type DBusMutexLockFunction is access function (arg1 : access DBusMutex) return dbus_types_h.dbus_bool_t |
| 20 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:50 |
| 21 |
|
| 22 |
type DBusMutexUnlockFunction is access function (arg1 : access DBusMutex) return dbus_types_h.dbus_bool_t |
| 23 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:52 |
| 24 |
|
| 25 |
type DBusRecursiveMutexNewFunction is access function return access DBusMutex |
| 26 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:61 |
| 27 |
|
| 28 |
type DBusRecursiveMutexFreeFunction is access procedure (arg1 : access DBusMutex) |
| 29 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:64 |
| 30 |
|
| 31 |
type DBusRecursiveMutexLockFunction is access procedure (arg1 : access DBusMutex) |
| 32 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:68 |
| 33 |
|
| 34 |
type DBusRecursiveMutexUnlockFunction is access procedure (arg1 : access DBusMutex) |
| 35 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:72 |
| 36 |
|
| 37 |
type DBusCondVarNewFunction is access function return access DBusCondVar |
| 38 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:77 |
| 39 |
|
| 40 |
type DBusCondVarFreeFunction is access procedure (arg1 : access DBusCondVar) |
| 41 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:80 |
| 42 |
|
| 43 |
type DBusCondVarWaitFunction is access procedure (arg1 : access DBusCondVar; arg2 : access DBusMutex) |
| 44 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:92 |
| 45 |
|
| 46 |
type DBusCondVarWaitTimeoutFunction is access function |
| 47 |
(arg1 : access DBusCondVar; |
| 48 |
arg2 : access DBusMutex; |
| 49 |
arg3 : int) return dbus_types_h.dbus_bool_t |
| 50 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:101 |
| 51 |
|
| 52 |
type DBusCondVarWakeOneFunction is access procedure (arg1 : access DBusCondVar) |
| 53 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:108 |
| 54 |
|
| 55 |
type DBusCondVarWakeAllFunction is access procedure (arg1 : access DBusCondVar) |
| 56 |
with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:114 |
| 57 |
|
| 58 |
subtype DBusThreadFunctionsMask is unsigned; |
| 59 |
DBUS_THREAD_FUNCTIONS_MUTEX_NEW_MASK : constant unsigned := 1; |
| 60 |
DBUS_THREAD_FUNCTIONS_MUTEX_FREE_MASK : constant unsigned := 2; |
| 61 |
DBUS_THREAD_FUNCTIONS_MUTEX_LOCK_MASK : constant unsigned := 4; |
| 62 |
DBUS_THREAD_FUNCTIONS_MUTEX_UNLOCK_MASK : constant unsigned := 8; |
| 63 |
DBUS_THREAD_FUNCTIONS_CONDVAR_NEW_MASK : constant unsigned := 16; |
| 64 |
DBUS_THREAD_FUNCTIONS_CONDVAR_FREE_MASK : constant unsigned := 32; |
| 65 |
DBUS_THREAD_FUNCTIONS_CONDVAR_WAIT_MASK : constant unsigned := 64; |
| 66 |
DBUS_THREAD_FUNCTIONS_CONDVAR_WAIT_TIMEOUT_MASK : constant unsigned := 128; |
| 67 |
DBUS_THREAD_FUNCTIONS_CONDVAR_WAKE_ONE_MASK : constant unsigned := 256; |
| 68 |
DBUS_THREAD_FUNCTIONS_CONDVAR_WAKE_ALL_MASK : constant unsigned := 512; |
| 69 |
DBUS_THREAD_FUNCTIONS_RECURSIVE_MUTEX_NEW_MASK : constant unsigned := 1024; |
| 70 |
DBUS_THREAD_FUNCTIONS_RECURSIVE_MUTEX_FREE_MASK : constant unsigned := 2048; |
| 71 |
DBUS_THREAD_FUNCTIONS_RECURSIVE_MUTEX_LOCK_MASK : constant unsigned := 4096; |
| 72 |
DBUS_THREAD_FUNCTIONS_RECURSIVE_MUTEX_UNLOCK_MASK : constant unsigned := 8192; |
| 73 |
DBUS_THREAD_FUNCTIONS_ALL_MASK : constant unsigned := 16383; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:138 |
| 74 |
|
| 75 |
-- skipped anonymous struct anon_anon_9 |
| 76 |
|
| 77 |
type DBusThreadFunctions is record |
| 78 |
mask : aliased unsigned; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:154 |
| 79 |
mutex_new : DBusMutexNewFunction; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:156 |
| 80 |
mutex_free : DBusMutexFreeFunction; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:157 |
| 81 |
mutex_lock : DBusMutexLockFunction; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:158 |
| 82 |
mutex_unlock : DBusMutexUnlockFunction; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:159 |
| 83 |
condvar_new : DBusCondVarNewFunction; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:161 |
| 84 |
condvar_free : DBusCondVarFreeFunction; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:162 |
| 85 |
condvar_wait : DBusCondVarWaitFunction; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:163 |
| 86 |
condvar_wait_timeout : DBusCondVarWaitTimeoutFunction; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:164 |
| 87 |
condvar_wake_one : DBusCondVarWakeOneFunction; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:165 |
| 88 |
condvar_wake_all : DBusCondVarWakeAllFunction; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:166 |
| 89 |
recursive_mutex_new : DBusRecursiveMutexNewFunction; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:168 |
| 90 |
recursive_mutex_free : DBusRecursiveMutexFreeFunction; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:169 |
| 91 |
recursive_mutex_lock : DBusRecursiveMutexLockFunction; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:170 |
| 92 |
recursive_mutex_unlock : DBusRecursiveMutexUnlockFunction; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:171 |
| 93 |
padding1 : access procedure; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:173 |
| 94 |
padding2 : access procedure; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:174 |
| 95 |
padding3 : access procedure; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:175 |
| 96 |
padding4 : access procedure; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:176 |
| 97 |
end record |
| 98 |
with Convention => C_Pass_By_Copy; -- /usr/include/dbus-1.0/dbus/dbus-threads.h:178 |
| 99 |
|
| 100 |
function dbus_threads_init (functions : access constant DBusThreadFunctions) return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-threads.h:181 |
| 101 |
with Import => True, |
| 102 |
Convention => C, |
| 103 |
External_Name => "dbus_threads_init"; |
| 104 |
|
| 105 |
function dbus_threads_init_default return dbus_types_h.dbus_bool_t -- /usr/include/dbus-1.0/dbus/dbus-threads.h:183 |
| 106 |
with Import => True, |
| 107 |
Convention => C, |
| 108 |
External_Name => "dbus_threads_init_default"; |
| 109 |
|
| 110 |
end dbus_threads_h; |