2016-08-08 20:30:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "input.h"
|
|
|
|
#include "locale_list.h"
|
|
|
|
#include "layout_list.h"
|
|
|
|
|
|
|
|
|
2016-08-09 18:26:43 +00:00
|
|
|
#define INPUT_LIST_NODE_FLAG_EDITED 0x0001
|
|
|
|
#define INPUT_LIST_NODE_FLAG_ADDED 0x0002
|
|
|
|
#define INPUT_LIST_NODE_FLAG_DELETED 0x0004
|
|
|
|
#define INPUT_LIST_NODE_FLAG_DEFAULT 0x0008
|
2016-08-08 20:30:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
typedef struct _INPUT_LIST_NODE
|
|
|
|
{
|
2016-08-09 18:26:43 +00:00
|
|
|
WORD wFlags;
|
2016-08-08 20:30:36 +00:00
|
|
|
|
|
|
|
LOCALE_LIST_NODE *pLocale;
|
|
|
|
LAYOUT_LIST_NODE *pLayout;
|
|
|
|
|
2016-08-09 18:26:43 +00:00
|
|
|
HKL hkl; /* Only for loaded input methods */
|
2016-08-08 20:30:36 +00:00
|
|
|
|
2016-08-09 14:01:52 +00:00
|
|
|
WCHAR *pszIndicator;
|
|
|
|
|
2016-08-08 20:30:36 +00:00
|
|
|
struct _INPUT_LIST_NODE *pPrev;
|
|
|
|
struct _INPUT_LIST_NODE *pNext;
|
|
|
|
} INPUT_LIST_NODE;
|
|
|
|
|
|
|
|
|
|
|
|
VOID
|
|
|
|
InputList_Create(VOID);
|
|
|
|
|
2017-11-13 01:36:52 +00:00
|
|
|
BOOL
|
2016-08-08 20:30:36 +00:00
|
|
|
InputList_Process(VOID);
|
|
|
|
|
2016-08-09 18:26:43 +00:00
|
|
|
BOOL
|
2016-08-08 20:30:36 +00:00
|
|
|
InputList_Add(LOCALE_LIST_NODE *pLocale, LAYOUT_LIST_NODE *pLayout);
|
|
|
|
|
2016-08-09 14:01:52 +00:00
|
|
|
VOID
|
|
|
|
InputList_SetDefault(INPUT_LIST_NODE *pNode);
|
|
|
|
|
2016-08-08 20:30:36 +00:00
|
|
|
VOID
|
|
|
|
InputList_Remove(INPUT_LIST_NODE *pNode);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
InputList_Destroy(VOID);
|
|
|
|
|
|
|
|
INPUT_LIST_NODE*
|
2016-08-09 14:01:52 +00:00
|
|
|
InputList_GetFirst(VOID);
|