D-Bus: Basic types

D-Bus 1.12.2

Data Structures | Macros | Typedefs | Variables
Basic types
D-Bus low-level public API

dbus_bool_t, dbus_int32_t, etc. More...

Collaboration diagram for Basic types:

## Data Structures
struct | DBus8ByteStruct
| An 8-byte struct you could use to access int64 without having int64 support. More...
union | DBusBasicValue
| A simple value union that lets you access bytes as if they were various types; useful when dealing with basic types via void pointers and varargs. More...

## Macros
#define | DBUS_HAVE_INT64 1
| Always defined. More...
#define | DBUS_INT64_CONSTANT(val) (_DBUS_GNUC_EXTENSION (val##LL))
| Declare a 64-bit signed integer constant. More...
#define | DBUS_UINT64_CONSTANT(val) (_DBUS_GNUC_EXTENSION (val##ULL))
| Declare a 64-bit unsigned integer constant. More...

## Typedefs
typedef dbus_uint32_t | dbus_bool_t
| A boolean, valid values are TRUE and FALSE.
typedef unsigned int | dbus_uint32_t
| A 32-bit unsigned integer on all platforms.
typedef int | dbus_int32_t
| A 32-bit signed integer on all platforms.
typedef unsigned short | dbus_uint16_t
| A 16-bit unsigned integer on all platforms.
typedef short | dbus_int16_t
| A 16-bit signed integer on all platforms.

## Variables
_DBUS_GNUC_EXTENSION typedef unsigned long long | dbus_uint64_t
| A 64-bit unsigned integer.
_DBUS_GNUC_EXTENSION typedef long long | dbus_int64_t
| A 64-bit signed integer.

## Detailed Description

dbus_bool_t, dbus_int32_t, etc.

Typedefs for common primitive types.

## Macro Definition Documentation

## ◆ DBUS_HAVE_INT64

#define DBUS_HAVE_INT64 1

Always defined.

In older libdbus versions, this would be undefined if there was no 64-bit integer type on that platform. libdbus no longer supports such platforms.

## ◆ DBUS_INT64_CONSTANT

#define DBUS_INT64_CONSTANT | ( |  | val | ) | (_DBUS_GNUC_EXTENSION (val##LL))

Declare a 64-bit signed integer constant.

The macro adds the necessary "LL" or whatever after the integer, giving a literal such as "325145246765LL"

Referenced by _dbus_get_real_time(), and _dbus_stat().

## ◆ DBUS_UINT64_CONSTANT

#define DBUS_UINT64_CONSTANT | ( |  | val | ) | (_DBUS_GNUC_EXTENSION (val##ULL))

Declare a 64-bit unsigned integer constant.

The macro adds the necessary "ULL" or whatever after the integer, giving a literal such as "325145246765ULL"