git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8690 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2003-06-25 02:27:22 +00:00
parent 5770f0ca0d
commit a84a032a6a
4 changed files with 16 additions and 13 deletions

View File

@ -693,7 +693,7 @@ GList * gncQueryRun (QueryNew *q)
}
/* and then iterate over all the objects */
gncObjectForeach (q->search_for, book, check_item_cb, &qcb);
qof_object_foreach (q->search_for, book, check_item_cb, &qcb);
}
matching_objects = qcb.list;

View File

@ -16,3 +16,6 @@
#define gncObjectIsDirty qof_object_is_dirty
#define gncObjectMarkClean qof_object_mark_clean
#define gncObjectForeachType qof_object_foreach_type
#define gncObjectForeach qof_object_foreach
#define gncObjectPrintable qof_object_printable

View File

@ -1,5 +1,5 @@
/********************************************************************\
* gncObject.c -- the Core Object Registration/Lookup Interface *
* qofobject.c -- the Core Object Registration/Lookup Interface *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License as *
* published by the Free Software Foundation; either version 2 of *
@ -19,7 +19,7 @@
* *
\********************************************************************/
/*
* gncObject.c -- the Core Object Object Registry
* qofobject.c -- the Core Object Object Registry
* Copyright (C) 2001 Derek Atkins
* Author: Derek Atkins <warlord@MIT.EDU>
*/
@ -94,7 +94,7 @@ void qof_object_mark_clean (QofBook *book)
}
}
void gncObjectForeachType (foreachTypeCB cb, gpointer user_data)
void qof_object_foreach_type (foreachTypeCB cb, gpointer user_data)
{
GList *l;
@ -106,7 +106,7 @@ void gncObjectForeachType (foreachTypeCB cb, gpointer user_data)
}
}
void gncObjectForeach (GNCIdTypeConst type_name, QofBook *book,
void qof_object_foreach (GNCIdTypeConst type_name, QofBook *book,
foreachObjectCB cb, gpointer user_data)
{
const QofObject *obj;
@ -123,7 +123,7 @@ void gncObjectForeach (GNCIdTypeConst type_name, QofBook *book,
}
const char *
gncObjectPrintable (GNCIdTypeConst type_name, gpointer obj)
qof_object_printable (GNCIdTypeConst type_name, gpointer obj)
{
const QofObject *b_obj;
@ -224,7 +224,7 @@ const QofObject * qof_object_lookup (GNCIdTypeConst name)
return NULL;
}
gboolean qof_object_registerBackend (GNCIdTypeConst type_name,
gboolean qof_object_register_backend (GNCIdTypeConst type_name,
const char *backend_name,
gpointer be_data)
{
@ -250,7 +250,7 @@ gboolean qof_object_registerBackend (GNCIdTypeConst type_name,
return TRUE;
}
gpointer qof_object_lookupBackend (GNCIdTypeConst type_name,
gpointer qof_object_lookup_backend (GNCIdTypeConst type_name,
const char *backend_name)
{
GHashTable *ht;

View File

@ -74,12 +74,12 @@ struct _QofObject {
};
void gncObjectForeachType (foreachTypeCB cb, gpointer user_data);
void qof_object_foreach_type (foreachTypeCB cb, gpointer user_data);
void gncObjectForeach (GNCIdTypeConst type_name, QofBook *book,
void qof_object_foreach (GNCIdTypeConst type_name, QofBook *book,
foreachObjectCB cb, gpointer user_data);
const char * gncObjectPrintable (GNCIdTypeConst type_name, gpointer obj);
const char * qof_object_printable (GNCIdTypeConst type_name, gpointer obj);
/* REGISTRATION AND REG-LOOKUP FUNCTIONS */
@ -97,11 +97,11 @@ const QofObject * qof_object_lookup (GNCIdTypeConst type_name);
/** Register and lookup backend-specific data for this particular object */
gboolean qof_object_registerBackend (GNCIdTypeConst type_name,
gboolean qof_object_register_backend (GNCIdTypeConst type_name,
const char *backend_name,
gpointer be_data);
gpointer qof_object_lookupBackend (GNCIdTypeConst type_name,
gpointer qof_object_lookup_backend (GNCIdTypeConst type_name,
const char *backend_name);
void qof_object_foreach_backend (const char *backend_name,