diff options
author | nobody <nobody@localhost> | 2000-02-26 07:33:55 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 2000-02-26 07:33:55 +0800 |
commit | 8e588ed3d97e720c3439d30956e335b14713d4e3 (patch) | |
tree | e5dfae6704668d028cbb0e1fdc55e43b992004bc /addressbook/backend/pas/pas.c | |
parent | 59d2deddc74713097251e0b2c0eb48f078f78268 (diff) | |
download | gsoc2013-evolution-before_bonobo.tar gsoc2013-evolution-before_bonobo.tar.gz gsoc2013-evolution-before_bonobo.tar.bz2 gsoc2013-evolution-before_bonobo.tar.lz gsoc2013-evolution-before_bonobo.tar.xz gsoc2013-evolution-before_bonobo.tar.zst gsoc2013-evolution-before_bonobo.zip |
This commit was manufactured by cvs2svn to create tagbefore_bonobo
'before_bonobo'.
svn path=/tags/before_bonobo/; revision=1959
Diffstat (limited to 'addressbook/backend/pas/pas.c')
-rw-r--r-- | addressbook/backend/pas/pas.c | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/addressbook/backend/pas/pas.c b/addressbook/backend/pas/pas.c deleted file mode 100644 index 07d6d5c757..0000000000 --- a/addressbook/backend/pas/pas.c +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Author: - * Nat Friedman (nat@helixcode.com) - * - * Copyright 2000, Helix Code, Inc. - */ -#include <config.h> -#include <bonobo/gnome-bonobo.h> - -#include <pas-book-factory.h> -#include <pas-backend-file.h> - -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; -} |