1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */ |
---|
2 | #ifndef SERVER_H |
---|
3 | #define SERVER_H |
---|
4 | |
---|
5 | #include <bonobo-activation/bonobo-activation.h> |
---|
6 | #include "bonobo-activation/Bonobo_ActivationContext.h" |
---|
7 | |
---|
8 | /* |
---|
9 | * Define, and export BONOBO_ACTIVATION_DEBUG_OUTPUT |
---|
10 | * for a smoother, closer debugging experience. |
---|
11 | */ |
---|
12 | #define BONOBO_ACTIVATION_DEBUG |
---|
13 | |
---|
14 | /* |
---|
15 | * Time delay after all servers are de-registered / dead |
---|
16 | * before quitting the server. (ms) |
---|
17 | */ |
---|
18 | #define SERVER_IDLE_QUIT_TIMEOUT 1000 |
---|
19 | |
---|
20 | #define NAMING_CONTEXT_IID "OAFIID:Bonobo_CosNaming_NamingContext" |
---|
21 | |
---|
22 | /* object-directory-corba.c */ |
---|
23 | void bonobo_object_directory_init (PortableServer_POA poa, |
---|
24 | const char *domain, |
---|
25 | const char *source_directory, |
---|
26 | CORBA_Environment *ev); |
---|
27 | void bonobo_object_directory_shutdown (PortableServer_POA poa, |
---|
28 | CORBA_Environment *ev); |
---|
29 | Bonobo_ObjectDirectory bonobo_object_directory_get (void); |
---|
30 | CORBA_Object bonobo_object_directory_re_check_fn (const char *display, |
---|
31 | const char *od_iorstr, |
---|
32 | gpointer user_data, |
---|
33 | CORBA_Environment *ev); |
---|
34 | void bonobo_object_directory_reload (void); |
---|
35 | void reload_object_directory (void); |
---|
36 | void check_quit (void); |
---|
37 | |
---|
38 | /* object-directory-load.c */ |
---|
39 | void bonobo_server_info_load (char **dirs, |
---|
40 | Bonobo_ServerInfoList *servers, |
---|
41 | GHashTable **by_iid, |
---|
42 | const char *host, |
---|
43 | const char *domain); |
---|
44 | |
---|
45 | /* od-activate.c */ |
---|
46 | typedef struct { |
---|
47 | Bonobo_ActivationContext ac; |
---|
48 | Bonobo_ActivationFlags flags; |
---|
49 | CORBA_Context ctx; |
---|
50 | } ODActivationInfo; |
---|
51 | |
---|
52 | /* object-directory-activate.c */ |
---|
53 | CORBA_Object od_server_activate (Bonobo_ServerInfo *si, |
---|
54 | ODActivationInfo *actinfo, |
---|
55 | CORBA_Object od_obj, |
---|
56 | CORBA_Environment *ev); |
---|
57 | |
---|
58 | /* activation-context-corba.c */ |
---|
59 | void activation_context_init (PortableServer_POA poa, |
---|
60 | Bonobo_ObjectDirectory dir, |
---|
61 | CORBA_Environment *ev); |
---|
62 | void activation_context_shutdown (PortableServer_POA poa, |
---|
63 | CORBA_Environment *ev); |
---|
64 | Bonobo_ActivationContext activation_context_get (void); |
---|
65 | |
---|
66 | void activation_clients_cache_notify (void); |
---|
67 | gboolean activation_clients_is_empty_scan(void); |
---|
68 | void add_initial_locales (void); |
---|
69 | gboolean register_interest_in_locales (const char *locales); |
---|
70 | |
---|
71 | #endif /* SERVER_H */ |
---|