[18310] | 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 *source_directory, |
---|
| 25 | CORBA_Environment *ev); |
---|
| 26 | void bonobo_object_directory_shutdown (PortableServer_POA poa, |
---|
| 27 | CORBA_Environment *ev); |
---|
| 28 | Bonobo_ObjectDirectory bonobo_object_directory_get (void); |
---|
[18562] | 29 | CORBA_Object bonobo_object_directory_re_check_fn (const Bonobo_ActivationEnvironment *environment, |
---|
| 30 | const char *od_iorstr, |
---|
| 31 | gpointer user_data, |
---|
| 32 | CORBA_Environment *ev); |
---|
[18310] | 33 | void bonobo_object_directory_reload (void); |
---|
| 34 | void reload_object_directory (void); |
---|
| 35 | void check_quit (void); |
---|
| 36 | |
---|
| 37 | /* object-directory-load.c */ |
---|
| 38 | void bonobo_server_info_load (char **dirs, |
---|
| 39 | Bonobo_ServerInfoList *servers, |
---|
| 40 | GHashTable **by_iid, |
---|
[18562] | 41 | const char *host); |
---|
[18310] | 42 | |
---|
| 43 | /* od-activate.c */ |
---|
| 44 | typedef struct { |
---|
| 45 | Bonobo_ActivationContext ac; |
---|
| 46 | Bonobo_ActivationFlags flags; |
---|
| 47 | CORBA_Context ctx; |
---|
| 48 | } ODActivationInfo; |
---|
| 49 | |
---|
| 50 | /* object-directory-activate.c */ |
---|
[18562] | 51 | CORBA_Object od_server_activate (Bonobo_ServerInfo *si, |
---|
| 52 | ODActivationInfo *actinfo, |
---|
| 53 | CORBA_Object od_obj, |
---|
| 54 | const Bonobo_ActivationEnvironment *environment, |
---|
| 55 | CORBA_Environment *ev); |
---|
[18310] | 56 | |
---|
| 57 | /* activation-context-corba.c */ |
---|
| 58 | void activation_context_init (PortableServer_POA poa, |
---|
| 59 | Bonobo_ObjectDirectory dir, |
---|
| 60 | CORBA_Environment *ev); |
---|
| 61 | void activation_context_shutdown (PortableServer_POA poa, |
---|
| 62 | CORBA_Environment *ev); |
---|
| 63 | Bonobo_ActivationContext activation_context_get (void); |
---|
| 64 | |
---|
| 65 | void activation_clients_cache_notify (void); |
---|
| 66 | gboolean activation_clients_is_empty_scan(void); |
---|
| 67 | void add_initial_locales (void); |
---|
| 68 | gboolean register_interest_in_locales (const char *locales); |
---|
| 69 | |
---|
| 70 | #endif /* SERVER_H */ |
---|