Debian Codegraph @

thin/dbus_memory_h.ads

raw
1 pragma Ada_2012;
2 pragma Style_Checks (Off);
3
4 with stddef_h;
5 with System;
6
7 package dbus_memory_h is
8
9 -- arg-macro: function dbus_new (type, count)
10 -- return (type*)dbus_malloc (sizeof (type) * (count));
11 -- arg-macro: function dbus_new0 (type, count)
12 -- return (type*)dbus_malloc0 (sizeof (type) * (count));
13 function dbus_malloc (bytes : stddef_h.size_t) return System.Address -- /usr/include/dbus-1.0/dbus/dbus-memory.h:43
14 with Import => True,
15 Convention => C,
16 External_Name => "dbus_malloc";
17
18 function dbus_malloc0 (bytes : stddef_h.size_t) return System.Address -- /usr/include/dbus-1.0/dbus/dbus-memory.h:48
19 with Import => True,
20 Convention => C,
21 External_Name => "dbus_malloc0";
22
23 function dbus_realloc (memory : System.Address; bytes : stddef_h.size_t) return System.Address -- /usr/include/dbus-1.0/dbus/dbus-memory.h:52
24 with Import => True,
25 Convention => C,
26 External_Name => "dbus_realloc";
27
28 procedure dbus_free (memory : System.Address) -- /usr/include/dbus-1.0/dbus/dbus-memory.h:55
29 with Import => True,
30 Convention => C,
31 External_Name => "dbus_free";
32
33 procedure dbus_free_string_array (str_array : System.Address) -- /usr/include/dbus-1.0/dbus/dbus-memory.h:61
34 with Import => True,
35 Convention => C,
36 External_Name => "dbus_free_string_array";
37
38 type DBusFreeFunction is access procedure (arg1 : System.Address)
39 with Convention => C; -- /usr/include/dbus-1.0/dbus/dbus-memory.h:63
40
41 procedure dbus_shutdown -- /usr/include/dbus-1.0/dbus/dbus-memory.h:66
42 with Import => True,
43 Convention => C,
44 External_Name => "dbus_shutdown";
45
46 end dbus_memory_h;