Update debian/rules to build command-line config utility
[browser-switch] / dbus-server-bindings.h
1 /*
2  * dbus-server-bindings.h -- definitions for the osso_browser interface
3  *
4  * Copyright (C) 2009 Steven Luo
5  * Derived from a Python implementation by Jason Simpson and Steven Luo
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
20  * USA.
21  */
22
23 #ifndef _DBUS_SERVER_BINDINGS_H
24 #define _DBUS_SERVER_BINDINGS_H 1
25
26 #include "browser-switchboard.h"
27
28 GType osso_browser_get_type(void);
29 #define OSSO_BROWSER_TYPE (osso_browser_get_type())
30 typedef struct _OssoBrowser {
31         GObject parent;
32 } OssoBrowser;
33 typedef struct _OssoBrowserClass {
34         GObjectClass parent;
35 } OssoBrowserClass;
36
37 /* The com.nokia.osso_browser D-Bus interface */
38 gboolean osso_browser_load_url(OssoBrowser *obj,
39                 const char *uri, GError **error);
40 gboolean osso_browser_mime_open(OssoBrowser *obj,
41                 const char *uri, GError **error);
42 gboolean osso_browser_open_new_window(OssoBrowser *obj,
43                 const char *uri, GError **error);
44 gboolean osso_browser_top_application(OssoBrowser *obj, GError **error);
45 /* This is an "undocumented", non-standard extension; DO NOT USE */
46 gboolean osso_browser_switchboard_launch_microb(OssoBrowser *obj,
47                 const char *uri, GError **error);
48
49 void dbus_request_osso_browser_name(struct swb_context *ctx);
50 void dbus_release_osso_browser_name(struct swb_context *ctx);
51
52 const DBusGObjectInfo dbus_glib_osso_browser_object_info;
53
54 #endif /* _DBUS_SERVER_BINDINGS_H */