2
* protocol.h - header for an example Protocol
3
* Copyright © 2007-2010 Collabora Ltd.
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.
10
#ifndef EXAMPLE_CALLABLE_PROTOCOL_H
11
#define EXAMPLE_CALLABLE_PROTOCOL_H
13
#include <glib-object.h>
14
#include <telepathy-glib/base-protocol.h>
18
typedef struct _ExampleCallableProtocol
19
ExampleCallableProtocol;
20
typedef struct _ExampleCallableProtocolPrivate
21
ExampleCallableProtocolPrivate;
22
typedef struct _ExampleCallableProtocolClass
23
ExampleCallableProtocolClass;
24
typedef struct _ExampleCallableProtocolClassPrivate
25
ExampleCallableProtocolClassPrivate;
27
struct _ExampleCallableProtocolClass {
28
TpBaseProtocolClass parent_class;
30
ExampleCallableProtocolClassPrivate *priv;
33
struct _ExampleCallableProtocol {
34
TpBaseProtocol parent;
36
ExampleCallableProtocolPrivate *priv;
39
GType example_callable_protocol_get_type (void);
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))
62
gboolean example_callable_protocol_check_contact_id (const gchar *id,