| 1 | /* |
| 2 | * Copyright 2023 Red Hat Inc., Durham, North Carolina. |
| 3 | * All Rights Reserved. |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Lesser General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2.1 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Lesser General Public |
| 16 | * License along with this library; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | * |
| 19 | * Authors: |
| 20 | * Evgenii Kolesnikov <[email protected]> |
| 21 | */ |
| 22 | |
| 23 | #ifndef OPENSCAP_OVAL_DBUS_H_ |
| 24 | #define OPENSCAP_OVAL_DBUS_H_cxx . . $ `src/OVAL/probes/unix/linux/oval_dbus.h:24:9`! |
| 25 | |
| 26 | #include <dbus/dbus.h> |
| 27 | |
| 28 | |
| 29 | // Old versions of libdbus API don't have DBusBasicValue and DBus8ByteStruct |
| 30 | // as a public typedefs. |
| 31 | // These two typedefs were copied from libdbus 1.8 branch, see |
| 32 | // http://cgit.freedesktop.org/dbus/dbus/tree/dbus/dbus-types.h?h=dbus-1.8#n137 |
| 33 | typedef structcxx . . $ $anonymous_type_4cbcdbc067a1c97e_0# |
| 34 | { |
| 35 | dbus_uint32_tcxx . . $ dbus_uint32_t# first32cxx . . $ $anonymous_type_4cbcdbc067a1c97e_0#first32.; |
| 36 | dbus_uint32_tcxx . . $ dbus_uint32_t# second32cxx . . $ $anonymous_type_4cbcdbc067a1c97e_0#second32.; |
| 37 | } _DBus8ByteStructcxx . . $ _DBus8ByteStruct#; |
| 38 | |
| 39 | typedef unioncxx . . $ $anonymous_type_4cbcdbc067a1c97e_1# |
| 40 | { |
| 41 | unsigned char bytescxx . . $ $anonymous_type_4cbcdbc067a1c97e_1#bytes.[8]; /**< as 8 individual bytes */ |
| 42 | dbus_int16_tcxx . . $ dbus_int16_t# i16cxx . . $ $anonymous_type_4cbcdbc067a1c97e_1#i16.; /**< as int16 */ |
| 43 | dbus_uint16_tcxx . . $ dbus_uint16_t# u16cxx . . $ $anonymous_type_4cbcdbc067a1c97e_1#u16.; /**< as int16 */ |
| 44 | dbus_int32_tcxx . . $ dbus_int32_t# i32cxx . . $ $anonymous_type_4cbcdbc067a1c97e_1#i32.; /**< as int32 */ |
| 45 | dbus_uint32_tcxx . . $ dbus_uint32_t# u32cxx . . $ $anonymous_type_4cbcdbc067a1c97e_1#u32.; /**< as int32 */ |
| 46 | dbus_bool_tcxx . . $ dbus_bool_t# bool_valcxx . . $ $anonymous_type_4cbcdbc067a1c97e_1#bool_val.; /**< as boolean */ |
| 47 | #ifdef DBUS_HAVE_INT64cxx . . $ `<external>/14376914409977772024/dbus-arch-deps.h:36:9`! |
| 48 | dbus_int64_tcxx . . $ dbus_int64_t# i64cxx . . $ $anonymous_type_4cbcdbc067a1c97e_1#i64.; /**< as int64 */ |
| 49 | dbus_uint64_tcxx . . $ dbus_uint64_t# u64cxx . . $ $anonymous_type_4cbcdbc067a1c97e_1#u64.; /**< as int64 */ |
| 50 | #endif |
| 51 | _DBus8ByteStructcxx . . $ _DBus8ByteStruct# eightcxx . . $ $anonymous_type_4cbcdbc067a1c97e_1#eight.; /**< as 8-byte struct */ |
| 52 | double dblcxx . . $ $anonymous_type_4cbcdbc067a1c97e_1#dbl.; /**< as double */ |
| 53 | unsigned char bytcxx . . $ $anonymous_type_4cbcdbc067a1c97e_1#byt.; /**< as byte */ |
| 54 | char *strcxx . . $ $anonymous_type_4cbcdbc067a1c97e_1#str.; /**< as char* (string, object path or signature) */ |
| 55 | int fdcxx . . $ $anonymous_type_4cbcdbc067a1c97e_1#fd.; /**< as Unix file descriptor */ |
| 56 | } _DBusBasicValuecxx . . $ _DBusBasicValue#; |
| 57 | |
| 58 | |
| 59 | char *oval_dbus_value_to_stringcxx . . $ oval_dbus_value_to_string(c8641a873d86c3b).(DBusMessageItercxx . . $ DBusMessageIter# *iter); |
| 60 | |
| 61 | DBusConnectioncxx . . $ DBusConnection# *oval_connect_dbuscxx . . $ oval_connect_dbus(f89cc4e9350282f7).(void); |
| 62 | |
| 63 | void oval_disconnect_dbuscxx . . $ oval_disconnect_dbus(5ffe6e60e141c747).(DBusConnectioncxx . . $ DBusConnection# *conn); |
| 64 | |
| 65 | #endif |