Debian Codegraph @

unikey/usrkeymap.h

raw
1 // -*- coding:unix; mode:c++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2 /* Unikey Vietnamese Input Method
3 * Copyright (C) 2000-2005 Pham Kim Long
4 * Contact:
5 * [email protected]
6 * UniKey project: http://unikey.org
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the
20 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor
21 * Boston, MA 02110-1301, USA.
22 */
23
24 #ifndef __UNIKEY_USER_KEY_MAP_H
25 #define __UNIKEY_USER_KEY_MAP_H
26
27 #include "inputproc.h"
28 struct UkKeyMapPair {
29 unsigned char key;
30 int action;
31 };
32
33 DllInterface int UkLoadKeyMap(const char *fileName, int keyMap[256]);
34 DllInterface int UkLoadKeyOrderMap(const char *fileName, UkKeyMapPair *pMap, int *pMapCount);
35 DllInterface int UkStoreKeyOrderMap(const char *fileName, UkKeyMapPair *pMap, int mapCount);
36
37 #endif