]> git.0d.be Git - empathy.git/blob - libempathy/empathy-tube-handler.h
empathy_tube_handler_new: add debug message
[empathy.git] / libempathy / empathy-tube-handler.h
1 /*
2  * Copyright (C) 2008 Collabora Ltd.
3  *
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.
8  *
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.
13  *
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
17  *
18  * Authors: Xavier Claessens <xclaesse@gmail.com>
19  *          Elliot Fairweather <elliot.fairweather@collabora.co.uk>
20  */
21
22 #ifndef __EMPATHY_TUBE_HANDLER_H__
23 #define __EMPATHY_TUBE_HANDLER_H__
24
25 #include <glib.h>
26
27 G_BEGIN_DECLS
28
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))
40
41 typedef struct _EmpathyTubeHandler EmpathyTubeHandler;
42 typedef struct _EmpathyTubeHandlerClass EmpathyTubeHandlerClass;
43
44 struct _EmpathyTubeHandler {
45   GObject parent;
46 };
47
48 struct _EmpathyTubeHandlerClass {
49   GObjectClass parent_class;
50 };
51
52 typedef enum {
53   EMPATHY_TYPE_STREAM_TUBE = 0,
54   EMPATHY_TYPE_DBUS_TUBE
55 } EmpathyTubeType;
56
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);
64
65 G_END_DECLS
66
67 #endif /* __EMPATHY_TUBE_HANDLER_H__ */