Fix include files. Include files now only include other include files if symbols from the other files are needed by this one.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19670 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff 2010-10-17 21:17:14 +00:00
parent a899e3149c
commit 5c5cc3f059
16 changed files with 55 additions and 58 deletions

View File

@ -26,13 +26,13 @@
* restoring data to/from an SQL database
*/
#ifndef GNC_ACCOUNT_SQL_H_
#define GNC_ACCOUNT_SQL_H_
#ifndef GNC_ACCOUNT_SQL_H
#define GNC_ACCOUNT_SQL_H
#include "gnc-backend-sql.h"
#include "qof.h"
#include <gmodule.h>
void gnc_sql_init_account_handler( void );
gboolean gnc_sql_save_account( GncSqlBackend* be, QofInstance* inst );
#endif /* GNC_ACCOUNT_SQL_H_ */
#endif /* GNC_ACCOUNT_SQL_H */

View File

@ -36,6 +36,8 @@
#include "gnc-engine.h"
#include "gncAddress.h"
#include "gnc-backend-sql.h"
#include "gnc-address-sql.h"

View File

@ -29,8 +29,6 @@
#ifndef GNC_ADDRESS_SQL_H
#define GNC_ADDRESS_SQL_H
#include "gncAddress.h"
#define CT_ADDRESS "address"
void gnc_address_sql_initialize( void );

View File

@ -42,6 +42,8 @@
#include "gnc-engine.h"
#include "SX-book.h"
#include "Recurrence.h"
#include "gncBillTerm.h"
#include "gncTaxTable.h"
#include "gnc-gconf-utils.h"

View File

@ -36,8 +36,8 @@
* @author Copyright (c) 2006-2008 Phil Longstaff <plongstaff@rogers.com>
*/
#ifndef GNC_BACKEND_SQL_H_
#define GNC_BACKEND_SQL_H_
#ifndef GNC_BACKEND_SQL_H
#define GNC_BACKEND_SQL_H
#include "qof.h"
#include "qofbackend-p.h"
@ -752,7 +752,7 @@ typedef struct
gboolean is_ok;
} write_objects_t;
#endif /* GNC_BACKEND_SQL_H_ */
#endif /* GNC_BACKEND_SQL_H */
/**
@} end of the SQL Backend Core doxygen group

View File

@ -30,7 +30,8 @@
#ifndef GNC_BILLTERM_SQL_H
#define GNC_BILLTERM_SQL_H
#include "gncBillTerm.h"
#include "gnc-backend-sql.h"
#include "qof.h"
#define CT_BILLTERMREF "billterm"

View File

@ -26,13 +26,13 @@
* restoring data to/from an SQL database
*/
#ifndef GNC_BOOK_SQL_H_
#define GNC_BOOK_SQL_H_
#ifndef GNC_BOOK_SQL_H
#define GNC_BOOK_SQL_H
#include "gnc-backend-sql.h"
#include "qof.h"
#include <gmodule.h>
void gnc_sql_init_book_handler( void );
gboolean gnc_sql_save_book( GncSqlBackend* be, QofInstance* inst );
#endif /* GNC_BOOK_SQL_H_ */
#endif /* GNC_BOOK_SQL_H */

View File

@ -26,12 +26,9 @@
* restoring data to/from an SQL database
*/
#ifndef GNC_BUDGET_SQL_H_
#define GNC_BUDGET_SQL_H_
#include "qof.h"
#include <gmodule.h>
#ifndef GNC_BUDGET_SQL_H
#define GNC_BUDGET_SQL_H
void gnc_sql_init_budget_handler( void );
#endif /* GNC_BUDGET_SQL_H_ */
#endif /* GNC_BUDGET_SQL_H */

View File

@ -26,13 +26,13 @@
* restoring data to/from an SQL database
*/
#ifndef GNC_COMMODITY_SQL_H_
#define GNC_COMMODITY_SQL_H_
#ifndef GNC_COMMODITY_SQL_H
#define GNC_COMMODITY_SQL_H
#include "qof.h"
#include <gmodule.h>
#include "gnc-backend-sql.h"
#include "gnc-commodity.h"
void gnc_sql_init_commodity_handler( void );
gboolean gnc_sql_save_commodity( GncSqlBackend* be, gnc_commodity* pCommodity );
#endif /* GNC_COMMODITY_SQL_H_ */
#endif /* GNC_COMMODITY_SQL_H */

View File

@ -26,12 +26,9 @@
* restoring data to/from an SQL database
*/
#ifndef GNC_LOT_SQL_H_
#define GNC_LOT_SQL_H_
#include "qof.h"
#include <gmodule.h>
#ifndef GNC_LOT_SQL_H
#define GNC_LOT_SQL_H
void gnc_sql_init_lot_handler( void );
#endif /* GNC_LOT_SQL_H_ */
#endif /* GNC_LOT_SQL_H */

View File

@ -29,9 +29,6 @@
#ifndef GNC_OWNER_SQL_H
#define GNC_OWNER_SQL_H
#include "gncOwner.h"
#include "qof.h"
#define CT_OWNERREF "owner"
void gnc_owner_sql_initialize( void );

View File

@ -26,12 +26,9 @@
* restoring data to/from an SQL database
*/
#ifndef GNC_PRICE_SQL_H_
#define GNC_PRICE_SQL_H_
#include "qof.h"
#include <gmodule.h>
#ifndef GNC_PRICE_SQL_H
#define GNC_PRICE_SQL_H
void gnc_sql_init_price_handler( void );
#endif /* GNC_PRICE_SQL_H_ */
#endif /* GNC_PRICE_SQL_H */

View File

@ -26,11 +26,13 @@
* restoring data to/from an SQL database
*/
#ifndef GNC_RECURRENCE_SQL_H_
#define GNC_RECURRENCE_SQL_H_
#ifndef GNC_RECURRENCE_SQL_H
#define GNC_RECURRENCE_SQL_H
#include "qof.h"
#include <gmodule.h>
#include <glib.h>
#include "Recurrence.h"
#include "guid.h"
#include "gnc-backend-sql.h"
gboolean gnc_sql_recurrence_save( GncSqlBackend* be, const GncGUID* guid, const Recurrence* pRecurrence );
void gnc_sql_recurrence_save_list( GncSqlBackend* be, const GncGUID* guid, GList* schedule );
@ -42,4 +44,4 @@ GList* gnc_sql_recurrence_load_list( GncSqlBackend* be, const GncGUID* guid );
void gnc_sql_init_recurrence_handler( void );
#endif /* GNC_RECURRENCE_SQL_H_ */
#endif /* GNC_RECURRENCE_SQL_H */

View File

@ -26,13 +26,13 @@
* restoring data to/from an SQL database
*/
#ifndef GNC_SCHEDXACTION_SQL_H_
#define GNC_SCHEDXACTION_SQL_H_
#ifndef GNC_SCHEDXACTION_SQL_H
#define GNC_SCHEDXACTION_SQL_H
#include "qof.h"
#include <gmodule.h>
#include "gnc-backend-sql.h"
void gnc_sql_init_schedxaction_handler( void );
gboolean gnc_sql_save_schedxaction( GncSqlBackend* be, QofInstance* inst );
#endif /* GNC_SCHEDXACTION_SQL_H_ */
#endif /* GNC_SCHEDXACTION_SQL_H */

View File

@ -26,11 +26,14 @@
* restoring data to/from an SQL database
*/
#ifndef GNC_SLOTS_SQL_H_
#define GNC_SLOTS_SQL_H_
#ifndef GNC_SLOTS_SQL_H
#define GNC_SLOTS_SQL_H
#include <glib.h>
#include "guid.h"
#include "kvp_frame.h"
#include "qof.h"
#include <gmodule.h>
#include "gnc-backend-sql.h"
/**
* gnc_sql_slots_save - Saves slots for an object to the db.
@ -69,7 +72,6 @@ void gnc_sql_slots_load( GncSqlBackend* be, QofInstance* inst );
*/
void gnc_sql_slots_load_for_list( GncSqlBackend* be, GList* list );
typedef QofInstance* (*BookLookupFn)( const GncGUID* guid, const QofBook* book );
/**
@ -86,4 +88,4 @@ void gnc_sql_slots_load_for_sql_subquery( GncSqlBackend* be, const gchar* subque
void gnc_sql_init_slots_handler( void );
#endif /* GNC_SLOTS_SQL_H_ */
#endif /* GNC_SLOTS_SQL_H */

View File

@ -26,11 +26,13 @@
* restoring data to/from an SQL database
*/
#ifndef GNC_TRANSACTION_SQL_H_
#define GNC_TRANSACTION_SQL_H_
#ifndef GNC_TRANSACTION_SQL_H
#define GNC_TRANSACTION_SQL_H
#include "gnc-backend-sql.h"
#include "Transaction.h"
#include "qof.h"
#include <gmodule.h>
#include "Account.h"
void gnc_sql_init_transaction_handler( void );
@ -84,4 +86,4 @@ typedef struct
/*@ null @*/
GSList* gnc_sql_get_account_balances_slist( GncSqlBackend* be );
#endif /* GNC_TRANSACTION_SQL_H_ */
#endif /* GNC_TRANSACTION_SQL_H */