galago-core.h File Reference
Galago Context API. More...
#include <libgalago/galago-dbus.h>
#include <libgalago/galago-person.h>
#include <libgalago/galago-service.h>
#include <libgalago/galago-signals.h>
#include <libgalago/galago-types.h>
Go to the source code of this file.
Defines | |
#define | GALAGO_DBUS_CORE_INTERFACE "org.freedesktop.Galago.Core" |
#define | GALAGO_DBUS_CORE_OBJECT "/org/freedesktop/Galago/Core" |
#define | galago_glib_init(name, feed, context) |
Initializes Galago and sets the D-BUS connection to use the GLib mainloop. | |
Typedefs | |
typedef _GalagoCore | GalagoCore |
typedef void(* | GalagoMainLoopSetupFunc )(DBusConnection *, void *) |
Functions | |
galago_bool | galago_init (const char *name, galago_bool feed) |
Initializes Galago. | |
galago_bool | galago_init_with_mainloop (const char *name, galago_bool feed, GalagoMainLoopSetupFunc func, void *data) |
Initializes Galago, passing a mainloop setup function to call. | |
void | galago_uninit (void) |
Uninitializes Galago. | |
galago_bool | galago_is_initted (void) |
Returns whether or not Galago has been initialized. | |
galago_bool | galago_is_connected (void) |
Returns whether or not Galago is connected to the daemon. | |
galago_bool | galago_is_registered (void) |
Returns whether or not Galago is successfully registered to the daemon. | |
galago_bool | galago_is_daemon_active (void) |
Returns whether or not the Galago daemon is active. | |
galago_bool | galago_is_daemon (void) |
Returns whether or not this instance of Galago is the daemon. | |
DBusConnection * | galago_core_get_dbus_conn (void) |
Returns Galago's D-BUS connection. | |
const char * | galago_core_get_uid (void) |
Returns the local Galago connection's unique ID. | |
const char * | galago_core_get_obj_path (void) |
Returns the D-BUS object path representing this connection. | |
galago_bool | galago_core_is_feed (void) |
Returns whether or not this Galago connection works as a feed. | |
void | galago_core_set_watch_all (galago_bool watch_all) |
Sets whether or not all services, accounts, etc. | |
galago_bool | galago_core_get_watch_all (void) |
Returns whether or not all services, accounts, etc. | |
void | galago_core_set_exit_with_daemon (galago_bool exit_with_daemon) |
Sets whether or not the application should exit when the Galago daemon disconnects. | |
galago_bool | galago_core_get_exit_with_daemon (void) |
Returns whether or not the application should exit when the Galago daemon disconnects. | |
void | galago_core_add_service (GalagoService *service) |
Adds a service to Galago's services cache. | |
void | galago_core_remove_service (GalagoService *service) |
Removes a service from Galago's services cache. | |
GalagoService * | galago_core_get_service (const char *id, galago_bool native, galago_bool query) |
Returns the service with the specified ID. | |
const GalagoList * | galago_core_get_services (galago_bool native, galago_bool query) |
Returns a list of known services. | |
void | galago_core_add_person (GalagoPerson *person) |
Adds a person to Galago's person cache. | |
void | galago_core_remove_person (GalagoPerson *person) |
Removes a person from Galago's person cache. | |
GalagoPerson * | galago_core_get_person (const char *id, galago_bool native, galago_bool query) |
Returns the person with the specified ID. | |
const GalagoList * | galago_core_get_people (galago_bool native, galago_bool query) |
Returns a list of known people. | |
GalagoPerson * | galago_core_get_me (galago_bool native, galago_bool query) |
Returns the "Me" person. | |
GalagoCore * | galago_get_core (void) |
Returns the core object. |
Detailed Description
Galago Context API.
- Copyright:
- (C) 2004-2005 Christian Hammond
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Definition in file galago-core.h.
Define Documentation
|
Value: galago_init_with_mainloop((name), (feed), \ (GalagoMainLoopSetupFunc)dbus_connection_setup_with_g_main, (context))
Definition at line 298 of file galago-core.h. |
Function Documentation
|
Adds a person to Galago's person cache. This is used internally. You don't need to call this.
|
|
Adds a service to Galago's services cache.
|
|
Returns Galago's D-BUS connection.
|
|
Returns whether or not the application should exit when the Galago daemon disconnects.
|
|
Returns the "Me" person.
|
|
Returns the D-BUS object path representing this connection.
|
|
Returns a list of known people.
|
|
Returns the person with the specified ID.
|
|
Returns the service with the specified ID.
|
|
Returns a list of known services.
|
|
Returns the local Galago connection's unique ID. This ID is used in D-BUS object paths. It's really only needed internally.
|
|
Returns whether or not all services, accounts, etc. is being watched for property updates.
|
|
Returns whether or not this Galago connection works as a feed.
|
|
Removes a person from Galago's person cache. This is used internally. You don't need to call this.
|
|
Removes a service from Galago's services cache.
|
|
Sets whether or not the application should exit when the Galago daemon disconnects. This is mainly only used for auto-launched feeds.
|
|
Sets whether or not all services, accounts, etc. should be watched for property updates. This will only add accounts, persons, presences, etc. that have a known parent object. That is, if a signal arrives for an account on a service that the local program does not know about, it will be ignored. If you wish to get information on every single object, call the list query functions first.
|
|
Returns the core object. This is needed for signals.
|
|
Initializes Galago.
|
|
Initializes Galago, passing a mainloop setup function to call.
|
|
Returns whether or not Galago is connected to the daemon.
|
|
Returns whether or not this instance of Galago is the daemon.
|
|
Returns whether or not the Galago daemon is active.
|
|
Returns whether or not Galago has been initialized.
|
|
Returns whether or not Galago is successfully registered to the daemon.
|
|
Uninitializes Galago. This will be called automatically on exit, but can be called manually. |