enum spa_dbus_type {
SPA_DBUS_TYPE_SESSION, /**< The login session bus */
SPA_DBUS_TYPE_SYSTEM, /**< The systemwide bus */
SPA_DBUS_TYPE_STARTER /**< The bus that started us, if any */
};
/* a connection is destroyed */ void (*destroy) (void *data);
/* a connection disconnected */ void (*disconnected) (void *data);
};
struct spa_dbus_connection { #define SPA_VERSION_DBUS_CONNECTION 1
uint32_t version; /** * Get the DBusConnection from a wrapper * * Note that the returned handle is closed and unref'd by spa_dbus * immediately before emitting the asynchronous "disconnected" event. * The caller must either deal with the invalidation, or keep an extra * ref on the handle returned. * * \param conn the spa_dbus_connection wrapper * \return a pointer of type DBusConnection
*/ void *(*get) (struct spa_dbus_connection *conn); /** * Destroy a dbus connection wrapper * * \param conn the wrapper to destroy
*/ void (*destroy) (struct spa_dbus_connection *conn);
/** * Add a listener for events * * Since version 1
*/ void (*add_listener) (struct spa_dbus_connection *conn, struct spa_hook *listener, conststruct spa_dbus_connection_events *events, void *data);
};
/** * Get a new connection wrapper for the given bus type. * * The connection wrapper is completely configured to operate * in the main context of the handle that manages the spa_dbus * interface. * * \param dbus the dbus manager * \param type the bus type to wrap * \param error location for the DBusError * \return a new dbus connection wrapper or NULL on error
*/ struct spa_dbus_connection * (*get_connection) (void *object, enum spa_dbus_type type);
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.