2 * connection-watcher.h - Header for ConnectionWatcher
3 * Copyright (C) 2010 Guillaume Desmottes
4 * @author Guillaume Desmottes <gdesmott@gnome.org>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef __CONNECTION_WATCHER_H__
22 #define __CONNECTION_WATCHER_H__
24 #include <glib-object.h>
25 #include <telepathy-glib/connection.h>
29 typedef struct _ConnectionWatcher ConnectionWatcher;
30 typedef struct _ConnectionWatcherClass ConnectionWatcherClass;
32 struct _ConnectionWatcherClass {
33 GObjectClass parent_class;
36 struct _ConnectionWatcher {
40 GType connection_watcher_get_type(void);
43 #define CONNECTION_WATCHER_TYPE \
44 (connection_watcher_get_type())
45 #define CONNECTION_WATCHER(obj) \
46 (G_TYPE_CHECK_INSTANCE_CAST((obj), CONNECTION_WATCHER_TYPE, ConnectionWatcher))
47 #define CONNECTION_WATCHER_CLASS(klass) \
48 (G_TYPE_CHECK_CLASS_CAST((klass), CONNECTION_WATCHER_TYPE, ConnectionWatcherClass))
49 #define CONNECTION_IS_WATCHER(obj) \
50 (G_TYPE_CHECK_INSTANCE_TYPE((obj), CONNECTION_WATCHER_TYPE))
51 #define CONNECTION_IS_WATCHER_CLASS(klass) \
52 (G_TYPE_CHECK_CLASS_TYPE((klass), CONNECTION_WATCHER_TYPE))
53 #define CONNECTION_WATCHER_GET_CLASS(obj) \
54 (G_TYPE_INSTANCE_GET_CLASS ((obj), CONNECTION_WATCHER_TYPE, ConnectionWatcherClass))
56 ConnectionWatcher * connection_watcher_new (void);
58 void connection_watcher_start (ConnectionWatcher *watcher);
62 #endif /* #ifndef __CONNECTION_WATCHER_H__*/