1 /* 2 * manager.h - header for an example connection manager 3 * Copyright (C) 2007 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_EXTENDED_CONNECTION_MANAGER_H__ 11 #define __EXAMPLE_EXTENDED_CONNECTION_MANAGER_H__ 12 13 #include <glib-object.h> 14 #include <telepathy-glib/telepathy-glib.h> 15 16 G_BEGIN_DECLS 17 18 typedef struct _ExampleExtendedConnectionManager 19 ExampleExtendedConnectionManager; 20 typedef struct _ExampleExtendedConnectionManagerPrivate 21 ExampleExtendedConnectionManagerPrivate; 22 typedef struct _ExampleExtendedConnectionManagerClass 23 ExampleExtendedConnectionManagerClass; 24 typedef struct _ExampleExtendedConnectionManagerClassPrivate 25 ExampleExtendedConnectionManagerClassPrivate; 26 27 struct _ExampleExtendedConnectionManagerClass { 28 TpBaseConnectionManagerClass parent_class; 29 30 ExampleExtendedConnectionManagerClassPrivate *priv; 31 }; 32 33 struct _ExampleExtendedConnectionManager { 34 TpBaseConnectionManager parent; 35 36 ExampleExtendedConnectionManagerPrivate *priv; 37 }; 38 39 GType example_extended_connection_manager_get_type (void); 40 41 /* TYPE MACROS */ 42 #define EXAMPLE_TYPE_EXTENDED_CONNECTION_MANAGER \ 43 (example_extended_connection_manager_get_type ()) 44 #define EXAMPLE_EXTENDED_CONNECTION_MANAGER(obj) \ 45 (G_TYPE_CHECK_INSTANCE_CAST((obj), \ 46 EXAMPLE_TYPE_EXTENDED_CONNECTION_MANAGER, \ 47 ExampleExtendedConnectionManager)) 48 #define EXAMPLE_EXTENDED_CONNECTION_MANAGER_CLASS(klass) \ 49 (G_TYPE_CHECK_CLASS_CAST((klass), \ 50 EXAMPLE_TYPE_EXTENDED_CONNECTION_MANAGER, \ 51 ExampleExtendedConnectionManagerClass)) 52 #define EXAMPLE_IS_EXTENDED_CONNECTION_MANAGER(obj) \ 53 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ 54 EXAMPLE_TYPE_EXTENDED_CONNECTION_MANAGER)) 55 #define EXAMPLE_IS_EXTENDED_CONNECTION_MANAGER_CLASS(klass) \ 56 (G_TYPE_CHECK_CLASS_TYPE((klass), \ 57 EXAMPLE_TYPE_EXTENDED_CONNECTION_MANAGER)) 58 #define EXAMPLE_EXTENDED_CONNECTION_MANAGER_GET_CLASS(obj) \ 59 (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 60 EXAMPLE_TYPE_EXTENDED_CONNECTION_MANAGER, \ 61 ExampleExtendedConnectionManagerClass)) 62 63 G_END_DECLS 64 65 #endif 66