~tiagosh/telepathy-qt/group-chat2

« back to all changes in this revision

Viewing changes to tests/lib/glib/echo/chan.h

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo
  • Date: 2013-06-06 04:56:14 UTC
  • Revision ID: package-import@ubuntu.com-20130606045614-inpxexo6765rnmp1
Tags: upstream-0.9.3
ImportĀ upstreamĀ versionĀ 0.9.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * chan.h - header for an example channel
 
3
 *
 
4
 * Copyright (C) 2007 Collabora Ltd. <http://www.collabora.co.uk/>
 
5
 * Copyright (C) 2007 Nokia Corporation
 
6
 *
 
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.
 
10
 */
 
11
 
 
12
#ifndef __EXAMPLE_CHAN_H__
 
13
#define __EXAMPLE_CHAN_H__
 
14
 
 
15
#include <glib-object.h>
 
16
#include <telepathy-glib/base-connection.h>
 
17
#include <telepathy-glib/text-mixin.h>
 
18
 
 
19
G_BEGIN_DECLS
 
20
 
 
21
typedef struct _ExampleEchoChannel ExampleEchoChannel;
 
22
typedef struct _ExampleEchoChannelClass ExampleEchoChannelClass;
 
23
typedef struct _ExampleEchoChannelPrivate ExampleEchoChannelPrivate;
 
24
 
 
25
GType example_echo_channel_get_type (void);
 
26
 
 
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, \
 
31
                               ExampleEchoChannel))
 
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))
 
42
 
 
43
struct _ExampleEchoChannelClass {
 
44
    GObjectClass parent_class;
 
45
    TpTextMixinClass text_class;
 
46
    TpDBusPropertiesMixinClass dbus_properties_class;
 
47
};
 
48
 
 
49
struct _ExampleEchoChannel {
 
50
    GObject parent;
 
51
    TpTextMixin text;
 
52
 
 
53
    ExampleEchoChannelPrivate *priv;
 
54
};
 
55
 
 
56
G_END_DECLS
 
57
 
 
58
#endif /* #ifndef __EXAMPLE_CHAN_H__ */