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)
Returns a GList of all objects of the given type_name in the given book, but each object is wrapped i...
Business Interface: Object OWNERs.
gboolean gncBusinessIsPaymentAcctType(GNCAccountType type)
Returns whether the given account type is a valid type to use in business payments.
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...
void qofOwnerSetEntity(GncOwner *owner, QofInstance *ent)
set the owner from the entity.
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.
– Business Helper Functions
gpointer(* QofAccessFunc)(gpointer object, const QofParam *param)
The QofAccessFunc defines an arbitrary function pointer for access functions.
GNCAccountType
The account types are used to determine how the transaction data in the account is displayed...
GList * gncBusinessGetList(QofBook *book, QofIdTypeConst type_name, gboolean all_including_inactive)
Returns a GList of all objects of the given type_name in the given book.
GncOwner * gncOwnerNew(void)
These two functions are mainly for the convenience of scheme code.
gboolean xaccAccountIsEquityType(GNCAccountType t)
Convenience function to check if the account is a valid Equity type.