| 21 */ |
21 */ |
| 22 |
22 |
| 23 #ifndef PURPLE_ZEPHYR_ZEPHYR_H |
23 #ifndef PURPLE_ZEPHYR_ZEPHYR_H |
| 24 #define PURPLE_ZEPHYR_ZEPHYR_H |
24 #define PURPLE_ZEPHYR_ZEPHYR_H |
| 25 |
25 |
| 26 #include <gmodule.h> |
|
| 27 |
|
| 28 #include <purple.h> |
26 #include <purple.h> |
| 29 |
27 |
| 30 #define ZEPHYR_TYPE_PROTOCOL (zephyr_protocol_get_type()) |
28 #define ZEPHYR_TYPE_PROTOCOL (zephyr_protocol_get_type()) |
| 31 #define ZEPHYR_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), ZEPHYR_TYPE_PROTOCOL, ZephyrProtocol)) |
29 G_DECLARE_FINAL_TYPE(ZephyrProtocol, zephyr_protocol, ZEPHYR, PROTOCOL, |
| 32 #define ZEPHYR_PROTOCOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), ZEPHYR_TYPE_PROTOCOL, ZephyrProtocolClass)) |
30 PurpleProtocol) |
| 33 #define ZEPHYR_IS_PROTOCOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), ZEPHYR_TYPE_PROTOCOL)) |
|
| 34 #define ZEPHYR_IS_PROTOCOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), ZEPHYR_TYPE_PROTOCOL)) |
|
| 35 #define ZEPHYR_PROTOCOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), ZEPHYR_TYPE_PROTOCOL, ZephyrProtocolClass)) |
|
| 36 |
|
| 37 typedef struct |
|
| 38 { |
|
| 39 PurpleProtocol parent; |
|
| 40 } ZephyrProtocol; |
|
| 41 |
|
| 42 typedef struct |
|
| 43 { |
|
| 44 PurpleProtocolClass parent_class; |
|
| 45 } ZephyrProtocolClass; |
|
| 46 |
|
| 47 /** |
|
| 48 * Returns the GType for the ZephyrProtocol object. |
|
| 49 */ |
|
| 50 G_MODULE_EXPORT GType zephyr_protocol_get_type(void); |
|
| 51 |
31 |
| 52 #endif /* PURPLE_ZEPHYR_ZEPHYR_H */ |
32 #endif /* PURPLE_ZEPHYR_ZEPHYR_H */ |