-
-
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
08f0b4d
commit 3d0f07b
Showing
9 changed files
with
1,340 additions
and
457 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__ |
Oops, something went wrong.