Tue, 27 Aug 2013 23:09:33 +0530
Refactored novell to use the new protocol API
|
36588
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
1 | /* purple |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
2 | * |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
3 | * Purple is the legal property of its developers, whose names are too numerous |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
5 | * source distribution. |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
6 | * |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
7 | * This program is free software; you can redistribute it and/or modify |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
8 | * it under the terms of the GNU General Public License as published by |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
9 | * the Free Software Foundation; either version 2 of the License, or |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
10 | * (at your option) any later version. |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
11 | * |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
12 | * This program is distributed in the hope that it will be useful, |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
15 | * GNU General Public License for more details. |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
16 | * |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
17 | * You should have received a copy of the GNU General Public License |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
18 | * along with this program; if not, write to the Free Software |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
20 | * |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
21 | */ |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
22 | #ifndef _NOVELL_H_ |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
23 | #define _NOVELL_H_ |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
24 | |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
25 | #include "protocol.h" |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
26 | |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
27 | #define NOVELL_ID "prpl-novell" |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
28 | #define NOVELL_NAME "GroupWise" |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
29 | #define NOVELL_DOMAIN (g_quark_from_static_string(NOVELL_ID)) |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
30 | |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
31 | #define NOVELL_TYPE_PROTOCOL (novell_protocol_get_type()) |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
32 | #define NOVELL_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), NOVELL_TYPE_PROTOCOL, NovellProtocol)) |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
33 | #define NOVELL_PROTOCOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), NOVELL_TYPE_PROTOCOL, NovellProtocolClass)) |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
34 | #define NOVELL_IS_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NOVELL_TYPE_PROTOCOL)) |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
35 | #define NOVELL_IS_PROTOCOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), NOVELL_TYPE_PROTOCOL)) |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
36 | #define NOVELL_PROTOCOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), NOVELL_TYPE_PROTOCOL, NovellProtocolClass)) |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
37 | |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
38 | typedef struct _NovellProtocol |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
39 | { |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
40 | PurpleProtocol parent; |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
41 | } NovellProtocol; |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
42 | |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
43 | typedef struct _NovellProtocolClass |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
44 | { |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
45 | PurpleProtocolClass parent_class; |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
46 | } NovellProtocolClass; |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
47 | |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
48 | /** |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
49 | * Returns the GType for the NovellProtocol object. |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
50 | */ |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
51 | GType novell_protocol_get_type(void); |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
52 | |
|
5f2a39b1c49f
Refactored novell to use the new protocol API
Ankit Vani <a@nevitus.org>
parents:
diff
changeset
|
53 | #endif /* _NOVELL_H_ */ |