From 5f99ad908dc9885a0c1dac66939360f29ba944c7 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Mon, 17 Apr 2000 05:27:43 +0000 Subject: No longer needed - Federico svn path=/trunk/; revision=2466 --- addressbook/backend/pas/pas.c | 55 ------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 addressbook/backend/pas/pas.c (limited to 'addressbook/backend/pas') diff --git a/addressbook/backend/pas/pas.c b/addressbook/backend/pas/pas.c deleted file mode 100644 index a892d98a5b..0000000000 --- a/addressbook/backend/pas/pas.c +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Author: - * Nat Friedman (nat@helixcode.com) - * - * Copyright 2000, Helix Code, Inc. - */ -#include -#include -#include - -#include -#include - -CORBA_Environment ev; -CORBA_ORB orb; - -static void -init_bonobo (int argc, char **argv) -{ - - 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) -{ - PASBookFactory *factory; - - CORBA_exception_init (&ev); - - - init_bonobo (argc, argv); - - /* - * Create the factory and register the local-file backend with - * it. - */ - factory = pas_book_factory_new (); - - pas_book_factory_register_backend ( - factory, "file", pas_backend_file_new); - - pas_book_factory_activate (factory); - - bonobo_main (); - - return 0; -} -- cgit v1.2.3