37 static void get_list_cb (
QofInstance *inst, gpointer user_data)
40 if (!data->is_active_accessor_func || data->is_active_accessor_func(inst, NULL))
41 data->result = g_list_prepend(data->result, inst);
46 gboolean all_including_inactive)
50 data.is_active_accessor_func = NULL;
52 if (!all_including_inactive)
54 data.is_active_accessor_func =
63 static void get_ownerlist_cb (
QofInstance *inst, gpointer user_data)
66 if (!data->is_active_accessor_func || data->is_active_accessor_func(inst, NULL))
70 data->result = g_list_prepend(data->result, owner);
75 gboolean all_including_inactive)
79 data.is_active_accessor_func = NULL;
81 if (!all_including_inactive)
83 data.is_active_accessor_func =
OwnerList * gncBusinessGetOwnerList(QofBook *book, QofIdTypeConst type_name, gboolean all_including_inactive)
Business Interface: Object OWNERs.
gpointer(* QofAccessFunc)(gpointer object, const QofParam *param)
QofAccessFunc qof_class_get_parameter_getter(QofIdTypeConst obj_name, const char *parameter)
void qofOwnerSetEntity(GncOwner *owner, QofInstance *ent)
void qof_object_foreach(QofIdTypeConst type_name, QofBook *book, QofInstanceForeachCB cb, gpointer user_data)
GList * gncBusinessGetList(QofBook *book, QofIdTypeConst type_name, gboolean all_including_inactive)
GncOwner * gncOwnerNew(void)