-
-
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.
refactor(linux): Add more tests for keymanutil.c 🏘️
- Loading branch information
1 parent
93675bb
commit 9aab576
Showing
3 changed files
with
666 additions
and
109 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// 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); | ||
|
||
#endif // __KEYMANUTIL_INTERNAL_H__ |
Oops, something went wrong.