73 #define QOF_MOD_KVP "qof.kvp"
95 KVP_TYPE_INVALID = -1,
102 KVP_TYPE_PLACEHOLDER_DONT_USE,
113 #define kvp_value_t KvpValueType
170 #define kvp_frame_set_gnc_numeric kvp_frame_set_numeric
197 void kvp_frame_set_guid(
KvpFrame * frame,
const gchar * path,
const GncGUID *guid);
199 void kvp_frame_set_frame(
KvpFrame *frame,
const gchar *path,
KvpFrame *chld);
200 void kvp_frame_set_frame_nc(
KvpFrame *frame,
const gchar *path,
KvpFrame *chld);
213 const gchar * path,
const KvpValue * value);
228 const gchar * path,
KvpValue * value);
290 gint64 kvp_frame_get_gint64(
const KvpFrame *frame,
const gchar *path);
291 double kvp_frame_get_double(
const KvpFrame *frame,
const gchar *path);
293 const gchar * kvp_frame_get_string(
const KvpFrame *frame,
const gchar *path);
294 GncGUID * kvp_frame_get_guid(
const KvpFrame *frame,
const gchar *path);
355 const gchar * key,
KvpValue * value);
365 const gchar * key,
KvpValue * value);
374 const gchar *first_key, ...);
407 const gchar *first_key, ...);
413 const GSList *key_path);
420 gint double_compare(
double v1,
double v2);
431 gint kvp_glist_compare(
const GList * list1,
const GList * list2);
459 KvpValue * kvp_value_new_gint64(gint64 value);
460 KvpValue * kvp_value_new_double(
double value);
466 #define kvp_value_new_gnc_numeric kvp_value_new_numeric
468 KvpValue * kvp_value_new_string(
const gchar * value);
472 KvpValue * kvp_value_new_gdate(GDate date);
525 double kvp_value_get_double(
const KvpValue * value);
572 void (*proc)(
const gchar *key,
632 GType gnc_value_list_get_type (
void);
633 #define GNC_TYPE_VALUE_LIST (gnc_value_list_get_type ())
void kvp_frame_set_gvalue(KvpFrame *frame, const gchar *key, const GValue *value)
void kvp_frame_set_slot_path_gslist(KvpFrame *frame, KvpValue *value, GSList *key_path)
void kvp_frame_set_slot(KvpFrame *frame, const gchar *key, KvpValue *value)
void kvp_frame_set_timespec(KvpFrame *frame, const gchar *path, Timespec ts)
Date and Time handling routines.
GList * kvp_value_replace_glist_nc(KvpValue *value, GList *newlist)
GList * kvp_glist_copy(const GList *list)
gboolean kvp_frame_is_empty(const KvpFrame *frame)
An exact-rational-number library for gnucash. (to be renamed qofnumeric.h in libqof2) ...
KvpValueType
possible types in the union KvpValue
void kvp_frame_add_frame_nc(KvpFrame *frame, const gchar *path, KvpFrame *chld)
Store the given kvp_frame to the glist bag at the indicated path (non-copying)
gint kvp_frame_compare(const KvpFrame *fa, const KvpFrame *fb)
KvpFrame * kvp_frame_copy(const KvpFrame *frame)
globally unique ID User API
Use a 64-bit unsigned int timespec.
void kvp_frame_set_gint64(KvpFrame *frame, const gchar *path, gint64 ival)
Transfer of KVP to and from GValue, with the key.
KvpValue * kvp_value_new_frame_nc(KvpFrame *value)
KvpFrame * kvp_frame_set_value(KvpFrame *frame, const gchar *path, const KvpValue *value)
void kvp_frame_delete(KvpFrame *frame)
void kvp_frame_set_slot_path(KvpFrame *frame, KvpValue *value, const gchar *first_key,...)
gint64 kvp_value_get_gint64(const KvpValue *value)
KvpValue * kvp_frame_replace_value_nc(KvpFrame *frame, const gchar *slot, KvpValue *new_value)
void gnc_gvalue_free(GValue *value)
Convenience function to release the value in a GValue acquired by kvp_frame_get_gvalue and to free th...
char * kvp_value_get_string(const KvpValue *value)
KvpValue * kvp_value_copy(const KvpValue *value)
GValue * kvp_frame_get_gvalue(KvpFrame *frame, const gchar *key)
const char ** kvp_frame_get_keys(const KvpFrame *frame)
void kvp_frame_set_slot_nc(KvpFrame *frame, const gchar *key, KvpValue *value)
GList * kvp_value_get_glist(const KvpValue *value)
void kvp_frame_set_numeric(KvpFrame *frame, const gchar *path, gnc_numeric nval)
KvpFrame * kvp_value_replace_frame_nc(KvpValue *value, KvpFrame *newframe)
void kvp_glist_delete(GList *list)
GncGUID * kvp_value_get_guid(const KvpValue *value)
KvpValue * kvp_frame_get_slot_path(KvpFrame *frame, const gchar *first_key,...)
gchar * kvp_frame_to_string(const KvpFrame *frame)
KvpFrame * kvp_frame_set_value_nc(KvpFrame *frame, const gchar *path, KvpValue *value)
KvpValue * kvp_value_new_glist(const GList *value)
void kvp_frame_for_each_slot(KvpFrame *f, void(*proc)(const gchar *key, KvpValue *value, gpointer data), gpointer data)
void kvp_frame_set_double(KvpFrame *frame, const gchar *path, double dval)
KvpValue * kvp_value_new_glist_nc(GList *lst)
struct KvpFrameImpl KvpFrame
GDate kvp_value_get_gdate(const KvpValue *value)
KvpFrame * kvp_frame_new(void)
KvpFrame * kvp_value_get_frame(const KvpValue *value)
KvpFrame * kvp_frame_get_frame(const KvpFrame *frame, const gchar *path)
void kvp_value_delete(KvpValue *value)
gint kvp_value_compare(const KvpValue *va, const KvpValue *vb)
gchar * kvp_value_to_string(const KvpValue *val)
Debug version of kvp_value_to_string.
void kvp_frame_set_string(KvpFrame *frame, const gchar *path, const gchar *str)
Store a copy of the string at the indicated path.
struct KvpValueImpl KvpValue
KvpValue * kvp_frame_get_slot_path_gslist(KvpFrame *frame, const GSList *key_path)