QOF iteration and callbacks

Linas Vepstas linas at linas.org
Sun Jun 20 12:11:04 EDT 2004


On Sun, Jun 20, 2004 at 12:02:28PM -0400, Derek Atkins was heard to remark:
> 
> The idea here is a general BookMerge, to allow you to combine two
> books together.  This has many purposes:

Ahh, OK, that makes sense. I've sort-of wanted that feature for a 
while. (well, for gnotime, actually, but ... hey.)

Anyway, I have now checked into the cvs head branch the following:


/** Type definition for the class callback function. */
typedef void (*QofClassForeachCB) (QofIdTypeConst, gpointer);
                                                                                
/** Call the callback once for each object class that is registered
 *  with the system.  The 'user_data' is passed back to the callback.
 */
void qof_class_foreach (QofClassForeachCB, gpointer user_data);
                                                                                
/** Type definition for the paramter callback function. */
typedef void (*QofParamForeachCB) (QofParam *, gpointer user_data);
                                                                                
/** Call the callback once for each parameter on the indicated
 *  object class.  The 'user_data' is passed back to the callback.
 */
void qof_class_param_foreach (QofIdTypeConst obj_name,
                              QofParamForeachCB, gpointer user_data);
                                                                                
--linas                                                                                

-- 
pub  1024D/01045933 2001-02-01 Linas Vepstas (Labas!) <linas at linas.org>
PGP Key fingerprint = 8305 2521 6000 0B5E 8984  3F54 64A9 9A82 0104 5933


More information about the gnucash-devel mailing list