"Fossies" - the Fresh Open Source Software Archive

Member "evolution-brutus-1.2.35/addressbook/e-book-backend-brutus-factory.c" (3 Apr 2008, 1984 Bytes) of archive /linux/misc/old/evolution-brutus-1.2.35.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "e-book-backend-brutus-factory.c" see the Fossies "Dox" file reference documentation.

    1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
    2 
    3 /*
    4  *    Brutus e-book backend factory class.
    5  *
    6  *    Authors:
    7  *        Jules Colding <colding@42tools.com>
    8  *
    9  *    Copyright (C) 2007 OMC Denmark ApS.
   10  *
   11  *    This program is free software; you can redistribute it and/or modify
   12  *    it under the terms of the GNU General Public License as published by
   13  *    the Free Software Foundation; either version 2 of the License, or
   14  *    (at your option) any later version.
   15  *
   16  *    This program is distributed in the hope that it will be useful,
   17  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
   18  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   19  *    GNU General Public License for more details.
   20  *
   21  *    You should have received a copy of the GNU General Public License
   22  *    along with this program; if not, write to the Free Software
   23  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
   24  *    MA 02111-1307 USA
   25  */
   26 
   27 #ifdef HAVE_CONFIG_H
   28 #include <config.h>
   29 #endif
   30 
   31 #include <sys/types.h>
   32 #include <sys/stat.h>
   33 #include <sys/file.h>
   34 #include <fcntl.h>
   35 #include <signal.h>
   36 #include <errno.h>
   37 
   38 #include <glib.h>
   39 #include <glib/gstdio.h>
   40 #include <glib-object.h>
   41 #include <libedata-book/e-book-backend-factory.h>
   42 
   43 #include <server/brutus.h>
   44 #include <server/brutus_eds.h>
   45 #include <session/brutusd.h>
   46 
   47 #include "e-book-backend-brutus-factory.h"
   48 #include "e-book-backend-brutus.h"
   49 
   50 
   51 E_BOOK_BACKEND_FACTORY_SIMPLE(brutus, Brutus, e_book_backend_brutus_new)
   52 
   53 static GType brutus_type;
   54 
   55 void
   56 eds_module_initialize(GTypeModule *module)
   57 {
   58     d("Initializing evolution-brutus runtime environment");
   59     if (!brutus_eds_initialize())
   60         d("WARNING: Possible initialization error for evolution-brutus runtime environment");
   61 
   62     brutus_type = _brutus_factory_get_type(module);
   63 }
   64 
   65 void
   66 eds_module_shutdown(void)
   67 {
   68 }
   69 
   70 void
   71 eds_module_list_types(const GType **types,
   72               int *num_types)
   73 {
   74     *types = &brutus_type;
   75     *num_types = 1;
   76 }