Initial revision
[platform/core/uifw/at-spi2-atk.git] / registryd / registry-main.c
1 #include <stdlib.h>
2 #include <libbonobo.h>
3 #include "registry.h"
4
5 int
6 main (int argc,
7       char **argv)
8 {
9         Registry *registry;
10         char *obj_id;
11
12         if (!bonobo_init (&argc, argv))
13           {
14             g_error ("Could not initialize oaf / Bonobo");
15           }
16
17         obj_id = "OAFIID:Accessibility_Registry:proto0.1";
18
19         registry = registry_new ();
20
21         oaf_active_server_register (
22                 obj_id,
23                 bonobo_object_corba_objref (bonobo_object (registry)));
24
25         fprintf (stderr, "Registry Message: Registry daemon is running.\n");
26         bonobo_main ();
27
28         return 0;
29 }
30
31
32