diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-01-10 07:11:36 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-01-10 07:11:36 +0800 |
commit | c841a4c82601d795e75dfec0007eb9e0e3580f53 (patch) | |
tree | c20b33ec9af8b3b05109976d0944989e73a67b7a /lib/ephy-dbus.h | |
parent | f7c90cf8b4189935d69b2ad6a67f3708b4afe4bd (diff) | |
download | gsoc2013-epiphany-c841a4c82601d795e75dfec0007eb9e0e3580f53.tar.gz gsoc2013-epiphany-c841a4c82601d795e75dfec0007eb9e0e3580f53.tar.zst gsoc2013-epiphany-c841a4c82601d795e75dfec0007eb9e0e3580f53.zip |
A lib/ephy-dbus.c: A lib/ephy-dbus.h:
2005-01-10 Christian Persch <chpe@cvs.gnome.org>
* configure.ac:
* lib/Makefile.am:
A lib/ephy-dbus.c:
A lib/ephy-dbus.h:
* lib/ephy-marshal.list:
* src/Makefile.am:
* src/ephy-shell.c: (ephy_shell_finalize),
(ephy_shell_get_dbus_service):
* src/ephy-shell.h:
Add experimental dbus service, disabled by default. Configure with
--enable-dbus to enable.
Diffstat (limited to 'lib/ephy-dbus.h')
-rw-r--r-- | lib/ephy-dbus.h | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/lib/ephy-dbus.h b/lib/ephy-dbus.h new file mode 100644 index 000000000..e0c718694 --- /dev/null +++ b/lib/ephy-dbus.h @@ -0,0 +1,80 @@ +/* + * Copyright (C) 2004 Jean-François rameau + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * $Id$ + */ + +#ifndef EPHY_DBUS_H +#define EPHY_DBUS_H + +#include <glib-object.h> + +/* Yes, we know that DBUS API isn't stable yet */ +#define DBUS_API_SUBJECT_TO_CHANGE +#include <dbus/dbus-glib.h> +#include <dbus/dbus-glib-lowlevel.h> + +G_BEGIN_DECLS + +#define EPHY_TYPE_DBUS (ephy_dbus_get_type ()) +#define EPHY_DBUS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_DBUS, EphyDbus)) +#define EPHY_DBUS_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EPHY_TYPE_DBUS, EphyDbusClass)) +#define EPHY_IS_DBUS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_DBUS)) +#define EPHY_IS_DBUS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_DBUS)) +#define EPHY_DBUS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_DBUS, EphyDbusClass)) + +typedef struct _EphyDbus EphyDbus; +typedef struct _EphyDbusPrivate EphyDbusPrivate; +typedef struct _EphyDbusClass EphyDbusClass; + +typedef enum +{ + EPHY_DBUS_SESSION, + EPHY_DBUS_SYSTEM +} EphyDbusBus; + +struct _EphyDbus +{ + GObject parent; + + /*< private >*/ + EphyDbusPrivate *priv; +}; + +struct _EphyDbusClass +{ + GObjectClass parent_class; + + /* Signals */ + void (* connected) (EphyDbus *dbus, + EphyDbusBus kind); + void (* disconnected) (EphyDbus *dbus, + EphyDbusBus kind); +}; + +GType ephy_dbus_get_type (void); + +void ephy_dbus_startup (EphyDbus *dbus); + +void ephy_dbus_shutdown (EphyDbus *dbus); + +DBusConnection *ephy_dbus_get_bus (EphyDbus *dbus, + EphyDbusBus kind); + +G_END_DECLS + +#endif /* !EPHY_DBUS_H */ |