2
* @file geis_dbus_locator.h
3
* @brief Interface for the GEIS DBus locator.
5
* The GEIS DBus locator makes the location of the GEIS DBus server available
6
* over the DBus session bus.
8
* This header is for internal GEIS use only and contains no client
9
* (externally-visible) symbols.
13
* Copyright 2011 Canonical Ltd.
15
* This library is free software; you can redistribute it and/or modify it under
16
* the terms of the GNU Lesser General Public License as published by the Free
17
* Software Foundation; either version 3 of the License, or (at your option) any
20
* This library is distributed in the hope that it will be useful, but WITHOUT
21
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
22
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
25
* You should have received a copy of the GNU General Public License
26
* along with this program. If not, see <http://www.gnu.org/licenses/>.
28
#ifndef GEIS_DBUS_LOCATOR_H_
29
#define GEIS_DBUS_LOCATOR_H_
31
#include "geis/geis.h"
32
#include "geis_dbus_client.h"
35
typedef struct GeisDBusLocator *GeisDBusLocator;
39
* Creates a new GeisDBusLocator object.
41
* @param[in] client A GEIS DBus CLient.
44
geis_dbus_locator_new(GeisDBusClient client);
47
* Destroys a %GeisDBusLocator object.
49
* @param[in] locator A GeisDBusLocator.
52
geis_dbus_locator_delete(GeisDBusLocator locator);
55
* Gets the currently located server address.
57
* @param[in] locator A GeisDBusLocator.
60
geis_dbus_locator_server_address(GeisDBusLocator locator);
62
#endif /* GEIS_DBUS_LOCATOR_H_ */