mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Removing another deprecated #define
kvp_frame should not be used by C code, but rather the standard KvpFrame. The deprecated value just adds one more name for this class that doesn't add any value.
This commit is contained in:
parent
09e1f09118
commit
fabbfdb054
@ -274,7 +274,7 @@ gnc_option_db_new_for_type(QofIdType id_type)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
gnc_option_db_load_from_kvp(GNCOptionDB* odb, kvp_frame *slots)
|
gnc_option_db_load_from_kvp(GNCOptionDB* odb, KvpFrame *slots)
|
||||||
{
|
{
|
||||||
static SCM kvp_to_scm = SCM_UNDEFINED;
|
static SCM kvp_to_scm = SCM_UNDEFINED;
|
||||||
static SCM kvp_option_path = SCM_UNDEFINED;
|
static SCM kvp_option_path = SCM_UNDEFINED;
|
||||||
@ -308,7 +308,7 @@ gnc_option_db_load_from_kvp(GNCOptionDB* odb, kvp_frame *slots)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
gnc_option_db_save_to_kvp(GNCOptionDB* odb, kvp_frame *slots, gboolean clear_kvp)
|
gnc_option_db_save_to_kvp(GNCOptionDB* odb, KvpFrame *slots, gboolean clear_kvp)
|
||||||
{
|
{
|
||||||
static SCM scm_to_kvp = SCM_UNDEFINED;
|
static SCM scm_to_kvp = SCM_UNDEFINED;
|
||||||
static SCM kvp_option_path = SCM_UNDEFINED;
|
static SCM kvp_option_path = SCM_UNDEFINED;
|
||||||
|
@ -70,8 +70,8 @@ void gnc_option_db_destroy(GNCOptionDB *odb);
|
|||||||
* in the kvp.
|
* in the kvp.
|
||||||
*/
|
*/
|
||||||
GNCOptionDB * gnc_option_db_new_for_type(QofIdType id_type);
|
GNCOptionDB * gnc_option_db_new_for_type(QofIdType id_type);
|
||||||
void gnc_option_db_load_from_kvp(GNCOptionDB* odb, kvp_frame *slots);
|
void gnc_option_db_load_from_kvp(GNCOptionDB* odb, KvpFrame *slots);
|
||||||
void gnc_option_db_save_to_kvp(GNCOptionDB* odb, kvp_frame *slots, gboolean clear_kvp);
|
void gnc_option_db_save_to_kvp(GNCOptionDB* odb, KvpFrame *slots, gboolean clear_kvp);
|
||||||
|
|
||||||
void gnc_register_kvp_option_generator(QofIdType id_type, SCM generator);
|
void gnc_register_kvp_option_generator(QofIdType id_type, SCM generator);
|
||||||
SCM gnc_make_kvp_options(QofIdType id_type);
|
SCM gnc_make_kvp_options(QofIdType id_type);
|
||||||
|
@ -80,7 +80,7 @@ gnc_account_dom_tree_create(Account *act,
|
|||||||
gboolean allow_incompat)
|
gboolean allow_incompat)
|
||||||
{
|
{
|
||||||
const char *str;
|
const char *str;
|
||||||
kvp_frame *kf;
|
KvpFrame *kf;
|
||||||
xmlNodePtr ret;
|
xmlNodePtr ret;
|
||||||
GList *lots, *n;
|
GList *lots, *n;
|
||||||
Account *parent;
|
Account *parent;
|
||||||
|
@ -72,7 +72,7 @@ xmlNodePtr
|
|||||||
gnc_address_to_dom_tree (const char *tag, GncAddress *addr)
|
gnc_address_to_dom_tree (const char *tag, GncAddress *addr)
|
||||||
{
|
{
|
||||||
xmlNodePtr ret;
|
xmlNodePtr ret;
|
||||||
kvp_frame *kf;
|
KvpFrame *kf;
|
||||||
|
|
||||||
ret = xmlNewNode(NULL, BAD_CAST tag);
|
ret = xmlNewNode(NULL, BAD_CAST tag);
|
||||||
xmlSetProp(ret, BAD_CAST "version", BAD_CAST address_version_string);
|
xmlSetProp(ret, BAD_CAST "version", BAD_CAST address_version_string);
|
||||||
|
@ -118,7 +118,7 @@ entry_dom_tree_create (GncEntry *entry)
|
|||||||
GncTaxTable *taxtable;
|
GncTaxTable *taxtable;
|
||||||
GncOrder *order;
|
GncOrder *order;
|
||||||
GncInvoice *invoice;
|
GncInvoice *invoice;
|
||||||
kvp_frame *kf;
|
KvpFrame *kf;
|
||||||
|
|
||||||
ret = xmlNewNode(NULL, BAD_CAST gnc_entry_string);
|
ret = xmlNewNode(NULL, BAD_CAST gnc_entry_string);
|
||||||
xmlSetProp(ret, BAD_CAST "version", BAD_CAST entry_version_string);
|
xmlSetProp(ret, BAD_CAST "version", BAD_CAST entry_version_string);
|
||||||
|
@ -93,7 +93,7 @@ static xmlNodePtr
|
|||||||
invoice_dom_tree_create (GncInvoice *invoice)
|
invoice_dom_tree_create (GncInvoice *invoice)
|
||||||
{
|
{
|
||||||
xmlNodePtr ret;
|
xmlNodePtr ret;
|
||||||
kvp_frame *kf;
|
KvpFrame *kf;
|
||||||
Timespec ts;
|
Timespec ts;
|
||||||
Transaction *txn;
|
Transaction *txn;
|
||||||
GNCLot *lot;
|
GNCLot *lot;
|
||||||
|
@ -69,7 +69,7 @@ static xmlNodePtr
|
|||||||
job_dom_tree_create (GncJob *job)
|
job_dom_tree_create (GncJob *job)
|
||||||
{
|
{
|
||||||
xmlNodePtr ret;
|
xmlNodePtr ret;
|
||||||
kvp_frame *kf;
|
KvpFrame *kf;
|
||||||
|
|
||||||
ret = xmlNewNode(NULL, BAD_CAST gnc_job_string);
|
ret = xmlNewNode(NULL, BAD_CAST gnc_job_string);
|
||||||
xmlSetProp(ret, BAD_CAST "version", BAD_CAST job_version_string);
|
xmlSetProp(ret, BAD_CAST "version", BAD_CAST job_version_string);
|
||||||
|
@ -60,7 +60,7 @@ xmlNodePtr
|
|||||||
gnc_lot_dom_tree_create(GNCLot *lot)
|
gnc_lot_dom_tree_create(GNCLot *lot)
|
||||||
{
|
{
|
||||||
xmlNodePtr ret;
|
xmlNodePtr ret;
|
||||||
kvp_frame *kf;
|
KvpFrame *kf;
|
||||||
|
|
||||||
ENTER("(lot=%p)", lot);
|
ENTER("(lot=%p)", lot);
|
||||||
ret = xmlNewNode(NULL, BAD_CAST gnc_lot_string);
|
ret = xmlNewNode(NULL, BAD_CAST gnc_lot_string);
|
||||||
|
@ -79,7 +79,7 @@ order_dom_tree_create (GncOrder *order)
|
|||||||
{
|
{
|
||||||
xmlNodePtr ret;
|
xmlNodePtr ret;
|
||||||
Timespec ts;
|
Timespec ts;
|
||||||
kvp_frame *kf;
|
KvpFrame *kf;
|
||||||
|
|
||||||
ret = xmlNewNode(NULL, BAD_CAST gnc_order_string);
|
ret = xmlNewNode(NULL, BAD_CAST gnc_order_string);
|
||||||
xmlSetProp(ret, BAD_CAST "version", BAD_CAST order_version_string);
|
xmlSetProp(ret, BAD_CAST "version", BAD_CAST order_version_string);
|
||||||
|
@ -107,7 +107,7 @@ taxtable_dom_tree_create (GncTaxTable *table)
|
|||||||
{
|
{
|
||||||
xmlNodePtr ret, entries;
|
xmlNodePtr ret, entries;
|
||||||
GList *list;
|
GList *list;
|
||||||
kvp_frame *kf;
|
KvpFrame *kf;
|
||||||
|
|
||||||
ret = xmlNewNode(NULL, BAD_CAST gnc_taxtable_string);
|
ret = xmlNewNode(NULL, BAD_CAST gnc_taxtable_string);
|
||||||
xmlSetProp(ret, BAD_CAST "version", BAD_CAST taxtable_version_string);
|
xmlSetProp(ret, BAD_CAST "version", BAD_CAST taxtable_version_string);
|
||||||
|
@ -413,8 +413,8 @@ gnc_is_xml_data_file(const gchar *filename)
|
|||||||
</s>
|
</s>
|
||||||
</kvp-frame>
|
</kvp-frame>
|
||||||
|
|
||||||
and return a kvp_frame*. The start handler for the top allocates
|
and return a KvpFrame*. The start handler for the top allocates
|
||||||
the kvp_frame* and passes it to the children. The <s> blocks add
|
the KvpFrame* and passes it to the children. The <s> blocks add
|
||||||
slots according to their <k> (key) and value blocks.
|
slots according to their <k> (key) and value blocks.
|
||||||
|
|
||||||
FIXME: right now this is totally inappropriate for cases where we
|
FIXME: right now this is totally inappropriate for cases where we
|
||||||
@ -738,7 +738,7 @@ glist_kvp_value_parser_new(sixtp *kvp_frame_parser)
|
|||||||
|
|
||||||
kvp-frame slot handler.
|
kvp-frame slot handler.
|
||||||
|
|
||||||
input: kvp_frame*
|
input: KvpFrame*
|
||||||
returns: NA
|
returns: NA
|
||||||
|
|
||||||
start: NA
|
start: NA
|
||||||
@ -759,7 +759,7 @@ kvp_frame_slot_end_handler(gpointer data_for_children,
|
|||||||
gpointer parent_data, gpointer global_data,
|
gpointer parent_data, gpointer global_data,
|
||||||
gpointer *result, const gchar *tag)
|
gpointer *result, const gchar *tag)
|
||||||
{
|
{
|
||||||
kvp_frame *f = (kvp_frame *) parent_data;
|
KvpFrame *f = (KvpFrame *) parent_data;
|
||||||
GSList *lp;
|
GSList *lp;
|
||||||
guint64 key_node_count;
|
guint64 key_node_count;
|
||||||
gchar *key = NULL;
|
gchar *key = NULL;
|
||||||
@ -787,7 +787,7 @@ kvp_frame_slot_end_handler(gpointer data_for_children,
|
|||||||
{
|
{
|
||||||
if (is_child_result_from_node_named(cr, "frame"))
|
if (is_child_result_from_node_named(cr, "frame"))
|
||||||
{
|
{
|
||||||
kvp_frame *frame = cr->data;
|
KvpFrame *frame = cr->data;
|
||||||
value = kvp_value_new_frame (frame);
|
value = kvp_value_new_frame (frame);
|
||||||
delete_value = TRUE;
|
delete_value = TRUE;
|
||||||
}
|
}
|
||||||
@ -858,16 +858,16 @@ kvp_frame_slot_parser_new(sixtp *kvp_frame_parser)
|
|||||||
/* <kvp-frame> - can be used anywhere.
|
/* <kvp-frame> - can be used anywhere.
|
||||||
|
|
||||||
input: NA
|
input: NA
|
||||||
returns: kvp_frame*
|
returns: KvpFrame*
|
||||||
|
|
||||||
start: Allocates kvp_frame* and places in data_for_children.
|
start: Allocates KvpFrame* and places in data_for_children.
|
||||||
characters: none (whitespace only).
|
characters: none (whitespace only).
|
||||||
end: put kvp_frame* into result if everything's OK.
|
end: put KvpFrame* into result if everything's OK.
|
||||||
|
|
||||||
cleanup-result: delete kvp_frame*
|
cleanup-result: delete KvpFrame*
|
||||||
cleanup-chars: NA
|
cleanup-chars: NA
|
||||||
fail: delete kvp_frame*
|
fail: delete KvpFrame*
|
||||||
result-fail: delete kvp_frame*
|
result-fail: delete KvpFrame*
|
||||||
chars-fail: NA
|
chars-fail: NA
|
||||||
|
|
||||||
*/
|
*/
|
||||||
@ -877,7 +877,7 @@ kvp_frame_start_handler(GSList* sibling_data, gpointer parent_data,
|
|||||||
gpointer global_data, gpointer *data_for_children,
|
gpointer global_data, gpointer *data_for_children,
|
||||||
gpointer *result, const gchar *tag, gchar **attrs)
|
gpointer *result, const gchar *tag, gchar **attrs)
|
||||||
{
|
{
|
||||||
kvp_frame *f = kvp_frame_new();
|
KvpFrame *f = kvp_frame_new();
|
||||||
g_return_val_if_fail(f, FALSE);
|
g_return_val_if_fail(f, FALSE);
|
||||||
*data_for_children = f;
|
*data_for_children = f;
|
||||||
return(TRUE);
|
return(TRUE);
|
||||||
@ -889,7 +889,7 @@ kvp_frame_end_handler(gpointer data_for_children,
|
|||||||
gpointer parent_data, gpointer global_data,
|
gpointer parent_data, gpointer global_data,
|
||||||
gpointer *result, const gchar *tag)
|
gpointer *result, const gchar *tag)
|
||||||
{
|
{
|
||||||
kvp_frame *f = (kvp_frame *) data_for_children;
|
KvpFrame *f = (KvpFrame *) data_for_children;
|
||||||
g_return_val_if_fail(f, FALSE);
|
g_return_val_if_fail(f, FALSE);
|
||||||
*result = f;
|
*result = f;
|
||||||
return(TRUE);
|
return(TRUE);
|
||||||
@ -904,14 +904,14 @@ kvp_frame_fail_handler(gpointer data_for_children,
|
|||||||
gpointer *result,
|
gpointer *result,
|
||||||
const gchar *tag)
|
const gchar *tag)
|
||||||
{
|
{
|
||||||
kvp_frame *f = (kvp_frame *) data_for_children;
|
KvpFrame *f = (KvpFrame *) data_for_children;
|
||||||
if (f) kvp_frame_delete(f);
|
if (f) kvp_frame_delete(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
kvp_frame_result_cleanup(sixtp_child_result *cr)
|
kvp_frame_result_cleanup(sixtp_child_result *cr)
|
||||||
{
|
{
|
||||||
kvp_frame *f = (kvp_frame *) cr->data;;
|
KvpFrame *f = (KvpFrame *) cr->data;;
|
||||||
if (f) kvp_frame_delete(f);
|
if (f) kvp_frame_delete(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1244,7 +1244,7 @@ account_restore_after_child_handler(gpointer data_for_children,
|
|||||||
if (child_result->type != SIXTP_CHILD_RESULT_NODE) return(TRUE);
|
if (child_result->type != SIXTP_CHILD_RESULT_NODE) return(TRUE);
|
||||||
if (strcmp(child_result->tag, "slots") == 0)
|
if (strcmp(child_result->tag, "slots") == 0)
|
||||||
{
|
{
|
||||||
kvp_frame *f = (kvp_frame *) child_result->data;
|
KvpFrame *f = (KvpFrame *) child_result->data;
|
||||||
g_return_val_if_fail(f, FALSE);
|
g_return_val_if_fail(f, FALSE);
|
||||||
if (a->inst.kvp_data) kvp_frame_delete(a->inst.kvp_data);
|
if (a->inst.kvp_data) kvp_frame_delete(a->inst.kvp_data);
|
||||||
a->inst.kvp_data = f;
|
a->inst.kvp_data = f;
|
||||||
@ -2173,7 +2173,7 @@ txn_restore_after_child_handler(gpointer data_for_children,
|
|||||||
if (child_result->type != SIXTP_CHILD_RESULT_NODE) return(TRUE);
|
if (child_result->type != SIXTP_CHILD_RESULT_NODE) return(TRUE);
|
||||||
if (strcmp(child_result->tag, "slots") == 0)
|
if (strcmp(child_result->tag, "slots") == 0)
|
||||||
{
|
{
|
||||||
kvp_frame *f = (kvp_frame *) child_result->data;
|
KvpFrame *f = (KvpFrame *) child_result->data;
|
||||||
g_return_val_if_fail(f, FALSE);
|
g_return_val_if_fail(f, FALSE);
|
||||||
qof_instance_set_slots(QOF_INSTANCE(trans), f);
|
qof_instance_set_slots(QOF_INSTANCE(trans), f);
|
||||||
child_result->should_cleanup = FALSE;
|
child_result->should_cleanup = FALSE;
|
||||||
@ -2478,7 +2478,7 @@ txn_restore_split_after_child_handler(gpointer data_for_children,
|
|||||||
|
|
||||||
if (strcmp(child_result->tag, "slots") == 0)
|
if (strcmp(child_result->tag, "slots") == 0)
|
||||||
{
|
{
|
||||||
kvp_frame *f = (kvp_frame *) child_result->data;
|
KvpFrame *f = (KvpFrame *) child_result->data;
|
||||||
g_return_val_if_fail(f, FALSE);
|
g_return_val_if_fail(f, FALSE);
|
||||||
if (s->inst.kvp_data) kvp_frame_delete(s->inst.kvp_data);
|
if (s->inst.kvp_data) kvp_frame_delete(s->inst.kvp_data);
|
||||||
s->inst.kvp_data = f;
|
s->inst.kvp_data = f;
|
||||||
|
@ -341,7 +341,7 @@ add_kvp_value_node(xmlNodePtr node, gchar *tag, KvpValue* val)
|
|||||||
break;
|
break;
|
||||||
case KVP_TYPE_FRAME:
|
case KVP_TYPE_FRAME:
|
||||||
{
|
{
|
||||||
kvp_frame *frame;
|
KvpFrame *frame;
|
||||||
|
|
||||||
xmlSetProp(val_node, BAD_CAST "type", BAD_CAST "frame");
|
xmlSetProp(val_node, BAD_CAST "type", BAD_CAST "frame");
|
||||||
|
|
||||||
@ -373,7 +373,7 @@ add_kvp_slot(gpointer key, gpointer value, gpointer data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
xmlNodePtr
|
xmlNodePtr
|
||||||
kvp_frame_to_dom_tree(const char *tag, const kvp_frame *frame)
|
kvp_frame_to_dom_tree(const char *tag, const KvpFrame *frame)
|
||||||
{
|
{
|
||||||
xmlNodePtr ret;
|
xmlNodePtr ret;
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ gchar * timespec_nsec_to_string(const Timespec *ts);
|
|||||||
gchar * timespec_sec_to_string(const Timespec *ts);
|
gchar * timespec_sec_to_string(const Timespec *ts);
|
||||||
xmlNodePtr gdate_to_dom_tree(const char *tag, const GDate *spec);
|
xmlNodePtr gdate_to_dom_tree(const char *tag, const GDate *spec);
|
||||||
xmlNodePtr gnc_numeric_to_dom_tree(const char *tag, const gnc_numeric *num);
|
xmlNodePtr gnc_numeric_to_dom_tree(const char *tag, const gnc_numeric *num);
|
||||||
xmlNodePtr kvp_frame_to_dom_tree(const char *tag, const kvp_frame *frame);
|
xmlNodePtr kvp_frame_to_dom_tree(const char *tag, const KvpFrame *frame);
|
||||||
xmlNodePtr guint_to_dom_tree(const char *tag, guint an_int);
|
xmlNodePtr guint_to_dom_tree(const char *tag, guint an_int);
|
||||||
xmlNodePtr recurrence_to_dom_tree(const gchar *tag, const Recurrence *r);
|
xmlNodePtr recurrence_to_dom_tree(const gchar *tag, const Recurrence *r);
|
||||||
|
|
||||||
|
@ -332,7 +332,7 @@ dom_tree_to_list_kvp_value(xmlNodePtr node)
|
|||||||
KvpValue*
|
KvpValue*
|
||||||
dom_tree_to_frame_kvp_value(xmlNodePtr node)
|
dom_tree_to_frame_kvp_value(xmlNodePtr node)
|
||||||
{
|
{
|
||||||
kvp_frame *frame;
|
KvpFrame *frame;
|
||||||
KvpValue *ret = NULL;
|
KvpValue *ret = NULL;
|
||||||
|
|
||||||
frame = dom_tree_to_kvp_frame(node);
|
frame = dom_tree_to_kvp_frame(node);
|
||||||
@ -404,7 +404,7 @@ dom_tree_to_kvp_value(xmlNodePtr node)
|
|||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
dom_tree_to_kvp_frame_given(xmlNodePtr node, kvp_frame *frame)
|
dom_tree_to_kvp_frame_given(xmlNodePtr node, KvpFrame *frame)
|
||||||
{
|
{
|
||||||
xmlNodePtr mark;
|
xmlNodePtr mark;
|
||||||
|
|
||||||
@ -455,10 +455,10 @@ dom_tree_to_kvp_frame_given(xmlNodePtr node, kvp_frame *frame)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
kvp_frame*
|
KvpFrame*
|
||||||
dom_tree_to_kvp_frame(xmlNodePtr node)
|
dom_tree_to_kvp_frame(xmlNodePtr node)
|
||||||
{
|
{
|
||||||
kvp_frame *ret;
|
KvpFrame *ret;
|
||||||
|
|
||||||
g_return_val_if_fail(node, NULL);
|
g_return_val_if_fail(node, NULL);
|
||||||
|
|
||||||
|
@ -47,9 +47,9 @@ gnc_numeric* dom_tree_to_gnc_numeric(xmlNodePtr node);
|
|||||||
gchar * dom_tree_to_text(xmlNodePtr tree);
|
gchar * dom_tree_to_text(xmlNodePtr tree);
|
||||||
gboolean string_to_binary(const gchar *str, void **v, guint64 *data_len);
|
gboolean string_to_binary(const gchar *str, void **v, guint64 *data_len);
|
||||||
|
|
||||||
gboolean dom_tree_to_kvp_frame_given(xmlNodePtr node, kvp_frame *frame);
|
gboolean dom_tree_to_kvp_frame_given(xmlNodePtr node, KvpFrame *frame);
|
||||||
|
|
||||||
kvp_frame* dom_tree_to_kvp_frame(xmlNodePtr node);
|
KvpFrame* dom_tree_to_kvp_frame(xmlNodePtr node);
|
||||||
KvpValue* dom_tree_to_kvp_value(xmlNodePtr node);
|
KvpValue* dom_tree_to_kvp_value(xmlNodePtr node);
|
||||||
KvpValue* dom_tree_to_integer_kvp_value(xmlNodePtr node);
|
KvpValue* dom_tree_to_integer_kvp_value(xmlNodePtr node);
|
||||||
KvpValue* dom_tree_to_double_kvp_value(xmlNodePtr node);
|
KvpValue* dom_tree_to_double_kvp_value(xmlNodePtr node);
|
||||||
|
@ -239,9 +239,9 @@ equals_node_val_vs_commodity(xmlNodePtr node, const gnc_commodity *com,
|
|||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
equals_node_val_vs_kvp_frame(xmlNodePtr node, const kvp_frame *frm)
|
equals_node_val_vs_kvp_frame(xmlNodePtr node, const KvpFrame *frm)
|
||||||
{
|
{
|
||||||
kvp_frame *cmpfrm;
|
KvpFrame *cmpfrm;
|
||||||
|
|
||||||
g_return_val_if_fail(node, FALSE);
|
g_return_val_if_fail(node, FALSE);
|
||||||
g_return_val_if_fail(frm, FALSE);
|
g_return_val_if_fail(frm, FALSE);
|
||||||
|
@ -30,7 +30,7 @@ gboolean equals_node_val_vs_string(xmlNodePtr node, const gchar* str);
|
|||||||
gboolean equals_node_val_vs_guid(xmlNodePtr node, const GncGUID *id);
|
gboolean equals_node_val_vs_guid(xmlNodePtr node, const GncGUID *id);
|
||||||
gboolean equals_node_val_vs_commodity(xmlNodePtr node,
|
gboolean equals_node_val_vs_commodity(xmlNodePtr node,
|
||||||
const gnc_commodity *com, QofBook *);
|
const gnc_commodity *com, QofBook *);
|
||||||
gboolean equals_node_val_vs_kvp_frame(xmlNodePtr node, const kvp_frame *frm);
|
gboolean equals_node_val_vs_kvp_frame(xmlNodePtr node, const KvpFrame *frm);
|
||||||
gboolean equals_node_val_vs_date(xmlNodePtr node, const Timespec tm);
|
gboolean equals_node_val_vs_date(xmlNodePtr node, const Timespec tm);
|
||||||
gboolean equals_node_val_vs_int(xmlNodePtr node, gint64 val);
|
gboolean equals_node_val_vs_int(xmlNodePtr node, gint64 val);
|
||||||
gboolean equals_node_val_vs_boolean(xmlNodePtr node, gboolean val);
|
gboolean equals_node_val_vs_boolean(xmlNodePtr node, gboolean val);
|
||||||
|
@ -5014,7 +5014,7 @@ xaccAccountForEachTransaction(const Account *acc, TransactionCallback proc,
|
|||||||
|
|
||||||
typedef struct _GncImportMatchMap
|
typedef struct _GncImportMatchMap
|
||||||
{
|
{
|
||||||
kvp_frame * frame;
|
KvpFrame * frame;
|
||||||
Account * acc;
|
Account * acc;
|
||||||
QofBook * book;
|
QofBook * book;
|
||||||
} GncImportMatchMap;
|
} GncImportMatchMap;
|
||||||
@ -5035,7 +5035,7 @@ GncImportMatchMap *
|
|||||||
gnc_account_create_imap (Account *acc)
|
gnc_account_create_imap (Account *acc)
|
||||||
{
|
{
|
||||||
GncImportMatchMap *imap;
|
GncImportMatchMap *imap;
|
||||||
kvp_frame *frame;
|
KvpFrame *frame;
|
||||||
|
|
||||||
if (!acc) return NULL;
|
if (!acc) return NULL;
|
||||||
frame = qof_instance_get_slots (QOF_INSTANCE (acc));
|
frame = qof_instance_get_slots (QOF_INSTANCE (acc));
|
||||||
@ -5256,7 +5256,7 @@ gnc_imap_find_account_bayes (GncImportMatchMap *imap, GList *tokens)
|
|||||||
g_str_equal);
|
g_str_equal);
|
||||||
struct account_info account_i;
|
struct account_info account_i;
|
||||||
KvpValue* value;
|
KvpValue* value;
|
||||||
kvp_frame* token_frame;
|
KvpFrame* token_frame;
|
||||||
|
|
||||||
ENTER(" ");
|
ENTER(" ");
|
||||||
|
|
||||||
|
@ -1251,7 +1251,7 @@ xaccAccountScrubKvp (Account *account)
|
|||||||
{
|
{
|
||||||
const gchar *str;
|
const gchar *str;
|
||||||
gchar *str2;
|
gchar *str2;
|
||||||
kvp_frame *frame;
|
KvpFrame *frame;
|
||||||
|
|
||||||
if (!account) return;
|
if (!account) return;
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ typedef struct
|
|||||||
|
|
||||||
bin_data* get_random_binary_data(void);
|
bin_data* get_random_binary_data(void);
|
||||||
|
|
||||||
kvp_frame* get_random_kvp_frame(void);
|
KvpFrame* get_random_kvp_frame(void);
|
||||||
gnc_numeric get_random_gnc_numeric(void);
|
gnc_numeric get_random_gnc_numeric(void);
|
||||||
GncGUID* get_random_guid(void);
|
GncGUID* get_random_guid(void);
|
||||||
GList* get_random_glist(void);
|
GList* get_random_glist(void);
|
||||||
|
@ -118,7 +118,7 @@ gnc_ab_set_account_trans_retrieval(Account *a, Timespec time)
|
|||||||
|
|
||||||
#define AB_KEY "hbci"
|
#define AB_KEY "hbci"
|
||||||
#define AB_TEMPLATES "template-list"
|
#define AB_TEMPLATES "template-list"
|
||||||
static kvp_frame *gnc_ab_get_book_kvp(QofBook *b, gboolean create);
|
static KvpFrame *gnc_ab_get_book_kvp(QofBook *b, gboolean create);
|
||||||
|
|
||||||
|
|
||||||
/* EFFECTIVE FRIEND FUNCTION */
|
/* EFFECTIVE FRIEND FUNCTION */
|
||||||
@ -129,7 +129,7 @@ extern void qof_instance_set_dirty_flag (gconstpointer inst, gboolean flag);
|
|||||||
GList *
|
GList *
|
||||||
gnc_ab_get_book_template_list(QofBook *b)
|
gnc_ab_get_book_template_list(QofBook *b)
|
||||||
{
|
{
|
||||||
kvp_frame *frame = gnc_ab_get_book_kvp(b, FALSE);
|
KvpFrame *frame = gnc_ab_get_book_kvp(b, FALSE);
|
||||||
KvpValue *value = kvp_frame_get_slot(frame, AB_TEMPLATES);
|
KvpValue *value = kvp_frame_get_slot(frame, AB_TEMPLATES);
|
||||||
return kvp_value_get_glist(value);
|
return kvp_value_get_glist(value);
|
||||||
}
|
}
|
||||||
@ -137,17 +137,17 @@ gnc_ab_get_book_template_list(QofBook *b)
|
|||||||
void
|
void
|
||||||
gnc_ab_set_book_template_list(QofBook *b, GList *template_list)
|
gnc_ab_set_book_template_list(QofBook *b, GList *template_list)
|
||||||
{
|
{
|
||||||
kvp_frame *frame = gnc_ab_get_book_kvp(b, TRUE);
|
KvpFrame *frame = gnc_ab_get_book_kvp(b, TRUE);
|
||||||
KvpValue *value = kvp_value_new_glist_nc(template_list);
|
KvpValue *value = kvp_value_new_glist_nc(template_list);
|
||||||
kvp_frame_set_slot_nc(frame, AB_TEMPLATES, value);
|
kvp_frame_set_slot_nc(frame, AB_TEMPLATES, value);
|
||||||
qof_instance_set_dirty_flag(QOF_INSTANCE(b), TRUE);
|
qof_instance_set_dirty_flag(QOF_INSTANCE(b), TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static kvp_frame *
|
static KvpFrame *
|
||||||
gnc_ab_get_book_kvp(QofBook *b, gboolean create)
|
gnc_ab_get_book_kvp(QofBook *b, gboolean create)
|
||||||
{
|
{
|
||||||
kvp_frame *toplevel = qof_instance_get_slots(QOF_INSTANCE(b));
|
KvpFrame *toplevel = qof_instance_get_slots(QOF_INSTANCE(b));
|
||||||
kvp_frame *result = kvp_frame_get_frame(toplevel, AB_KEY);
|
KvpFrame *result = kvp_frame_get_frame(toplevel, AB_KEY);
|
||||||
if (!result && create)
|
if (!result && create)
|
||||||
{
|
{
|
||||||
result = kvp_frame_new();
|
result = kvp_frame_new();
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
/* This static indicates the debugging module that this .o belongs to. */
|
/* This static indicates the debugging module that this .o belongs to. */
|
||||||
G_GNUC_UNUSED static QofLogModule log_module = G_LOG_DOMAIN;
|
G_GNUC_UNUSED static QofLogModule log_module = G_LOG_DOMAIN;
|
||||||
|
|
||||||
/* kvp_frame slot names */
|
/* KvpFrame slot names */
|
||||||
#define TT_NAME "name"
|
#define TT_NAME "name"
|
||||||
#define TT_RNAME "rnam"
|
#define TT_RNAME "rnam"
|
||||||
#define TT_RACC "racc"
|
#define TT_RACC "racc"
|
||||||
@ -90,7 +90,7 @@ gnc_ab_trans_templ_new_full(const char *name, const char *recp_name,
|
|||||||
}
|
}
|
||||||
|
|
||||||
GncABTransTempl *
|
GncABTransTempl *
|
||||||
gnc_ab_trans_templ_new_from_kvp(const kvp_frame *k)
|
gnc_ab_trans_templ_new_from_kvp(const KvpFrame *k)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail(k, NULL);
|
g_return_val_if_fail(k, NULL);
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ gnc_ab_trans_templ_list_new_from_kvp_list(GList *v)
|
|||||||
|
|
||||||
for (iter = v; iter; iter = iter->next)
|
for (iter = v; iter; iter = iter->next)
|
||||||
{
|
{
|
||||||
kvp_frame *frame = kvp_value_get_frame((KvpValue*) iter->data);
|
KvpFrame *frame = kvp_value_get_frame((KvpValue*) iter->data);
|
||||||
res = g_list_prepend(res, gnc_ab_trans_templ_new_from_kvp(frame));
|
res = g_list_prepend(res, gnc_ab_trans_templ_new_from_kvp(frame));
|
||||||
}
|
}
|
||||||
res = g_list_reverse(res);
|
res = g_list_reverse(res);
|
||||||
@ -143,10 +143,10 @@ gnc_ab_trans_templ_list_free(GList *l)
|
|||||||
g_list_free(l);
|
g_list_free(l);
|
||||||
}
|
}
|
||||||
|
|
||||||
kvp_frame *
|
KvpFrame *
|
||||||
gnc_ab_trans_templ_to_kvp(const GncABTransTempl *t)
|
gnc_ab_trans_templ_to_kvp(const GncABTransTempl *t)
|
||||||
{
|
{
|
||||||
kvp_frame *k;
|
KvpFrame *k;
|
||||||
|
|
||||||
g_return_val_if_fail(t, NULL);
|
g_return_val_if_fail(t, NULL);
|
||||||
|
|
||||||
|
@ -67,16 +67,16 @@ GncABTransTempl *gnc_ab_trans_templ_new_full(
|
|||||||
const gchar *purpose_cont);
|
const gchar *purpose_cont);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a template, taking the values from a kvp_frame.
|
* Create a template, taking the values from a KvpFrame.
|
||||||
*
|
*
|
||||||
* @param k kvp_frame
|
* @param k KvpFrame
|
||||||
* @return A newly allocated GncABTransTempl
|
* @return A newly allocated GncABTransTempl
|
||||||
*/
|
*/
|
||||||
GncABTransTempl *gnc_ab_trans_templ_new_from_kvp(const kvp_frame *k);
|
GncABTransTempl *gnc_ab_trans_templ_new_from_kvp(const KvpFrame *k);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a list of templates from a list of kvp_values which in turn
|
* Create a list of templates from a list of kvp_values which in turn
|
||||||
* contain a kvp_frame.
|
* contain a KvpFrame.
|
||||||
*
|
*
|
||||||
* @param v GList of kvp_values
|
* @param v GList of kvp_values
|
||||||
* @return A GList of newly allocated GncABTransTempls
|
* @return A GList of newly allocated GncABTransTempls
|
||||||
@ -98,15 +98,15 @@ void gnc_ab_trans_templ_free(GncABTransTempl *t);
|
|||||||
void gnc_ab_trans_templ_list_free(GList *l);
|
void gnc_ab_trans_templ_list_free(GList *l);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a kvp_frame a given template.
|
* Create a KvpFrame a given template.
|
||||||
*
|
*
|
||||||
* @param t Template
|
* @param t Template
|
||||||
* @return A newly allocated kvp_frame
|
* @return A newly allocated KvpFrame
|
||||||
*/
|
*/
|
||||||
kvp_frame *gnc_ab_trans_templ_to_kvp(const GncABTransTempl *t);
|
KvpFrame *gnc_ab_trans_templ_to_kvp(const GncABTransTempl *t);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a list of kvp_values, which in turn contain a kvp_frame, from a list
|
* Create a list of kvp_values, which in turn contain a KvpFrame, from a list
|
||||||
* of templates.
|
* of templates.
|
||||||
*
|
*
|
||||||
* @param k GList of GncABTransTempls
|
* @param k GList of GncABTransTempls
|
||||||
|
@ -107,8 +107,7 @@ typedef enum
|
|||||||
/** \deprecated Deprecated backwards compat token
|
/** \deprecated Deprecated backwards compat token
|
||||||
|
|
||||||
do \b not use these in new code.
|
do \b not use these in new code.
|
||||||
*/
|
*/
|
||||||
#define kvp_frame KvpFrame
|
|
||||||
/** \deprecated Deprecated backwards compat token */
|
/** \deprecated Deprecated backwards compat token */
|
||||||
#define kvp_value_t KvpValueType
|
#define kvp_value_t KvpValueType
|
||||||
|
|
||||||
|
@ -660,7 +660,7 @@ gnc_template_register_save_xfrm_cell (BasicCell * cell,
|
|||||||
SRInfo *info = gnc_split_register_get_info (reg);
|
SRInfo *info = gnc_split_register_get_info (reg);
|
||||||
Account *template_acc;
|
Account *template_acc;
|
||||||
const GncGUID *acctGUID;
|
const GncGUID *acctGUID;
|
||||||
kvp_frame *kvpf;
|
KvpFrame *kvpf;
|
||||||
Account *acct;
|
Account *acct;
|
||||||
|
|
||||||
g_return_if_fail (gnc_basic_cell_has_name (cell, XFRM_CELL));
|
g_return_if_fail (gnc_basic_cell_has_name (cell, XFRM_CELL));
|
||||||
|
Loading…
Reference in New Issue
Block a user