~ubuntu-branches/ubuntu/precise/telepathy-glib/precise-201202222208

« back to all changes in this revision

Viewing changes to examples/cm/callable/protocol.h

  • Committer: Ken VanDine
  • Date: 2012-02-22 18:08:37 UTC
  • mfrom: (1.6.39)
  • Revision ID: ken.vandine@canonical.com-20120222180837-02um6fex0eg073lf
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * protocol.h - header for an example Protocol
3
 
 * Copyright © 2007-2010 Collabora Ltd.
4
 
 *
5
 
 * Copying and distribution of this file, with or without modification,
6
 
 * are permitted in any medium without royalty provided the copyright
7
 
 * notice and this notice are preserved.
8
 
 */
9
 
 
10
 
#ifndef EXAMPLE_CALLABLE_PROTOCOL_H
11
 
#define EXAMPLE_CALLABLE_PROTOCOL_H
12
 
 
13
 
#include <glib-object.h>
14
 
#include <telepathy-glib/base-protocol.h>
15
 
 
16
 
G_BEGIN_DECLS
17
 
 
18
 
typedef struct _ExampleCallableProtocol
19
 
    ExampleCallableProtocol;
20
 
typedef struct _ExampleCallableProtocolPrivate
21
 
    ExampleCallableProtocolPrivate;
22
 
typedef struct _ExampleCallableProtocolClass
23
 
    ExampleCallableProtocolClass;
24
 
typedef struct _ExampleCallableProtocolClassPrivate
25
 
    ExampleCallableProtocolClassPrivate;
26
 
 
27
 
struct _ExampleCallableProtocolClass {
28
 
    TpBaseProtocolClass parent_class;
29
 
 
30
 
    ExampleCallableProtocolClassPrivate *priv;
31
 
};
32
 
 
33
 
struct _ExampleCallableProtocol {
34
 
    TpBaseProtocol parent;
35
 
 
36
 
    ExampleCallableProtocolPrivate *priv;
37
 
};
38
 
 
39
 
GType example_callable_protocol_get_type (void);
40
 
 
41
 
#define EXAMPLE_TYPE_CALLABLE_PROTOCOL \
42
 
    (example_callable_protocol_get_type ())
43
 
#define EXAMPLE_CALLABLE_PROTOCOL(obj) \
44
 
    (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
45
 
        EXAMPLE_TYPE_CALLABLE_PROTOCOL, \
46
 
        ExampleCallableProtocol))
47
 
#define EXAMPLE_CALLABLE_PROTOCOL_CLASS(klass) \
48
 
    (G_TYPE_CHECK_CLASS_CAST ((klass), \
49
 
        EXAMPLE_TYPE_CALLABLE_PROTOCOL, \
50
 
        ExampleCallableProtocolClass))
51
 
#define EXAMPLE_IS_CALLABLE_PROTOCOL(obj) \
52
 
    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
53
 
        EXAMPLE_TYPE_CALLABLE_PROTOCOL))
54
 
#define EXAMPLE_IS_CALLABLE_PROTOCOL_CLASS(klass) \
55
 
    (G_TYPE_CHECK_CLASS_TYPE ((klass), \
56
 
        EXAMPLE_TYPE_CALLABLE_PROTOCOL))
57
 
#define EXAMPLE_CALLABLE_PROTOCOL_GET_CLASS(obj) \
58
 
    (G_TYPE_INSTANCE_GET_CLASS ((obj), \
59
 
        EXAMPLE_TYPE_CALLABLE_PROTOCOL, \
60
 
        ExampleCallableProtocolClass))
61
 
 
62
 
gboolean example_callable_protocol_check_contact_id (const gchar *id,
63
 
    gchar **normal,
64
 
    GError **error);
65
 
 
66
 
G_END_DECLS
67
 
 
68
 
#endif