Initial revision
[platform/core/uifw/at-spi2-atk.git] / libspi / registry.h
1 #ifndef REGISTRY_H_
2 #define REGISTRY_H_
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif /* __cplusplus */
7
8 #include <Registry.h>
9 #include "listener.h"
10 #include "desktop.h"
11
12 #define REGISTRY_TYPE        (registry_get_type ())
13 #define REGISTRY(o)          (G_TYPE_CHECK_INSTANCE_CAST ((o), REGISTRY_TYPE, Registry))
14 #define REGISTRY_CLASS(k)    (G_TYPE_CHECK_CLASS_CAST((k), REGISTRY_TYPE, RegistryClass))
15 #define IS_REGISTRY(o)       (G_TYPE_CHECK__INSTANCE_TYPE ((o), REGISTRY_TYPE))
16 #define IS_REGISTRY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), REGISTRY_TYPE))
17
18 typedef struct {
19   Listener parent;
20   GList *listeners;
21   GList *applications;
22   Desktop *desktop;
23 } Registry;
24
25 typedef struct {
26         ListenerClass parent_class;
27         POA_Accessibility_Registry__epv epv;
28 } RegistryClass;
29
30 GType               registry_get_type   (void);
31 Registry            *registry_new       (void);
32
33 #ifdef __cplusplus
34 }
35 #endif /* __cplusplus */
36
37 #endif /* REGISTRY_H_ */