2 * Copyright (C) 2008 Collabora Ltd.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 * Authors: Xavier Claessens <xclaesse@gmail.com>
19 * Elliot Fairweather <elliot.fairweather@collabora.co.uk>
22 #ifndef __EMPATHY_TUBE_HANDLER_H__
23 #define __EMPATHY_TUBE_HANDLER_H__
29 #define EMPATHY_TYPE_TUBE_HANDLER (empathy_tube_handler_get_type ())
30 #define EMPATHY_TUBE_HANDLER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), \
31 EMPATHY_TYPE_TUBE_HANDLER, EmpathyTubeHandler))
32 #define EMPATHY_TUBE_HANDLER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), \
33 EMPATHY_TYPE_TUBE_HANDLER, EmpathyTubeHandlerClass))
34 #define EMPATHY_IS_TUBE_HANDLER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), \
35 EMPATHY_TYPE_TUBE_HANDLER))
36 #define EMPATHY_IS_TUBE_HANDLER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), \
37 EMPATHY_TYPE_TUBE_HANDLER))
38 #define EMPATHY_TUBE_HANDLER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), \
39 EMPATHY_TYPE_TUBE_HANDLER, EmpathyTubeHandlerClass))
41 typedef struct _EmpathyTubeHandler EmpathyTubeHandler;
42 typedef struct _EmpathyTubeHandlerClass EmpathyTubeHandlerClass;
44 struct _EmpathyTubeHandler {
48 struct _EmpathyTubeHandlerClass {
49 GObjectClass parent_class;
53 EMPATHY_TYPE_STREAM_TUBE = 0,
54 EMPATHY_TYPE_DBUS_TUBE
57 GType empathy_tube_handler_get_type (void) G_GNUC_CONST;
58 EmpathyTubeHandler *empathy_tube_handler_new (EmpathyTubeType type,
59 const gchar *service);
60 gchar *empathy_tube_handler_build_bus_name (EmpathyTubeType type,
61 const gchar *service);
62 gchar *empathy_tube_handler_build_object_path (EmpathyTubeType type,
63 const gchar *service);
67 #endif /* __EMPATHY_TUBE_HANDLER_H__ */