![]() |
![]() |
![]() |
libhud-client Docs | ![]() |
---|---|---|---|---|
Top | Description |
#include <libhud-client/connection.h> #define HUD_CLIENT_CONNECTION_SIGNAL_CONNECTION_STATUSvoid (*HudClientConnectionNewQueryCallback) (,
HudClientConnection *connectionconst
,gchar *query_pathconst
,gchar *results_nameconst
,gchar *appstack_name); struct HudClientConnectionClass;
gpointer user_dataHudClientConnection * hud_client_connection_get_ref (void
);HudClientConnection * hud_client_connection_new (,
gchar *dbus_address);
gchar *dbus_pathvoid hud_client_connection_new_query (,
HudClientConnection *connectionconst
,gchar *queryHudClientConnectionNewQueryCallback cb
,); const
gpointer user_datagchar * hud_client_connection_get_address ();
HudClientConnection *connectiongboolean hud_client_connection_connected ();
HudClientConnection *connection
The connection is an object to maintain a connection to the default objects on the HUD service. It provides access to the functionality there and can be used to create queries.
Most users should not bother with a connection, it will be created
by the
#define HUD_CLIENT_CONNECTION_SIGNAL_CONNECTION_STATUS "connection-status"
Signal to notify on a change in the connection status
void (*HudClientConnectionNewQueryCallback) (,
HudClientConnection *connectionconst
,gchar *query_pathconst
,gchar *results_nameconst
,gchar *appstack_name);
gpointer user_data
Callback for the async call to create a new query
|
|
|
Path to the query object on DBus |
|
DBus name for the results |
|
DBus name for the appstack |
|
Passed in user data |
struct HudClientConnectionClass { GObjectClass parent_class; };
Class information for
HudClientConnection * hud_client_connection_get_ref (void
);
Gets a reference to the default object that connects to the default HUD service.
Returns : |
Refence to a |
HudClientConnection * hud_client_connection_new (,
gchar *dbus_address);
gchar *dbus_path
Builds a HUD Connection object that can be used to connect to a
custom HUD service. For the most part, this should only be used
in testing, though there might be other uses. It is likely if you're
using this function you'd also be interested in
hud_client_query_new_for_connection()
|
Address on DBus for the HUD service |
|
Path to the object to create stuff |
Returns : |
A new |
void hud_client_connection_new_query (,
HudClientConnection *connectionconst
,gchar *queryHudClientConnectionNewQueryCallback cb
,);
gpointer user_data
Function to create a new query in the HUD service and pass back
the information needed to create a
|
A |
|
The initial query string |
|
Callback when we've got the query |
|
Data to pass to the callback |
constgchar * hud_client_connection_get_address ();
HudClientConnection *connection
Accessor to get the address of the HUD service.
|
A |
Returns : |
A DBus address |