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:
Dave Peticolas 2001-09-07 11:12:04 +00:00
parent 8061492f76
commit 2593ecc806
2 changed files with 25 additions and 0 deletions

View File

@ -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.

View File

@ -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);