QOF 0.7.5

Deprecated List

Global _QofSession::entity
This is just a "fake" entry point to allow me to pass a Session as an Entity. NOTE: THIS IS NOT AN ENTITY! THE ONLY PART OF ENTITY THAT IS VALID IS E_TYPE!

Global date_add_months (struct tm *tm, gint months, gboolean track_last_day)
use ::qof_date_time_add_months.

Global date_get_last_mday (struct tm *tm)
use g_date_get_days_in_month instead.

Global date_is_last_mday (struct tm *tm)
use g_date_get_days_in_month instead.

Global dateSeparator (void)
use qof_date_format_get_date_separator

Global double_compare (gdouble d1, gdouble d2)
use qof_util_double_compare instead.

Global double_to_gnc_numeric (double in, gint64 denom, gint how)
use qof_numeric_from_double

Global ENUM_LIST_DEP (_)
use QofError instead. backend errors are to be specific to the backend responsible. QofBackend itself registers some errors.

Global gnc_date_dateformat_to_string (QofDateFormat format)
use qof_date_format_to_name.

Global gnc_date_monthformat_to_string (GNCDateMonthFormat format)
no replacement.

Global gnc_date_my_last_mday (int month, int year)
use g_date_get_days_in_month instead.

Global gnc_date_string_to_dateformat (const gchar *format_string, QofDateFormat *format)
use qof_date_format_from_name.

Global gnc_date_string_to_monthformat (const gchar *format_string, GNCDateMonthFormat *format)
no replacement.

Global GNC_DENOM_AUTO
use QOF_DENOM_AUTO.

Global GNC_DENOM_EXACT
use QOF_HOW_DENOM_EXACT.

Global GNC_DENOM_FIXED
use QOF_HOW_DENOM_FIXED.

Global GNC_DENOM_LCD
use QOF_HOW_DENOM_LCD.

Global GNC_DENOM_RECIPROCAL
use QOF_DENOM_RECIPROCAL.

Global GNC_DENOM_REDUCE
use QOF_HOW_DENOM_REDUCE.

Global GNC_DENOM_SIGFIG
use QOF_HOW_DENOM_SIGFIG.

Global GNC_DENOM_SIGFIGS (X)
use QOF_HOW_DENOM_SIGFIGS.

Global gnc_dmy2timespec (gint day, gint month, gint year)
use GDate instead.

Global gnc_dmy2timespec_end (gint day, gint month, gint year)
use GDate instead.

Global gnc_engine_gen_event (QofEntity *entity, QofEventId event_type)
use qof_event_gen instead.

Global gnc_engine_generate_event (const GUID *guid, QofIdType e_type, QofEventId event_type)
use qof_event_gen instead.

Global gnc_engine_get_string_cache (void)
use qof_init instead.

Global gnc_engine_register_event_handler (GNCEngineEventHandler handler, gpointer user_data)
use qof_event_register_handler instead.

Global gnc_engine_resume_events (void)
use qof_event_resume instead.

Global gnc_engine_string_cache_destroy (void)
use qof_close instead.

Global gnc_engine_suspend_events (void)
use qof_event_suspend instead.

Global gnc_engine_unregister_event_handler (gint handler_id)
use qof_event_unregister_handler instead.

Global GNC_ERROR_ARG
use QOF_ERROR_ARG.

Global GNC_ERROR_DENOM_DIFF
use QOF_ERROR_DENOM_DIFF.

Global GNC_ERROR_OK
use QOF_ERROR_OK.

Global GNC_ERROR_OVERFLOW
use QOF_ERROR_OVERFLOW.

Global GNC_ERROR_REMAINDER
use QOF_ERROR_REMAINDER.

Global GNC_EVENT_ADD
use ::QOF_EVENT_ADD instead.

Global GNC_EVENT_ALL
use ::QOF_EVENT_ALL

Global GNC_EVENT_CREATE
use QOF_EVENT_CREATE instead.

Global GNC_EVENT_DESTROY
use QOF_EVENT_DESTROY instead.

Global GNC_EVENT_MODIFY
use QOF_EVENT_MODIFY instead.

Global GNC_EVENT_NONE
use QOF_EVENT_NONE instead.

Global GNC_EVENT_REMOVE
use ::QOF_EVENT_REMOVE instead.

Global GNC_HOW_DENOM_EXACT
use QOF_HOW_DENOM_EXACT.

Global GNC_HOW_DENOM_FIXED
use QOF_HOW_DENOM_FIXED.

Global GNC_HOW_DENOM_LCD
use QOF_HOW_DENOM_LCD.

Global GNC_HOW_DENOM_REDUCE
use QOF_HOW_DENOM_REDUCE.

Global GNC_HOW_DENOM_SIGFIG
use QOF_HOW_DENOM_SIGFIG.

Global GNC_HOW_DENOM_SIGFIGS
use QOF_HOW_DENOM_SIGFIGS.

Global GNC_HOW_GET_SIGFIGS
use ::QOF_HOW_GET_SIGFIGS.

Global GNC_HOW_RND_CEIL
use QOF_HOW_RND_CEIL.

Global GNC_HOW_RND_FLOOR
use QOF_HOW_RND_FLOOR.

Global GNC_HOW_RND_NEVER
use QOF_HOW_RND_NEVER.

Global GNC_HOW_RND_PROMOTE
use QOF_HOW_RND_PROMOTE.

Global GNC_HOW_RND_ROUND
use QOF_HOW_RND_ROUND.

Global GNC_HOW_RND_ROUND_HALF_DOWN
use QOF_HOW_RND_ROUND_HALF_DOWN.

Global GNC_HOW_RND_ROUND_HALF_UP
use QOF_HOW_RND_ROUND_HALF_UP.

Global GNC_HOW_RND_TRUNC
use QOF_HOW_RND_TRUNC.

Global gnc_iso8601_to_timespec_gmt (const gchar *)
set QOF_DATE_FORMAT_ISO8601 and call qof_date_parse

Global gnc_kvp_bag_add (KvpFrame *pwd, const char *path, time_t secs, const char *first_name,...)
use qof_kvp_bag_add instead.

Global gnc_kvp_bag_find_by_guid (KvpFrame *root, const char *path, const char *guid_name, GUID *desired_guid)
use qof_kvp_bag_find_by_guid instead.

Global gnc_kvp_bag_merge (KvpFrame *kvp_into, const char *intopath, KvpFrame *kvp_from, const char *frompath)
use qof_kvp_bag_merge instead.

Global gnc_kvp_bag_remove_frame (KvpFrame *root, const char *path, KvpFrame *fr)
use qof_kvp_bag_remove_frame instead.

Global GNC_LOG_DEBUG
use ::QOF_LOG_DEBUG

Global GNC_LOG_DETAIL
use ::QOF_LOG_DETAIL

Global GNC_LOG_ERROR
use ::QOF_LOG_ERROR

Global GNC_LOG_FATAL
use ::QOF_LOG_FATAL

Global GNC_LOG_INFO
use ::QOF_LOG_INFO

Global gnc_log_init (void)
use qof_log_init_filename instead

Global gnc_log_prettify (const char *name)
use qof_log_prettify instead.

Global GNC_LOG_TRACE
use ::QOF_LOG_TRACE

Global GNC_LOG_WARNING
use ::QOF_LOG_WARNING

Global gnc_num_dbg_to_string (gnc_numeric n)
use qof_numeric_dbg_to_string

Global gnc_numeric

Global gnc_numeric_abs (gnc_numeric a)
use qof_numeric_abs

Global gnc_numeric_add (gnc_numeric a, gnc_numeric b, gint64 denom, gint how)
use qof_numeric_add

Global gnc_numeric_add_fixed (gnc_numeric a, gnc_numeric b)
use qof_numeric_add_fixed

Global gnc_numeric_add_with_error (gnc_numeric a, gnc_numeric b, gint64 denom, gint how, gnc_numeric *error)
use qof_numeric_add_with_error

Global gnc_numeric_check (gnc_numeric a)
use qof_numeric_check

Global gnc_numeric_compare (gnc_numeric a, gnc_numeric b)
use qof_numeric_compare

Global gnc_numeric_convert (gnc_numeric in, gint64 denom, gint how)
use qof_numeric_convert

Global gnc_numeric_convert_with_error (gnc_numeric in, gint64 denom, gint how, gnc_numeric *error)
use qof_numeric_convert_with_error

Global gnc_numeric_create (gint64 num, gint64 denom)
use qof_numeric_create

Global gnc_numeric_denom (gnc_numeric a)
use qof_numeric_denom

Global GNC_NUMERIC_DENOM_MASK
use ::QOF_NUMERIC_DENOM_MASK.

Global gnc_numeric_div (gnc_numeric x, gnc_numeric y, gint64 denom, gint how)
use qof_numeric_div

Global gnc_numeric_div_with_error (gnc_numeric a, gnc_numeric b, gint64 denom, gint how, gnc_numeric *error)
use qof_numeric_div_with_error

Global gnc_numeric_eq (gnc_numeric a, gnc_numeric b)
use qof_numeric_eq

Global gnc_numeric_equal (gnc_numeric a, gnc_numeric b)
use qof_numeric_equal

Global gnc_numeric_error (QofNumericErrorCode error_code)
use qof_numeric_error

Global GNC_NUMERIC_GET_SIGFIGS (X)
use ::QOF_HOW_GET_SIGFIGS.

Global gnc_numeric_mul (gnc_numeric a, gnc_numeric b, gint64 denom, gint how)
use qof_numeric_mul

Global gnc_numeric_mul_with_error (gnc_numeric a, gnc_numeric b, gint64 denom, gint how, gnc_numeric *error)
use qof_numeric_mul_with_error

Global gnc_numeric_neg (gnc_numeric a)
use qof_numeric_neg

Global gnc_numeric_negative_p (gnc_numeric a)
use qof_numeric_negative_p

Global gnc_numeric_num (gnc_numeric a)
use qof_numeric_num

Global gnc_numeric_positive_p (gnc_numeric a)
use qof_numeric_positive_p

Global gnc_numeric_reduce (gnc_numeric in)
use qof_numeric_reduce

Global GNC_NUMERIC_RND_MASK
use QOF_NUMERIC_RND_MASK.

Global gnc_numeric_same (gnc_numeric a, gnc_numeric b, gint64 denom, gint how)
use qof_numeric_same

Global GNC_NUMERIC_SIGFIGS_MASK
use ::QOF_NUMERIC_SIGFIGS_MASK.

Global gnc_numeric_sub (gnc_numeric a, gnc_numeric b, gint64 denom, gint how)
use qof_numeric_sub

Global gnc_numeric_sub_fixed (gnc_numeric a, gnc_numeric b)
use qof_numeric_sub_fixed

Global gnc_numeric_sub_with_error (gnc_numeric a, gnc_numeric b, gint64 denom, gint how, gnc_numeric *error)
use qof_numeric_sub_with_error

Global gnc_numeric_to_double (gnc_numeric in)
use qof_numeric_to_double

Global gnc_numeric_to_string (gnc_numeric n)
use qof_numeric_to_string

Global gnc_numeric_zero (void)
use qof_numeric_zero

Global gnc_numeric_zero_p (gnc_numeric a)
use qof_numeric_zero_p

Global gnc_print_date (Timespec ts)
use qof_date_print

Global gnc_report_clock (int, QofLogModule, QofLogLevel, const char *, const char *,...)
no replacement

Global gnc_report_clock_total (int, QofLogModule, QofLogLevel, const char *, const char *,...)
no replacement

Global GNC_RND_CEIL
use QOF_HOW_RND_CEIL.

Global GNC_RND_FLOOR
use QOF_HOW_RND_FLOOR.

Global GNC_RND_NEVER
use QOF_HOW_RND_NEVER.

Global GNC_RND_PROMOTE
use QOF_HOW_RND_PROMOTE.

Global GNC_RND_ROUND
use QOF_HOW_RND_ROUND.

Global GNC_RND_ROUND_HALF_DOWN
use QOF_HOW_RND_ROUND_HALF_DOWN.

Global GNC_RND_ROUND_HALF_UP
use QOF_HOW_RND_ROUND_HALF_UP.

Global GNC_RND_TRUNC
use QOF_HOW_RND_TRUNC.

Global GNC_SCANF_LLD
use QOF_SCANF_LLD instead.

Global gnc_set_log_level (QofLogModule module, QofLogLevel level)
use qof_log_set_level insead.

Global gnc_set_log_level_global (QofLogLevel level)
use qof_log_set_level_registered instead.

Global gnc_set_logfile (FILE *outfile)
use qof_log_set_file instead.

Global gnc_should_log (QofLogModule log_module, QofLogLevel log_level)
use qof_log_check instead.

Global gnc_start_clock (int, QofLogModule, QofLogLevel, const char *, const char *,...)
no replacement

Global gnc_stpcpy (gchar *dest, const gchar *src)
use ::qof_util_stpcpy instead.

Global gnc_string_cache_insert (gconstpointer key)
use qof_util_string_cache_insert instead.

Global gnc_string_cache_remove (gconstpointer key)
use qof_util_string_cache_remove instead.

Global gnc_strisnum (const guchar *s)
use qof_util_string_isnum

Global gnc_timespec2dmy (Timespec ts, gint *day, gint *month, gint *year)
use QofDate instead.

Global gnc_timespec_last_mday (Timespec ts)
use g_date_get_days_in_month instead.

Global gnc_timespec_to_iso8601_buff (Timespec ts, gchar *buff)
set QOF_DATE_FORMAT_ISO8601 and call qof_date_print

Global gnc_timet_get_day_end (time_t time_val)
no replacement.

Global gnc_timet_get_day_end_gdate (GDate *date)
no replacement

Global gnc_timet_get_day_start (time_t time_val)
no replacement.

Global gnc_timet_get_day_start_gdate (GDate *date)
no replacement

Global gnc_timet_get_today_end (void)
no replacement.

Global gnc_timet_get_today_start (void)
no replacement

Global gnc_timezone (struct tm *tm)
no replacement

Global gnc_tm_get_day_end (struct tm *tm, time_t time_val)
no replacement.

Global gnc_tm_get_day_start (struct tm *tm, time_t time_val)
no replacement.

Global gnc_tm_get_today_end (struct tm *tm)
no replacement

Global gnc_tm_get_today_start (struct tm *tm)
no replacement.

Global gnc_tm_set_day_end (struct tm *tm)
use qof_time_set_day_end instead.

Global gnc_tm_set_day_middle (struct tm *tm)
use qof_time_set_day_middle instead.

Global gnc_tm_set_day_start (struct tm *tm)
use qof_time_set_day_start instead.

Global gncBackendInit_file (const char *book_id, void *data)
no replacement.

Global GNCDATE_MONTH_ABBREV
use ::QOF_DATE_MONTH_ABBREV.

Global GNCDATE_MONTH_NAME
use ::QOF_DATE_MONTH_NAME.

Global GNCDATE_MONTH_NUMBER
use ::QOF_DATE_MONTH_NUMBER.

Global GNCDateMonthFormat
use ::QofDateMonthFormat instead.

Global GNCEngineEventHandler )(GUID *entity, QofIdType type, QofEventId event_type, gpointer user_data)
use QofEventHandler instead.

Global GNCEngineEventType
use ::QofEventName instead.

Global gncLogLevel
use QofLogLevel instead

Global GNCNumericErrorCode
use QofNumericErrorCode.

Global HandlerInfo::handler

Global kvp_frame
Deprecated backwards compat token

Global kvp_frame_add_gnc_numeric
Use kvp_frame_add_numeric instead

Global kvp_frame_add_str
Use kvp_frame_add_string instead

Global kvp_frame_add_timespec (KvpFrame *frame, const gchar *path, Timespec ts)
use kvp_frame_add_time instead.

Global kvp_frame_get_timespec (const KvpFrame *frame, const gchar *path)
use ::kvp_frame_get_time instead.

Global kvp_frame_set_gnc_numeric
Use kvp_frame_set_numeric instead.

Global kvp_frame_set_str
Use kvp_frame_set_string instead.

Global kvp_frame_set_timespec (KvpFrame *frame, const gchar *path, Timespec ts)
use kvp_frame_set_time instead.

Global KVP_TYPE_TIMESPEC
QOF_TYPE_DATE

Global kvp_value
Deprecated backwards compat token

Global kvp_value_get_timespec (const KvpValue *value)
use ::kvp_value_get_time instead.

Global kvp_value_new_gnc_numeric
Use kvp_value_new_numeric instead

Global kvp_value_new_timespec (Timespec timespec)
use ::kvp_value_new_time instead.

Global kvp_value_t
Deprecated backwards compat token

Global qof_backend_get_error (QofBackend *be)
use qof_error_get_be instead.

Global qof_backend_get_message (QofBackend *be)
use qof_error_get_message instead.

Global qof_backend_init (QofBackend *be)

Global qof_backend_set_error (QofBackend *be, QofErrorId err)
use qof_error_set_be instead.

Global qof_backend_set_message (QofBackend *be, const gchar *format,...)
use qof_error_register instead.

Global QOF_BEGIN_EDIT (inst)
use qof_util_param_edit instead to edit at a parameter level, instead of a complete instance.

Global qof_begin_edit (QofInstance *inst)
use qof_util_param_edit instead to edit at a parameter level, instead of a complete instance.

Global qof_book_get_guid (X)

Global qof_book_merge_param_as_string (QofParam *qtparam, QofEntity *qtEnt)
replace with qof_util_param_as_string

Global qof_book_mergeCommit (QofBookMergeData *mergeData)
use qof_book_merge_commit instead.

Global qof_book_mergeData
use QofBookMergeData instead.

Global qof_book_mergeInit (QofBook *importBook, QofBook *targetBook)
use qof_book_merge_init instead.

Global qof_book_mergeResult
use QofBookMergeResult instead.

Global qof_book_mergeRule
use QofBookMergeRule instead.

Global qof_book_mergeRuleForeach (QofBookMergeData *mergeData, QofBookMergeRuleForeachCB callback, QofBookMergeResult mergeResult)
use qof_book_merge_rule_foreach instead.

Global qof_book_mergeRuleForeachCB )(QofBookMergeData *, QofBookMergeRule *, guint)
use QofBookMergeRuleForeachCB instead.

Global qof_book_mergeUpdateResult (QofBookMergeData *mergeData, QofBookMergeResult tag)
use qof_book_merge_update_result instead.

Global qof_book_set_guid (book, guid)
use qof_entity_set_guid instead but only in backends (when reading the GUID from the data source).

Global qof_book_set_schedxactions (QofBook *book, GList *newList)
no replacement.

Global qof_commit_edit (QofInstance *inst)
Use qof_util_param_commit instead.

Global QOF_COMMIT_EDIT_PART1 (inst)
No replacement. See qof_commit_edit

Global qof_commit_edit_part2 (QofInstance *inst, void(*on_error)(QofInstance *, QofBackendError), void(*on_done)(QofInstance *), void(*on_free)(QofInstance *))
use qof_util_param_commit instead.

Global QOF_COMMIT_EDIT_PART2 (inst, on_error, on_done, on_free)
No replacement.

Global qof_date_add_days (Timespec *ts, gint days)
use qof_date_adddays instead.

Global qof_date_add_months (Timespec *ts, gint months, gboolean track_last_day)
use qof_date_addmonths instead.

Global qof_date_dmy_to_sec (gint day, gint month, gint year)
returns incorrect values for dates before 1970. use qof_time_dmy_to_time.

Global qof_date_format_get (void)
use qof_date_format_get_current

Global qof_date_format_get_string (QofDateFormat df)
no direct replacement.

Global qof_date_format_set (QofDateFormat df)
use qof_date_format_set_current.

Global qof_date_text_format_get_string (QofDateFormat df)
use qof_date_format_get_format

Global qof_event_register_old_handler (GNCEngineEventHandler old_handler, gpointer user_data)
For backwards compatibility - New code must not use this function. The function and the handler prototype will be remove from qofevent.c in libqof2

Global qof_instance_get_last_update (QofInstance *inst)
use ::qof_instance_set_update_time instead.

Global qof_is_same_day (time_t, time_t)
no replacement

Global qof_log_init (void)
Applications need to call qof_log_set_file to set the output, otherwise the default of /tmp/qof.trace will be used.

Global qof_log_set_file (FILE *outfile)

Global qof_log_set_level_global (QofLogLevel level)
use qof_log_set_level_registered instead.

Global qof_print_date (time_t secs)
use qof_date_print

Global qof_print_date_buff (char *buff, size_t buflen, time_t secs)
no replacement.

Global qof_print_date_dmy_buff (gchar *buff, size_t buflen, gint day, gint month, gint year)
no replacement.

Global qof_print_date_time_buff (char *buff, size_t len, time_t secs)
no replacement.

Global qof_print_gdate (char *buf, size_t bufflen, GDate *gd)
no replacement

Global qof_print_hours_elapsed_buff (char *buff, size_t len, int secs, gboolean show_secs)
no replacement.

Global qof_print_minutes_elapsed_buff (char *buff, size_t len, int secs, gboolean show_secs)
no replacement.

Global qof_print_time_buff (char *buff, size_t len, time_t secs)
no replacement.

Global qof_query_date_predicate (QofQueryCompare how, QofDateMatch options, Timespec date)
use ::qof_query_time_predicate instead.

Global qof_query_date_predicate_get_date (QofQueryPredData *pd, Timespec *date)
use qof_query_time_predicate_get_time instead.

Global qof_query_print (QofQuery *query)
Do not call directly, use QofLog.

Global qof_report_clock (gint clockno, QofLogModule log_module, QofLogLevel log_level, const gchar *function_name, const gchar *format,...)
no replacement.

Global qof_report_clock_total (gint clockno, QofLogModule log_module, QofLogLevel log_level, const gchar *function_name, const gchar *format,...)
no replacement.

Global qof_scan_date (const char *buff, int *day, int *month, int *year)
use qof_date_parse

Global qof_scan_date_secs (const char *buff, time_t *secs)
no replacement

Global qof_session_clear_current_session (void)
Each application should keep their own session context.

Global qof_session_get_current_session (void)
Each application should keep their own session context.

Global qof_session_get_error_message (QofSession *session)
use qof_error_get_message instead but note that this clears the error from the session stack.

Global qof_session_pop_error (QofSession *session)
use qof_error_get_id or qof_error_check instead.

Global qof_session_push_error (QofSession *session, QofBackendError err, const gchar *message)
use qof_error_set instead.

Global qof_session_set_current_session (QofSession *session)
Each application should keep their own session context.

Global qof_start_clock (gint clockno, QofLogModule log_module, QofLogLevel log_level, const gchar *function_name, const gchar *format,...)
no replacement.

Global QOF_TYPE_DATE
use ::QOF_TYPE_TIME instead

Global qof_util_get_string_cache (void)
use qof_init instead.

Global qof_util_param_as_string (QofEntity *ent, QofParam *param)
use qof_util_param_to_string instead.

Global QofBackend_s::error_msg
use stack instead.

Global QofBackend_s::export )(QofBackend *, QofBook *)

Global QofBackend_s::last_err
use qof_error_check instead.

Global QofBackend_s::price_lookup )(QofBackend *, gpointer)

Class query_date_def
use ::query_time_t instead.

Global REPORT_CLOCK (clockno, format, args...)
no replacement.

Global REPORT_CLOCK_TOTAL (clockno, format, args...)
no replacement.

Global SAFE_STRCASECMP (da, db)
use safe_strcasecmp()

Global SAFE_STRCMP (da, db)
use safe_strcmp()

Global SAFE_STRCMP_REAL (fcn, da, db)
Use the function versions, safe_strcmp() and safe_strcasecmp() instead.

Global START_CLOCK (clockno, format, args...)
no replacement.

Global string_to_gnc_numeric (const gchar *str, gnc_numeric *n)
use qof_numeric_from_string

Global Timespec
use QofTime.

Global timespec_abs (const Timespec *t)
use qof_time_abs.

Global timespec_cmp (const Timespec *ta, const Timespec *tb)
use qof_time_cmp.

Global timespec_diff (const Timespec *ta, const Timespec *tb)
use qof_time_diff.

Global timespec_equal (const Timespec *ta, const Timespec *tb)
use qof_time_equal.

Global timespecCanonicalDayTime (Timespec t)
use ::qof_time_canonical_day_time.

Global timespecFromTime_t (Timespec *ts, time_t t)
use qof_time_from_time_t instead

Global timespecToTime_t (Timespec ts)
use qof_time_to_time_t.

Global xaccDateUtilGetStamp (time_t thyme)
no direct replacement, use a QofDateFormat

Global xaccDateUtilGetStampNow (void)
use qof_time_stamp_now

Global xaccDMYToSec (gint day, gint month, gint year)
use qof_date_dmy_to_sec.