From 682aa03e4f5bb5766263403c869e83461d82e07d Mon Sep 17 00:00:00 2001 From: Subin Siby Date: Tue, 29 Sep 2020 01:05:50 +0530 Subject: [PATCH] make varnam_find_symbols_file_directory() publicly accessible --- api.h | 3 +++ varnam.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/api.h b/api.h index 59b086c..fff1bf6 100644 --- a/api.h +++ b/api.h @@ -26,6 +26,9 @@ varnam_set_symbols_dir (const char *dir); VARNAM_EXPORT strbuf* varnam_get_symbols_dir (); +VARNAM_EXPORT extern const char* +varnam_find_symbols_file_directory (); + /** * Sets the suggestions directory where all the learning data will be stored. This value will be used * when initializing using varnam_init_from_id diff --git a/varnam.c b/varnam.c index dac3d24..0c8ce0c 100644 --- a/varnam.c +++ b/varnam.c @@ -215,7 +215,7 @@ static const char* symbolsFileSearchPath[] = { }; const char* -find_symbols_file_directory() +varnam_find_symbols_file_directory() { int i; @@ -235,7 +235,7 @@ static strbuf* find_symbols_file_path (const char *langCode) { strbuf *path; - const char* dir = find_symbols_file_directory(); + const char* dir = varnam_find_symbols_file_directory(); if (dir == NULL) { return NULL; } @@ -522,7 +522,7 @@ varnam_get_all_handles() int rc; char *msg; - const char* symbolsFileDir = find_symbols_file_directory(); + const char* symbolsFileDir = varnam_find_symbols_file_directory(); if (symbolsFileDir == NULL) return NULL;