71 #define QOF_MOD_KVP "qof-kvp" 350 kvp_frame_add_boolean (
KvpFrame * frame,
const gchar * path, gboolean val);
404 kvp_frame_add_value_nc (
KvpFrame * frame,
const gchar * path,
440 kvp_frame_get_gint64 (
const KvpFrame * frame,
const gchar * path);
442 kvp_frame_get_double (
const KvpFrame * frame,
const gchar * path);
444 kvp_frame_get_numeric (
const KvpFrame * frame,
const gchar * path);
446 kvp_frame_get_string (
const KvpFrame * frame,
const gchar * path);
448 kvp_frame_get_guid (
const KvpFrame * frame,
const gchar * path);
450 kvp_frame_get_binary (
const KvpFrame * frame,
const gchar * path,
451 guint64 * size_return);
454 kvp_frame_get_boolean (
const KvpFrame * frame,
const gchar * path);
457 kvp_frame_get_time (
const KvpFrame * frame,
const gchar *path);
532 const gchar * key,
const KvpValue * value);
542 const gchar * key,
KvpValue * value);
551 const gchar * first_key, ...);
584 const gchar * first_key, ...);
625 KvpValue *kvp_value_new_gint64 (gint64 value);
626 KvpValue *kvp_value_new_double (
double value);
629 KvpValue *kvp_value_new_string (
const gchar * value);
635 KvpValue *kvp_value_new_binary (
const void *data, guint64 datasize);
696 gdouble kvp_value_get_double (
const KvpValue * value);
727 kvp_value_get_boolean (
const KvpValue * value);
730 kvp_value_get_time (
const KvpValue * value);
GUID * kvp_value_get_guid(const KvpValue *value)
KvpFrame * kvp_frame_get_frame_path(KvpFrame *frame, const gchar *,...)
void kvp_frame_add_time(KvpFrame *frame, const gchar *path, QofTime *qt)
Add the value of the QofTime to the glist bag.
gboolean kvp_value_binary_append(KvpValue *v, gpointer data, guint64 size)
GList * kvp_value_replace_glist_nc(KvpValue *value, GList *newlist)
GList * kvp_glist_copy(const GList *list)
void kvp_frame_set_guid(KvpFrame *frame, const gchar *path, const GUID *guid)
Store a copy of the GUID at the indicated path.
KvpValueType
possible types in the union KvpValue
An exact-rational-number library for QOF.
void kvp_frame_set_numeric(KvpFrame *frame, const gchar *path, QofNumeric nval)
store the value of the QofNumeric at the indicated path.
void kvp_frame_set_frame_nc(KvpFrame *frame, const gchar *path, KvpFrame *chld)
Store a KvpFrame at the indicated path without copying.
void kvp_frame_set_time(KvpFrame *frame, const gchar *path, QofTime *qt)
Store a copy of the QofTime at the indicated path.
KvpFrame * kvp_frame_add_value(KvpFrame *frame, const gchar *path, KvpValue *value)
Add a copy of the value to the glist bag.
void kvp_frame_add_frame_nc(KvpFrame *frame, const gchar *path, KvpFrame *chld)
Add the frame to the glist bag without copying.
KvpFrame * kvp_frame_get_frame_slash(KvpFrame *frame, const gchar *path)
KvpFrame * kvp_frame_copy(const KvpFrame *frame)
struct _KvpFrame KvpFrame
globally unique ID User API
void kvp_frame_set_slot_path(KvpFrame *frame, const KvpValue *value, const gchar *first_key,...)
gint kvp_glist_compare(const GList *list1, const GList *list2)
void kvp_frame_set_gint64(KvpFrame *frame, const gchar *path, gint64 ival)
store the value of the gint64 at the indicated path.
KvpValue * kvp_value_new_boolean(gboolean value)
gboolean kvp_frame_is_empty(KvpFrame *frame)
KvpValue * kvp_value_new_frame_nc(KvpFrame *value)
void kvp_frame_set_slot_path_gslist(KvpFrame *frame, const KvpValue *value, GSList *key_path)
KvpFrame * kvp_frame_get_frame_gslist(KvpFrame *frame, GSList *key_path)
KvpFrame * kvp_frame_set_value(KvpFrame *frame, const gchar *path, const KvpValue *value)
Copy the KvpValue into the frame.
gpointer kvp_value_get_binary(const KvpValue *value, guint64 *size_return)
128bit denominator/numerator maths.
void kvp_frame_delete(KvpFrame *frame)
gint64 kvp_value_get_gint64(const KvpValue *value)
KvpValue * kvp_frame_replace_value_nc(KvpFrame *frame, const gchar *slot, KvpValue *new_value)
void kvp_frame_set_frame(KvpFrame *frame, const gchar *path, KvpFrame *chld)
Store a copy of the KvpFrame at the indicated path.
void(* KvpValueForeachCB)(const gchar *key, KvpValue *value, gpointer data)
struct _KvpValue KvpValue
KvpValue * kvp_frame_replace_slot_nc(KvpFrame *frame, const gchar *slot, KvpValue *new_value)
void kvp_frame_set_slot(KvpFrame *frame, const gchar *key, const KvpValue *value)
KvpValue * kvp_value_copy(const KvpValue *value)
KvpValue * kvp_value_new_binary_nc(void *data, guint64 datasize)
void kvp_frame_add_double(KvpFrame *frame, const gchar *path, gdouble dval)
Add the value of the double to the glist bag.
void kvp_frame_set_slot_nc(KvpFrame *frame, const gchar *key, KvpValue *value)
void kvp_frame_set_boolean(KvpFrame *frame, const gchar *path, gboolean val)
Store the value of the boolean at the indicated path.
GList * kvp_value_get_glist(const KvpValue *value)
gchar * kvp_value_to_bare_string(const KvpValue *val)
General purpose function to convert any KvpValue to a string.
KvpFrame * kvp_value_replace_frame_nc(KvpValue *value, KvpFrame *newframe)
void kvp_glist_delete(GList *list)
gchar * kvp_value_get_string(const KvpValue *value)
void kvp_frame_add_frame(KvpFrame *frame, const gchar *path, KvpFrame *chld)
Copy the frame to the glist bag at the indicated path.
void kvp_frame_add_string(KvpFrame *frame, const gchar *path, const gchar *str)
Copy the string to the glist bag at the indicated path.
KvpValue * kvp_frame_get_slot_path(KvpFrame *frame, const gchar *first_key,...)
64bit UTC Time handling routines
KvpFrame * kvp_frame_set_value_nc(KvpFrame *frame, const gchar *path, KvpValue *value)
Store the KvpValue in the frame without copying.
void kvp_frame_for_each_slot(KvpFrame *f, KvpValueForeachCB, gpointer data)
KvpValue * kvp_value_new_glist(const GList *value)
KvpValue * kvp_value_new_glist_nc(GList *lst)
struct QofTime64 QofTime
Use a 64-bit signed int QofTime.
void kvp_frame_add_gint64(KvpFrame *frame, const gchar *path, gint64 ival)
add the value of the gint64 to the glist bag
void kvp_frame_set_double(KvpFrame *frame, const gchar *path, gdouble dval)
store the value of the double at the indicated path.
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)
KvpValue * kvp_frame_get_slot_path_gslist(KvpFrame *frame, GSList *key_path)
gint kvp_value_compare(const KvpValue *va, const KvpValue *vb)
gchar * kvp_value_to_string(const KvpValue *val)
Debug version.
void kvp_frame_set_string(KvpFrame *frame, const gchar *path, const gchar *str)
Store a copy of the string at the indicated path.
void kvp_frame_add_numeric(KvpFrame *frame, const gchar *path, QofNumeric nval)
Add the value of the QofNumeric to the glist bag.
64bit time/date handling.
void kvp_frame_add_guid(KvpFrame *frame, const gchar *path, const GUID *guid)
Copy the GUID to the glist bag at the indicated path.