-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9595 from keymanapp/refactor/linux/keymanutil-tests
refactor(linux): Add more tests for `keymanutil.c` 🏘️
- Loading branch information
Showing
11 changed files
with
1,380 additions
and
482 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Internal data structures used in the implementation of keymanutil methods | ||
// and exposed for unit testing. | ||
|
||
#ifndef __KEYMANUTIL_INTERNAL_H__ | ||
#define __KEYMANUTIL_INTERNAL_H__ | ||
|
||
#include <gmodule.h> | ||
#include "kmpdetails.h" | ||
|
||
typedef struct { | ||
GList *engines_list; | ||
kmp_info *info; | ||
gchar *kmp_dir; | ||
} add_keyboard_data; | ||
|
||
IBusEngineDesc *ibus_keyman_engine_desc_new( | ||
gchar *file_name, | ||
gchar *name, | ||
gchar *description, | ||
gchar *copyright, | ||
gchar *lang, | ||
gchar *license, | ||
gchar *author, | ||
gchar *icon, | ||
gchar *layout, | ||
gchar *version); | ||
|
||
IBusEngineDesc *get_engine_for_language( | ||
kmp_keyboard *keyboard, | ||
kmp_info *info, | ||
keyboard_details *kbd_details, | ||
gchar *kmp_dir, | ||
gchar *lang_id, | ||
gchar *lang_name); | ||
|
||
void keyman_add_keyboard(gpointer data, gpointer user_data); | ||
void keyman_add_keyboards_from_dir(gpointer data, gpointer user_data); | ||
|
||
#endif // __KEYMANUTIL_INTERNAL_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.