mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-12-01 21:19:16 -06:00
Add version number functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5337 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
8061492f76
commit
2593ecc806
@ -34,6 +34,26 @@ static gnc_commodity_table * known_commodities = NULL;
|
||||
static int engine_is_initialized = 0;
|
||||
GCache * gnc_string_cache = NULL;
|
||||
|
||||
|
||||
/* GnuCash version functions */
|
||||
unsigned int
|
||||
gnucash_major_version (void)
|
||||
{
|
||||
return GNUCASH_MAJOR_VERSION;
|
||||
}
|
||||
|
||||
unsigned int
|
||||
gnucash_minor_version (void)
|
||||
{
|
||||
return GNUCASH_MINOR_VERSION;
|
||||
}
|
||||
|
||||
unsigned int
|
||||
gnucash_micro_version (void)
|
||||
{
|
||||
return GNUCASH_MICRO_VERSION;
|
||||
}
|
||||
|
||||
/********************************************************************
|
||||
* gnc_engine_init
|
||||
* initialize backend, load any necessary databases, etc.
|
||||
|
@ -30,6 +30,11 @@ typedef void (* gnc_engine_init_hook_t)(int, char **);
|
||||
|
||||
/** PROTOTYPES ******************************************************/
|
||||
|
||||
/* GnuCash version number infomation. */
|
||||
unsigned int gnucash_major_version (void);
|
||||
unsigned int gnucash_minor_version (void);
|
||||
unsigned int gnucash_micro_version (void);
|
||||
|
||||
/* gnc_engine_init MUST be called before gnc engine functions can
|
||||
* be used. */
|
||||
void gnc_engine_init(int argc, char ** argv);
|
||||
|
Loading…
Reference in New Issue
Block a user