1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 c-set-style: linux -*- */ |
---|
2 | /** |
---|
3 | * bonobo-object-directory.c: abstract the object directory |
---|
4 | * |
---|
5 | * Authors: |
---|
6 | * Havoc Pennington (hp@redhat.com) |
---|
7 | * Anders Carlsson (andersca@gnu.org) |
---|
8 | * Maciej Stachowiak (mjs@eazel.com) |
---|
9 | * |
---|
10 | * Copyright 1999, 2000 Havoc Pennington, Anders Carlsson, |
---|
11 | * Eazel, Inc. |
---|
12 | */ |
---|
13 | #ifndef __BONOBO_OBJECT_DIRECTORY_H__ |
---|
14 | #define __BONOBO_OBJECT_DIRECTORY_H__ |
---|
15 | |
---|
16 | #include <glib.h> |
---|
17 | #include <libgnome/gnome-defs.h> |
---|
18 | #include <orb/orbit.h> |
---|
19 | #include <ORBitservices/CosNaming.h> |
---|
20 | |
---|
21 | BEGIN_GNOME_DECLS |
---|
22 | |
---|
23 | /* |
---|
24 | * This file used to provide a compatibility abstraction for the |
---|
25 | * Gnorba -> Oaf transition. This is now complete, hence these |
---|
26 | * functions are deprecated in favour of the oaf equivalents. |
---|
27 | */ |
---|
28 | |
---|
29 | typedef struct _ODServerInfo ODServerInfo; |
---|
30 | |
---|
31 | typedef enum { |
---|
32 | OD_REG_SUCCESS, |
---|
33 | OD_REG_NOT_LISTED, |
---|
34 | OD_REG_ALREADY_ACTIVE, |
---|
35 | OD_REG_ERROR |
---|
36 | } ODRegistrationResult; |
---|
37 | |
---|
38 | CORBA_ORB bonobo_directory_get_orb (void); |
---|
39 | |
---|
40 | ODServerInfo *bonobo_directory_new_server_info (const gchar *iid, |
---|
41 | const gchar *name, |
---|
42 | const gchar *desc); |
---|
43 | const gchar *bonobo_directory_get_server_info_id (ODServerInfo *info); |
---|
44 | const gchar *bonobo_directory_get_server_info_name (ODServerInfo *info); |
---|
45 | const gchar *bonobo_directory_get_server_info_description (ODServerInfo *info); |
---|
46 | void bonobo_directory_server_info_ref (ODServerInfo *info); |
---|
47 | void bonobo_directory_server_info_unref (ODServerInfo *info); |
---|
48 | |
---|
49 | /* returns list of ODServerInfo */ |
---|
50 | GList *bonobo_directory_get_server_list (const gchar **required_ids); |
---|
51 | void bonobo_directory_free_server_list (GList *list); |
---|
52 | CORBA_Object od_server_activate_with_id (const gchar *iid, |
---|
53 | gint flags, |
---|
54 | CORBA_Environment *ev); |
---|
55 | ODRegistrationResult bonobo_directory_register_server (CORBA_Object objref, |
---|
56 | const gchar *iid); |
---|
57 | ODRegistrationResult bonobo_directory_unregister_server (CORBA_Object objref, |
---|
58 | const gchar *iid); |
---|
59 | |
---|
60 | CORBA_Object bonobo_directory_get_name_service (CORBA_Environment *ev); |
---|
61 | |
---|
62 | char *bonobo_directory_find_for_file (const char *fname, |
---|
63 | const char **required_ids, |
---|
64 | char **error); |
---|
65 | |
---|
66 | END_GNOME_DECLS |
---|
67 | |
---|
68 | #endif /* __BONOBO_OBJECT_DIRECTORY_H__ */ |
---|
69 | |
---|
70 | |
---|