aboutsummaryrefslogtreecommitdiffstats
path: root/shell/evolution-service-repository.h
diff options
context:
space:
mode:
authorbertrand <bertrand@helixcode.com>2000-03-13 04:03:12 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>2000-03-13 04:03:12 +0800
commit303d95e31c9464b1be4afa44de2ca82893425083 (patch)
tree04c2ef12b8823d465cacdf0031f98b8b3ad14845 /shell/evolution-service-repository.h
parentd1aae0079ca3e647a5e925ea89517906d7deb991 (diff)
downloadgsoc2013-evolution-303d95e31c9464b1be4afa44de2ca82893425083.tar.gz
gsoc2013-evolution-303d95e31c9464b1be4afa44de2ca82893425083.tar.zst
gsoc2013-evolution-303d95e31c9464b1be4afa44de2ca82893425083.zip
creates an Evolution_ServiceRepository object.
2000-03-12 bertrand <bertrand@helixcode.com> * shell/evolution-service-repository.c: (evolution_service_repository_new): creates an Evolution_ServiceRepository object. (create_evolution_service_repository): create the corresponding servant. (evolution_service_repository_construct): set the closure as well as the virtual functions. Completed the implementation. The bonobo components can now implement a Evolution::ServiceRepository interface. svn path=/trunk/; revision=2106
Diffstat (limited to 'shell/evolution-service-repository.h')
-rw-r--r--shell/evolution-service-repository.h31
1 files changed, 25 insertions, 6 deletions
diff --git a/shell/evolution-service-repository.h b/shell/evolution-service-repository.h
index 677f88152d..88a0f621d7 100644
--- a/shell/evolution-service-repository.h
+++ b/shell/evolution-service-repository.h
@@ -14,29 +14,48 @@ BEGIN_GNOME_DECLS
#define EVOLUTION_IS_SERVICE_REPOSITORY_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), EVOLUTION_SERVICE_REPOSITORY_TYPE))
typedef struct _EvolutionServiceRepository EvolutionServiceRepositoryPrivate;
+typedef struct _EvolutionServiceRepository EvolutionServiceRepository;
+typedef void (*EvolutionServiceRepositorySetShellFn) (EvolutionServiceRepository *sr, const Evolution_Shell shell, void *closure);
-typedef struct {
+
+struct _EvolutionServiceRepository {
BonoboObject object;
+
+ EvolutionServiceRepositorySetShellFn set_shell_fn;
+
+ void *closure;
+
EvolutionServiceRepositoryPrivate *priv;
-} EvolutionServiceRepository;
+};
typedef struct {
BonoboObjectClass parent_class;
+ void (*set_shell) (EvolutionServiceRepository *sr, Evolution_Shell shell);
+
} EvolutionServiceRepositoryClass;
-GtkType evolution_service_repository_get_type (void);
-EvolutionServiceRepository *evolution_service_repository_construct (EvolutionServiceRepository *service_repository,
- Evolution_ServiceRepository corba_service_repository);
+GtkType evolution_service_repository_get_type (void);
+
+EvolutionServiceRepository * evolution_service_repository_new (
+ EvolutionServiceRepositorySetShellFn set_shell_fn,
+ void *closure);
+
+EvolutionServiceRepository * evolution_service_repository_construct (
+ EvolutionServiceRepository *sr,
+ Evolution_ServiceRepository corba_service_repository,
+ EvolutionServiceRepositorySetShellFn set_shell_fn,
+ void *closure);
+
-POA_Evolution_ServiceRepository__epv *evolution_service_repository_get_epv (void);
+POA_Evolution_ServiceRepository__epv *evolution_service_repository_get_epv (void);
extern POA_Evolution_ServiceRepository__vepv evolution_service_repository_vepv;