mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
the init/.shutdown functions shouldn't be private
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8808 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
a59bc5a754
commit
55778231da
@ -280,7 +280,7 @@ qof_book_get_counter (QofBook *book, const char *counter_name)
|
|||||||
return counter;
|
return counter;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* gncObject function implementation and registration */
|
/* QofObject function implementation and registration */
|
||||||
gboolean qof_book_register (void)
|
gboolean qof_book_register (void)
|
||||||
{
|
{
|
||||||
static QofQueryObject params[] = {
|
static QofQueryObject params[] = {
|
||||||
|
@ -48,6 +48,9 @@ typedef struct _QofBook QofBook;
|
|||||||
/** GList of QofBook */
|
/** GList of QofBook */
|
||||||
typedef GList QofBookList;
|
typedef GList QofBookList;
|
||||||
|
|
||||||
|
/** Register the book boject with the QOF object system. */
|
||||||
|
gboolean qof_book_register (void);
|
||||||
|
|
||||||
/** Allocate, initialise and return a new QofBook. Books contain references
|
/** Allocate, initialise and return a new QofBook. Books contain references
|
||||||
* to all of the top-level object containers. */
|
* to all of the top-level object containers. */
|
||||||
QofBook * qof_book_new (void);
|
QofBook * qof_book_new (void);
|
||||||
|
@ -32,11 +32,6 @@
|
|||||||
#include "qofbook.h"
|
#include "qofbook.h"
|
||||||
#include "qofobject.h"
|
#include "qofobject.h"
|
||||||
|
|
||||||
/* Initialize the object registration subsystem */
|
|
||||||
void qof_object_initialize (void);
|
|
||||||
void qof_object_shutdown (void);
|
|
||||||
|
|
||||||
/* Note that the following are per-class and not per-instance */
|
|
||||||
/* To be called from within the book */
|
/* To be called from within the book */
|
||||||
void qof_object_book_begin (QofBook *book);
|
void qof_object_book_begin (QofBook *book);
|
||||||
void qof_object_book_end (QofBook *book);
|
void qof_object_book_end (QofBook *book);
|
||||||
|
@ -73,6 +73,13 @@ struct _QofObject {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* -------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/** Initialize the object registration subsystem */
|
||||||
|
void qof_object_initialize (void);
|
||||||
|
void qof_object_shutdown (void);
|
||||||
|
|
||||||
|
|
||||||
void qof_object_foreach_type (QofForeachTypeCB cb, gpointer user_data);
|
void qof_object_foreach_type (QofForeachTypeCB cb, gpointer user_data);
|
||||||
|
|
||||||
void qof_object_foreach (QofIdTypeConst type_name, QofBook *book,
|
void qof_object_foreach (QofIdTypeConst type_name, QofBook *book,
|
||||||
|
@ -29,10 +29,6 @@
|
|||||||
typedef struct _QofQueryTerm QofQueryTerm;
|
typedef struct _QofQueryTerm QofQueryTerm;
|
||||||
typedef struct _QofQuerySort QofQuerySort;
|
typedef struct _QofQuerySort QofQuerySort;
|
||||||
|
|
||||||
/* Initialize/Shutdown */
|
|
||||||
void qof_query_init (void);
|
|
||||||
void qof_query_shutdown (void);
|
|
||||||
|
|
||||||
/* Functions to get Query information */
|
/* Functions to get Query information */
|
||||||
int qof_query_get_max_results (QofQuery *q);
|
int qof_query_get_max_results (QofQuery *q);
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ typedef enum {
|
|||||||
#define QOF_QUERY_FIRST_TERM QOF_QUERY_AND
|
#define QOF_QUERY_FIRST_TERM QOF_QUERY_AND
|
||||||
|
|
||||||
/** Default sort object type */
|
/** Default sort object type */
|
||||||
#define QUERY_DEFAULT_SORT "GnucashQueryDefaultSortObject"
|
#define QUERY_DEFAULT_SORT "QofQueryDefaultSort"
|
||||||
|
|
||||||
/** "Known" Object Parameters -- all objects must support these */
|
/** "Known" Object Parameters -- all objects must support these */
|
||||||
#define QOF_QUERY_PARAM_BOOK "book"
|
#define QOF_QUERY_PARAM_BOOK "book"
|
||||||
@ -57,6 +57,13 @@ typedef enum {
|
|||||||
#define QOF_QUERY_PARAM_ACTIVE "active" /* it's ok if an object does
|
#define QOF_QUERY_PARAM_ACTIVE "active" /* it's ok if an object does
|
||||||
* not support this */
|
* not support this */
|
||||||
|
|
||||||
|
/* --------------------------------------------------------- */
|
||||||
|
/** Startup and Shutdown */
|
||||||
|
|
||||||
|
void qof_query_init (void);
|
||||||
|
void qof_query_shutdown (void);
|
||||||
|
|
||||||
|
/* --------------------------------------------------------- */
|
||||||
/** Basic API Functions */
|
/** Basic API Functions */
|
||||||
|
|
||||||
GSList * qof_query_build_param_list (char const *param, ...);
|
GSList * qof_query_build_param_list (char const *param, ...);
|
||||||
|
@ -243,10 +243,10 @@ foreach (@files)
|
|||||||
s/getDateFormat/qof_date_format_get/g;
|
s/getDateFormat/qof_date_format_get/g;
|
||||||
s/setDateFormat/qof_date_format_set/g;
|
s/setDateFormat/qof_date_format_set/g;
|
||||||
s/DateFormat/QofDateFormat/g;
|
s/DateFormat/QofDateFormat/g;
|
||||||
s/printDateSecs/qof_print_date_secs_buff/g;
|
s/printDateSecs/qof_print_date_buff/g;
|
||||||
s/printDate/qof_print_date_buff/g;
|
s/printDate/qof_print_date_dmy_buff/g;
|
||||||
s/printGDate/qof_print_gdate/g;
|
s/printGDate/qof_print_gdate/g;
|
||||||
s/xaccPrintDateSecs/qof_print_date_secs/g;
|
s/xaccPrintDateSecs/qof_print_date/g;
|
||||||
s/scanDate/qof_scan_date/g;
|
s/scanDate/qof_scan_date/g;
|
||||||
s/DATE_FORMAT_US/QOF_DATE_FORMAT_US/g;
|
s/DATE_FORMAT_US/QOF_DATE_FORMAT_US/g;
|
||||||
s/DATE_FORMAT_UK/QOF_DATE_FORMAT_UK/g;
|
s/DATE_FORMAT_UK/QOF_DATE_FORMAT_UK/g;
|
||||||
|
Loading…
Reference in New Issue
Block a user