|  |  |  | Geoclue Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
#define GEOCLUE_MASTER_DBUS_INTERFACE #define GEOCLUE_MASTER_DBUS_PATH #define GEOCLUE_MASTER_DBUS_SERVICE void (*GeoclueCreateClientCallback) (GeoclueMaster *master,GeoclueMasterClient *client,char *object_path,GError *error,gpointer userdata); GeoclueMaster; GeoclueMasterClass; GeoclueMasterClient * geoclue_master_create_client (GeoclueMaster *master,char **object_path,GError **error); void geoclue_master_create_client_async (GeoclueMaster *master,GeoclueCreateClientCallback callback,gpointer userdata); GeoclueMaster * geoclue_master_get_default (void);
GeoclueMaster is part of the Geoclue public C client API. It uses D-Bus to communicate with the actual Master service.
GeoclueMaster is a singleton service, so it should not be created
explicitly: instead one should use geoclue_master_get_default() to
get a reference to it. It can be used to 
create a GeoclueMasterClient object.
#define GEOCLUE_MASTER_DBUS_INTERFACE "org.freedesktop.Geoclue.Master"
void (*GeoclueCreateClientCallback) (GeoclueMaster *master,GeoclueMasterClient *client,char *object_path,GError *error,gpointer userdata);
GeoclueMasterClient * geoclue_master_create_client (GeoclueMaster *master,char **object_path,GError **error);
Creates a GeoclueMasterClient and puts the D-Bus object path in
object_path.
| 
 | A GeoclueMaster object | 
| 
 | Pointer to returned GeoclueMasterClient D-Bus object path or NULL | 
| 
 | Pointer to returned GError or NULL | 
| Returns : | A new GeoclueMasterClient or NULLon error. | 
void geoclue_master_create_client_async (GeoclueMaster *master,GeoclueCreateClientCallback callback,gpointer userdata);
GeoclueMaster *     geoclue_master_get_default          (void);
Returns the default GeoclueMaster object. Should be unreferenced once the client is finished with it.
| Returns : | A reference to the default GeoclueMaster object |