37static 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);
45GList * gncBusinessGetList (
QofBook *book,
const char *type_name,
46 gboolean all_including_inactive)
50 data.is_active_accessor_func = NULL;
52 if (!all_including_inactive)
54 data.is_active_accessor_func =
63static 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);
74GList * gncBusinessGetOwnerList (
QofBook *book,
const char *type_name,
75 gboolean all_including_inactive)
79 data.is_active_accessor_func = NULL;
81 if (!all_including_inactive)
83 data.is_active_accessor_func =
-- Business Helper Functions
Business Interface: Object OWNERs.
GNCAccountType
The account types are used to determine how the transaction data in the account is displayed.
gpointer(* QofAccessFunc)(gpointer object, const QofParam *param)
The QofAccessFunc defines an arbitrary function pointer for access functions.
QofAccessFunc qof_class_get_parameter_getter(QofIdTypeConst obj_name, const char *parameter)
Return the object's parameter getter function.
gboolean xaccAccountIsAssetLiabType(GNCAccountType t)
Convenience function to check if the account is a valid Asset or Liability type, but not a business a...
gboolean xaccAccountIsEquityType(GNCAccountType t)
Convenience function to check if the account is a valid Equity type.
void qof_object_foreach(QofIdTypeConst type_name, QofBook *book, QofInstanceForeachCB cb, gpointer user_data)
Invoke the callback 'cb' on every instance ov a particular object type.
GncOwner * gncOwnerNew(void)
These two functions are mainly for the convenience of scheme code.
void qofOwnerSetEntity(GncOwner *owner, QofInstance *ent)
set the owner from the entity.