2
* chan.h - header for an example channel
4
* Copyright (C) 2007 Collabora Ltd. <http://www.collabora.co.uk/>
5
* Copyright (C) 2007 Nokia Corporation
7
* Copying and distribution of this file, with or without modification,
8
* are permitted in any medium without royalty provided the copyright
9
* notice and this notice are preserved.
12
#ifndef __EXAMPLE_CHAN_H__
13
#define __EXAMPLE_CHAN_H__
15
#include <glib-object.h>
16
#include <telepathy-glib/base-connection.h>
17
#include <telepathy-glib/text-mixin.h>
21
typedef struct _ExampleEchoChannel ExampleEchoChannel;
22
typedef struct _ExampleEchoChannelClass ExampleEchoChannelClass;
23
typedef struct _ExampleEchoChannelPrivate ExampleEchoChannelPrivate;
25
GType example_echo_channel_get_type (void);
27
#define EXAMPLE_TYPE_ECHO_CHANNEL \
28
(example_echo_channel_get_type ())
29
#define EXAMPLE_ECHO_CHANNEL(obj) \
30
(G_TYPE_CHECK_INSTANCE_CAST ((obj), EXAMPLE_TYPE_ECHO_CHANNEL, \
32
#define EXAMPLE_ECHO_CHANNEL_CLASS(klass) \
33
(G_TYPE_CHECK_CLASS_CAST ((klass), EXAMPLE_TYPE_ECHO_CHANNEL, \
34
ExampleEchoChannelClass))
35
#define EXAMPLE_IS_ECHO_CHANNEL(obj) \
36
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), EXAMPLE_TYPE_ECHO_CHANNEL))
37
#define EXAMPLE_IS_ECHO_CHANNEL_CLASS(klass) \
38
(G_TYPE_CHECK_CLASS_TYPE ((klass), EXAMPLE_TYPE_ECHO_CHANNEL))
39
#define EXAMPLE_ECHO_CHANNEL_GET_CLASS(obj) \
40
(G_TYPE_INSTANCE_GET_CLASS ((obj), EXAMPLE_TYPE_ECHO_CHANNEL, \
41
ExampleEchoChannelClass))
43
struct _ExampleEchoChannelClass {
44
GObjectClass parent_class;
45
TpTextMixinClass text_class;
46
TpDBusPropertiesMixinClass dbus_properties_class;
49
struct _ExampleEchoChannel {
53
ExampleEchoChannelPrivate *priv;
58
#endif /* #ifndef __EXAMPLE_CHAN_H__ */