diff options
Diffstat (limited to 'wombat')
-rw-r--r-- | wombat/.cvsignore | 11 | ||||
-rw-r--r-- | wombat/Makefile.am | 32 | ||||
-rw-r--r-- | wombat/wombat.c | 117 | ||||
-rw-r--r-- | wombat/wombat.gnorba | 11 | ||||
-rw-r--r-- | wombat/wombat.idl | 12 |
5 files changed, 0 insertions, 183 deletions
diff --git a/wombat/.cvsignore b/wombat/.cvsignore deleted file mode 100644 index e321f442a5..0000000000 --- a/wombat/.cvsignore +++ /dev/null @@ -1,11 +0,0 @@ -.deps -.libs -Makefile -Makefile.in -*.lo -*.la -wombat-stubs.c -wombat-skels.c -wombat-common.c -wombat.h -wombat diff --git a/wombat/Makefile.am b/wombat/Makefile.am deleted file mode 100644 index 4dbdb4467b..0000000000 --- a/wombat/Makefile.am +++ /dev/null @@ -1,32 +0,0 @@ -INCLUDES = \ - $(EXTRA_GNOME_CFLAGS) \ - $(GNOME_INCLUDEDIR) \ - -I$(top_srcdir)/e-util \ - -I$(top_srcdir) \ - -I$(top_srcdir)/addressbook/backend/pas \ - -I$(top_srcdir)/calendar/pcs \ - -I$(top_srcdir)/calendar/cal-util \ - -DEVOLUTION_VERSION=\""$(VERSION)"\" \ - -DEVOLUTION_LOCALEDIR=\""$(datadir)/locale"\" - -bin_PROGRAMS = \ - wombat - -wombat_SOURCES = \ - wombat.c - -wombat_LDADD = \ - $(EXTRA_GNOME_LIBS) \ - $(BONOBO_HTML_GNOME_LIBS) \ - $(top_builddir)/e-util/libeutil.la \ - $(top_builddir)/addressbook/backend/pas/libpas.la \ - $(top_builddir)/calendar/pcs/libpcs.la \ - $(top_builddir)/libical/src/libical/libical.la \ - $(top_builddir)/calendar/cal-util/libcalutil.la \ - $(top_builddir)/libversit/libversit.la \ - -lgnomevfs - -wombat_LDFLAGS = `gnome-config --libs gnorba` - -gnorbadir = $(sysconfdir)/CORBA/servers -gnorba_DATA = wombat.gnorba diff --git a/wombat/wombat.c b/wombat/wombat.c deleted file mode 100644 index 5e4ad25173..0000000000 --- a/wombat/wombat.c +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Author: - * Nat Friedman (nat@helixcode.com) - * - * Copyright 2000, Helix Code, Inc. - */ - -#include <config.h> -#include <bonobo.h> -#include <pas-book-factory.h> -#include <pas-backend-file.h> -#include <libgnomevfs/gnome-vfs-init.h> -#include <libgnorba/gnorba.h> -#include <cal-factory.h> -#include <calobj.h> - -CORBA_Environment ev; -CORBA_ORB orb; - -static void -setup_pas (int argc, char **argv) -{ - static PASBookFactory *factory; - - factory = pas_book_factory_new (); - - pas_book_factory_register_backend ( - factory, "file", pas_backend_file_new); - - pas_book_factory_activate (factory); -} - - -static void -setup_pcs (int argc, char **argv) -{ - int result; - CORBA_Object object; - CalFactory *factory = cal_factory_new (); - - if (!factory) { - g_message ("%s: %d: couldn't create a Calendar factory\n", - __FILE__, __LINE__); - } - - object = bonobo_object_corba_objref (BONOBO_OBJECT (factory)); - - CORBA_exception_init (&ev); - result = goad_server_register (CORBA_OBJECT_NIL, - object, - "evolution:calendar-factory", - "server", - &ev); - - if (ev._major != CORBA_NO_EXCEPTION || result == -1) { - - g_message ("create_cal_factory(): " - "could not register the calendar factory"); - bonobo_object_unref (BONOBO_OBJECT (factory)); - CORBA_exception_free (&ev); - - } else if (result == -2) { - - g_message ("create_cal_factory(): " - "a calendar factory is already registered"); - bonobo_object_unref (BONOBO_OBJECT (factory)); - CORBA_exception_free (&ev); - - } - - CORBA_exception_free (&ev); -} - -static void -setup_config (int argc, char **argv) -{ -} - -static void -setup_vfs (int argc, char **argv) -{ - if (!gnome_vfs_init ()) { - g_message ("setup_vfs(): could not initialize GNOME-VFS"); - exit (1); - } -} - - -static void -init_bonobo (int argc, char **argv) -{ - CORBA_exception_init (&ev); - - gnome_CORBA_init_with_popt_table ( - "Personal Addressbook Server", "0.0", - &argc, argv, NULL, 0, NULL, GNORBA_INIT_SERVER_FUNC, &ev); - - orb = gnome_CORBA_ORB (); - - if (bonobo_init (orb, NULL, NULL) == FALSE) - g_error (_("Could not initialize Bonobo")); -} - -int -main (int argc, char **argv) -{ - init_bonobo (argc, argv); - setup_vfs (argc, argv); - - setup_pas (argc, argv); - setup_pcs (argc, argv); - setup_config (argc, argv); - - bonobo_main (); - - return 0; -} diff --git a/wombat/wombat.gnorba b/wombat/wombat.gnorba deleted file mode 100644 index 165722b8ce..0000000000 --- a/wombat/wombat.gnorba +++ /dev/null @@ -1,11 +0,0 @@ -[evolution:addressbook-server] -type=exe -repo_id=IDL:Evolution/BookFactory:1.0 IDL:Bonobo/Unknown:1.0 -description=The Personal Addressbook Server -location_info=wombat - -[evolution:calendar-server] -type=exe -repo_id=IDL:Evolution/Calendar/CalFactory:1.0 IDL:Bonobo/Unknown:1.0 -description=The Personal Calendar Server -location_info=wombat diff --git a/wombat/wombat.idl b/wombat/wombat.idl deleted file mode 100644 index ab13b2cabf..0000000000 --- a/wombat/wombat.idl +++ /dev/null @@ -1,12 +0,0 @@ -/* - * The Evolution Personal Organization Server. - * - * Copyright 2000, Helix Code, Inc. - */ - -module Evolution { - - interface Config { - - }; -}; |