Remove #include "kvp_frame.h" from qof.h and add it where it's legitimately used.

This commit is contained in:
John Ralls 2015-06-14 14:52:25 -07:00
parent c721bf9f48
commit ab30b4c680
23 changed files with 69 additions and 46 deletions

View File

@ -26,6 +26,7 @@
#include <glib.h> #include <glib.h>
#include <unittest-support.h> #include <unittest-support.h>
#include <qofbookslots.h> #include <qofbookslots.h>
#include <kvp_frame.h>
#include "../option-util.h" #include "../option-util.h"

View File

@ -12,6 +12,7 @@
#include <glib/gstdio.h> #include <glib/gstdio.h>
#include <qof.h> #include <qof.h>
#include <kvp_frame.h>
#include <unittest-support.h> #include <unittest-support.h>
#include <test-stuff.h> #include <test-stuff.h>
#include <test-dbi-stuff.h> #include <test-dbi-stuff.h>

View File

@ -23,17 +23,18 @@
* 02110-1301, USA. * 02110-1301, USA.
*/ */
#include "config.h" #include <config.h>
#include "qof.h" #include <qof.h>
#include "qofsession-p.h" #include <kvp_frame.h>
#include "cashobjects.h" #include <qofsession-p.h>
#include "test-dbi-stuff.h" #include <cashobjects.h>
#include <test-dbi-stuff.h>
#include <unittest-support.h> #include <unittest-support.h>
#include "Account.h" #include <Account.h>
#include "Split.h" #include <Split.h>
#include "Transaction.h" #include <Transaction.h>
#include "gnc-commodity.h" #include <gnc-commodity.h>
#include <SX-book.h> #include <SX-book.h>
#include <gnc-lot.h> #include <gnc-lot.h>
#include "../gnc-backend-dbi-priv.h" #include "../gnc-backend-dbi-priv.h"

View File

@ -34,17 +34,18 @@
#include <glib/gi18n.h> #include <glib/gi18n.h>
#include <glib/gstdio.h> #include <glib/gstdio.h>
#include "qof.h" #include <qof.h>
#include "qofquery-p.h" #include <qofquery-p.h>
#include "qofquerycore-p.h" #include <qofquerycore-p.h>
#include "Account.h" #include <kvp_frame.h>
#include "TransLog.h" #include <Account.h>
#include "gnc-engine.h" #include <TransLog.h>
#include "SX-book.h" #include <gnc-engine.h>
#include "Recurrence.h" #include <SX-book.h>
#include "gncBillTerm.h" #include <Recurrence.h>
#include "gncTaxTable.h" #include <gncBillTerm.h>
#include "gncInvoice.h" #include <gncTaxTable.h>
#include <gncInvoice.h>
#include "gnc-backend-sql.h" #include "gnc-backend-sql.h"

View File

@ -31,8 +31,9 @@ extern "C"
#include <glib.h> #include <glib.h>
#include "qof.h" #include <qof.h>
#include "gnc-engine.h" #include <gnc-engine.h>
#include <kvp_frame.h>
#include "gnc-backend-sql.h" #include "gnc-backend-sql.h"

View File

@ -33,16 +33,17 @@ extern "C"
#include <glib.h> #include <glib.h>
#include "gnc-xml-helper.h" #include <gnc-xml-helper.h>
#include "Account.h" #include <Account.h>
#include "AccountP.h" #include <AccountP.h>
#include "Query.h" #include <Query.h>
#include "Scrub.h" #include <Scrub.h>
#include "Transaction.h" #include <Transaction.h>
#include "TransactionP.h" #include <TransactionP.h>
#include "TransLog.h" #include <TransLog.h>
#include "gnc-pricedb.h" #include <gnc-pricedb.h>
#include "gnc-pricedb-p.h" #include <gnc-pricedb-p.h>
#include <kvp_frame.h>
#include "io-gncxml.h" #include "io-gncxml.h"
#include "sixtp.h" #include "sixtp.h"

View File

@ -29,6 +29,7 @@ extern "C"
#include "gnc-xml-helper.h" #include "gnc-xml-helper.h"
#include <gnc-date.h> #include <gnc-date.h>
#include <kvp_frame.h>
#include "sixtp-dom-generators.h" #include "sixtp-dom-generators.h"
#include "sixtp-utils.h" #include "sixtp-utils.h"

View File

@ -28,7 +28,8 @@ extern "C"
#include <string.h> #include <string.h>
#include "gnc-xml-helper.h" #include "gnc-xml-helper.h"
#include "gnc-engine.h" #include <gnc-engine.h>
#include <kvp_frame.h>
#include "sixtp-utils.h" #include "sixtp-utils.h"
#include "sixtp-dom-parsers.h" #include "sixtp-dom-parsers.h"
} }

View File

@ -7,11 +7,12 @@
#include <glib.h> #include <glib.h>
#include "gnc-commodity.h" #include <kvp_frame.h>
#include "gnc-engine.h" #include <gnc-commodity.h>
#include "gnc-xml-helper.h" #include <gnc-engine.h>
#include "io-gncxml-gen.h" #include <gnc-xml-helper.h>
#include "sixtp.h" #include <io-gncxml-gen.h>
#include <sixtp.h>

View File

@ -37,8 +37,10 @@
#include "gnc-session.h" #include "gnc-session.h"
#include "guile-mappings.h" #include "guile-mappings.h"
#include "gnc-guile-utils.h" #include "gnc-guile-utils.h"
#include "qof.h" #include <qof.h>
#include "qofbookslots.h" #include <kvp_frame.h>
#include <qofbookslots.h>
/** \todo Code dependent on the private query headers /** \todo Code dependent on the private query headers
qofquery-p.h and qofquerycore-p.h may need to be modified. qofquery-p.h and qofquerycore-p.h may need to be modified.
These files are temporarily exported for QOF 0.6.0 but These files are temporarily exported for QOF 0.6.0 but

View File

@ -1,6 +1,7 @@
#include "config.h" #include "config.h"
#include "qof.h" #include <qof.h>
#include <kvp_frame.h>
#include <libguile.h> #include <libguile.h>
#include "engine-helpers-guile.h" #include "engine-helpers-guile.h"

View File

@ -28,6 +28,7 @@
#include <string.h> #include <string.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include <qof.h>
#include <qofinstance-p.h> #include <qofinstance-p.h>
#include "Account.h" #include "Account.h"

View File

@ -10,6 +10,7 @@
#include <stdint.h> #include <stdint.h>
#include "qof.h" #include "qof.h"
#include <kvp_frame.h>
#include "Query.h" #include "Query.h"
#include "gnc-pricedb.h" #include "gnc-pricedb.h"
#include "SchedXaction.h" #include "SchedXaction.h"

View File

@ -25,6 +25,7 @@
#include <unittest-support.h> #include <unittest-support.h>
#include <gnc-event.h> #include <gnc-event.h>
#include <gnc-gdate-utils.h> #include <gnc-gdate-utils.h>
#include <kvp_frame.h>
#include <qofinstance-p.h> #include <qofinstance-p.h>
/* Add specific headers for this class */ /* Add specific headers for this class */
#include "../Account.h" #include "../Account.h"

View File

@ -38,6 +38,7 @@ extern "C"
#include <TransactionP.h> #include <TransactionP.h>
#include <gnc-lot.h> #include <gnc-lot.h>
#include <gnc-event.h> #include <gnc-event.h>
#include <kvp_frame.h>
#include <qofinstance-p.h> #include <qofinstance-p.h>
#ifdef HAVE_GLIB_2_38 #ifdef HAVE_GLIB_2_38

View File

@ -33,6 +33,7 @@
#include "../gnc-lot.h" #include "../gnc-lot.h"
#include "../gnc-event.h" #include "../gnc-event.h"
#include <qof.h> #include <qof.h>
#include <kvp_frame.h>
#include <qofbackend-p.h> #include <qofbackend-p.h>
#ifdef HAVE_GLIB_2_38 #ifdef HAVE_GLIB_2_38

View File

@ -28,6 +28,7 @@ extern "C"
{ {
#include "config.h" #include "config.h"
#include "qof.h" #include "qof.h"
#include "kvp_frame.h"
} }
#include <boost/version.hpp> #include <boost/version.hpp>
#if BOOST_VERSION == 105600 #if BOOST_VERSION == 105600

View File

@ -56,6 +56,7 @@ extern "C"
#include "qofid-p.h" #include "qofid-p.h"
#include "qofobject-p.h" #include "qofobject-p.h"
#include "qofbookslots.h" #include "qofbookslots.h"
#include "kvp_frame.h"
static QofLogModule log_module = QOF_MOD_ENGINE; static QofLogModule log_module = QOF_MOD_ENGINE;
#define AB_KEY "hbci" #define AB_KEY "hbci"

View File

@ -49,9 +49,9 @@ extern "C"
#ifndef SWIG #ifndef SWIG
typedef struct _QofBookClass QofBookClass; typedef struct _QofBookClass QofBookClass;
typedef struct KvpValueImpl KvpValue;
#include "qofid.h" #include "qofid.h"
#include "kvp_frame.h"
#include "qofinstance.h" #include "qofinstance.h"
/* --- type macros --- */ /* --- type macros --- */

View File

@ -38,6 +38,7 @@ extern "C"
#include "qof.h" #include "qof.h"
#include "qofbook-p.h" #include "qofbook-p.h"
#include "qofid-p.h" #include "qofid-p.h"
#include "kvp_frame.h"
#include "qofinstance-p.h" #include "qofinstance-p.h"
static QofLogModule log_module = QOF_MOD_ENGINE; static QofLogModule log_module = QOF_MOD_ENGINE;

View File

@ -46,7 +46,6 @@ typedef struct _QofBook QofBook;
#include "qofid.h" #include "qofid.h"
#include "guid.h" #include "guid.h"
#include "gnc-date.h" #include "gnc-date.h"
#include "kvp_frame.h"
#include "qof-gobject.h" #include "qof-gobject.h"
/* --- type macros --- */ /* --- type macros --- */
@ -62,6 +61,8 @@ typedef struct _QofBook QofBook;
#define QOF_INSTANCE_GET_CLASS(o) \ #define QOF_INSTANCE_GET_CLASS(o) \
(G_TYPE_INSTANCE_GET_CLASS ((o), QOF_TYPE_INSTANCE, QofInstanceClass)) (G_TYPE_INSTANCE_GET_CLASS ((o), QOF_TYPE_INSTANCE, QofInstanceClass))
typedef struct KvpFrameImpl KvpFrame;
struct QofInstance_s struct QofInstance_s
{ {
GObject object; GObject object;

View File

@ -27,13 +27,14 @@ extern "C"
#include "config.h" #include "config.h"
#include <string.h> #include <string.h>
#include <glib.h> #include <glib.h>
#include "unittest-support.h" #include <unittest-support.h>
#include <qof.h>
#include <kvp_frame.h>
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#include "qof.h"
static const gchar *suitename = "/qof/kvp_frame"; static const gchar *suitename = "/qof/kvp_frame";
void test_suite_kvp_frame ( void ); void test_suite_kvp_frame ( void );

View File

@ -24,6 +24,7 @@
#include <unittest-support.h> #include <unittest-support.h>
#include "../qof.h" #include "../qof.h"
#include "../qofbackend-p.h" #include "../qofbackend-p.h"
#include "../kvp_frame.h"
static const gchar *suitename = "/qof/qofinstance"; static const gchar *suitename = "/qof/qofinstance";
void test_suite_qofinstance ( void ); void test_suite_qofinstance ( void );