diff options
author | Reuben Thomas <rrt@sc3d.org> | 2021-11-09 13:03:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-09 13:03:08 +0000 |
commit | e0d44f3d0e2ec9b40c7662fda7a6e10465028e4f (patch) | |
tree | 7236a0654ad13c95f756ec8db5a7fb9072b99062 /tests/mock_provider.cpp | |
parent | 9bd442f2e48cd4e605bbdf2f8a2e8c3ec02418ac (diff) | |
parent | 34eed0fbd502cc3980e7931dbdb4e9379b34252d (diff) | |
download | enchant-e0d44f3d0e2ec9b40c7662fda7a6e10465028e4f.tar.gz |
Merge pull request #291 from rrthomas/master
Minor fixes and cleanup
Diffstat (limited to 'tests/mock_provider.cpp')
-rw-r--r-- | tests/mock_provider.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/mock_provider.cpp b/tests/mock_provider.cpp index f48176b..6f94720 100644 --- a/tests/mock_provider.cpp +++ b/tests/mock_provider.cpp @@ -31,6 +31,12 @@ mock_provider_dispose(EnchantProvider *me) g_free(me);
}
+static EnchantDict *
+mock_provider_request_dict(EnchantProvider *, const char *const)
+{
+ return NULL;
+}
+
static void
mock_provider_dispose_dict(EnchantProvider *me, EnchantDict *dict)
{
@@ -88,7 +94,7 @@ init_enchant_provider(void) provider = g_new0(EnchantProvider, 1);
provider->dispose = mock_provider_dispose; //although this is technically optional, it will result in a memory leak
- provider->request_dict = NULL;
+ provider->request_dict = mock_provider_request_dict; // this is required or module won't load
provider->dispose_dict = mock_provider_dispose_dict;
provider->identify = hasIdentify ? mock_provider_identify : NULL; // this is required or module won't load
provider->describe = hasDescribe ? mock_provider_describe : NULL; // this is required or module won't load
|