qofbook-p.h

00001 /********************************************************************\
00002  * qof-book-p.h -- private functions for QOF books.                 *
00003  *                                                                  *
00004  * This program is free software; you can redistribute it and/or    *
00005  * modify it under the terms of the GNU General Public License as   *
00006  * published by the Free Software Foundation; either version 2 of   *
00007  * the License, or (at your option) any later version.              *
00008  *                                                                  *
00009  * This program is distributed in the hope that it will be useful,  *
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00012  * GNU General Public License for more details.                     *
00013  *                                                                  *
00014  * You should have received a copy of the GNU General Public License*
00015  * along with this program; if not, contact:                        *
00016  *                                                                  *
00017  * Free Software Foundation           Voice:  +1-617-542-5942       *
00018  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
00019  * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
00020  *                                                                  *
00021 \********************************************************************/
00029 /*
00030  * HISTORY:
00031  * Created 2001 by Rob Browning
00032  * Copyright (c) 2001 Rob Browning
00033  * Copyright (c) 2001,2003 Linas Vepstas <linas@linas.org>
00034  */
00035 
00036 #ifndef QOF_BOOK_P_H
00037 #define QOF_BOOK_P_H
00038 
00039 #include "kvp_frame.h"
00040 #include "qofbackend.h"
00041 #include "qofbook.h"
00042 #include "qofid.h"
00043 #include "qofid-p.h"
00044 #include "qofinstance-p.h"
00045 
00046 /*
00047  *    qof_book_set_backend() is used by backends to
00048  *    initialize the pointers in the book structure to
00049  *    something that contains actual data.  These routines
00050  *    should not be used otherwise.  (Its somewhat questionable
00051  *    if the backends should even be doing this much, but for
00052  *    backwards compatibility, we leave these here.)
00053  */
00054 void qof_book_set_backend (QofBook *book, QofBackend *be);
00055 
00056 /* Register books with the engine */
00057 gboolean qof_book_register (void);
00058 
00061 #define qof_book_set_guid(book,guid)    \
00062          qof_instance_set_guid(QOF_INSTANCE(book), guid)
00063 
00064 /* @} */
00065 /* @} */
00066 /* @} */
00067 #endif /* QOF_BOOK_P_H */

Generated on Sun Oct 12 05:07:35 2008 for GnuCash by  doxygen 1.5.2