D-Bus  1.10.8
Data Structures | Macros | Functions

Error reporting internals. More...

Data Structures

struct  DBusRealError
 Internals of DBusError. More...
 

Macros

#define DBUS_ERROR_INIT   { NULL, NULL, TRUE, 0, 0, 0, 0, NULL }
 Expands to a suitable initializer for a DBusError on the stack. More...
 

Functions

 _DBUS_STATIC_ASSERT (sizeof(DBusRealError)==sizeof(DBusError))
 

Detailed Description

Error reporting internals.

Macro Definition Documentation

#define DBUS_ERROR_INIT   { NULL, NULL, TRUE, 0, 0, 0, 0, NULL }

Expands to a suitable initializer for a DBusError on the stack.

Declaring a DBusError with:

1 DBusError error = DBUS_ERROR_INIT;
2 
3 do_things_with (&error);

is a more concise form of:

1 DBusError error;
2 
3 dbus_error_init (&error);
4 do_things_with (&error);

Definition at line 62 of file dbus-errors.h.

Referenced by _dbus_babysitter_unref(), _dbus_connection_handle_watch(), _dbus_get_local_machine_uuid_encoded(), _dbus_read_uuid_file(), _dbus_sha_compute(), _dbus_spawn_async_with_babysitter(), _dbus_transport_open(), _dbus_transport_open_platform_specific(), _dbus_user_database_lookup(), dbus_address_unescape_value(), dbus_connection_get_dispatch_status(), dbus_connection_register_fallback(), dbus_connection_register_object_path(), dbus_server_get_data(), and dbus_server_listen().