diff options
author | Mathias Hasselmann <mathias@openismus.com> | 2013-03-08 13:03:12 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-03-08 13:53:34 +0000 |
commit | c20518286c5599a3a649f06450838490382f93fc (patch) | |
tree | 49ecdd88ccec4aab8b5e47184881dbd967630775 /connectivity/source/drivers/evoab2/EApi.cxx | |
parent | e3645fad6b2ea48851bcf6fdfb895ced74a6d8cb (diff) |
evoab2: Move get_e_source_registry() to EApi.cxx
get_e_source_registry() was declared in EApi.hxx, but defined in
NDatabaseMetaData.cxx. This doesn't seem right, the header file
and the purpose of the function indicate that it belongs into
EApi.cxx.
Change-Id: Iea3f11a901398aa3f467b96fbe8778c403887bcb
Diffstat (limited to 'connectivity/source/drivers/evoab2/EApi.cxx')
-rw-r--r-- | connectivity/source/drivers/evoab2/EApi.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/connectivity/source/drivers/evoab2/EApi.cxx b/connectivity/source/drivers/evoab2/EApi.cxx index 8e0d0dbd9433..987510c19d2b 100644 --- a/connectivity/source/drivers/evoab2/EApi.cxx +++ b/connectivity/source/drivers/evoab2/EApi.cxx @@ -143,4 +143,12 @@ bool EApiInit() return false; } +ESourceRegistry *get_e_source_registry() +{ + static ESourceRegistry *theInstance; + if (!theInstance) + theInstance = e_source_registry_new_sync(NULL, NULL); + return theInstance; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |