mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
cmake: initial commit
This commit is contained in:
4
include/CMakeLists.txt
Normal file
4
include/CMakeLists.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
# include
|
||||
|
||||
file(GLOB HEADERS "freerdp/*.h")
|
||||
install_files(/include/oshwcollect FILES ${HEADERS})
|
||||
44
include/freerdp/kbd.h
Normal file
44
include/freerdp/kbd.h
Normal file
@@ -0,0 +1,44 @@
|
||||
/**
|
||||
* FreeRDP: A Remote Desktop Protocol Client
|
||||
* XKB-based keyboard mapping
|
||||
*
|
||||
* Copyright 2009 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef __FREERDP_KBD_H
|
||||
#define __FREERDP_KBD_H
|
||||
|
||||
#include "types/base.h"
|
||||
|
||||
#define RDP_KEYBOARD_LAYOUT_TYPE_STANDARD 1
|
||||
#define RDP_KEYBOARD_LAYOUT_TYPE_VARIANT 2
|
||||
#define RDP_KEYBOARD_LAYOUT_TYPE_IME 4
|
||||
|
||||
typedef struct rdp_keyboard_layout
|
||||
{
|
||||
uint32 code;
|
||||
char name[50];
|
||||
} rdpKeyboardLayout;
|
||||
|
||||
rdpKeyboardLayout *
|
||||
freerdp_kbd_get_layouts(int types);
|
||||
unsigned int
|
||||
freerdp_kbd_init(void *dpy, unsigned int keyboard_layout_id);
|
||||
uint8
|
||||
freerdp_kbd_get_scancode_by_keycode(uint8 keycode, fbool * extended);
|
||||
uint8
|
||||
freerdp_kbd_get_scancode_by_virtualkey(int vkcode, fbool * extended);
|
||||
|
||||
#endif /* __FREERDP_KBD_H */
|
||||
47
include/freerdp/types/base.h
Normal file
47
include/freerdp/types/base.h
Normal file
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
* FreeRDP: A Remote Desktop Protocol Client
|
||||
* Base Types
|
||||
*
|
||||
* Copyright 2009-2011 Jay Sorg
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef __TYPES_BASE_H
|
||||
#define __TYPES_BASE_H
|
||||
|
||||
typedef unsigned char uint8;
|
||||
typedef signed char sint8;
|
||||
typedef unsigned short uint16;
|
||||
typedef signed short sint16;
|
||||
typedef unsigned int uint32;
|
||||
typedef signed int sint32;
|
||||
#ifdef _WIN32
|
||||
typedef unsigned __int64 uint64;
|
||||
typedef signed __int64 sint64;
|
||||
#else
|
||||
typedef unsigned long long uint64;
|
||||
typedef signed long long sint64;
|
||||
#endif
|
||||
|
||||
#ifndef True
|
||||
#define True (1)
|
||||
#endif
|
||||
|
||||
#ifndef False
|
||||
#define False (0)
|
||||
#endif
|
||||
|
||||
typedef int fbool;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user