fix naming convention

This commit is contained in:
m1k1o
2020-06-21 03:05:58 +02:00
parent 01d6ea5ad0
commit 832968e8fc
6 changed files with 8 additions and 8 deletions

View File

@ -166,7 +166,7 @@ short XGetScreenRate() {
return XRRConfigCurrentRate(conf);
}
void SetKeyboard(char *layout) {
void SetKeyboardLayout(char *layout) {
// TOOD: refactor, use native API.
char cmd[13] = "setxkbmap ";
strncat(cmd, layout, 2);

View File

@ -211,7 +211,7 @@ func GetScreenSize() *types.ScreenSize {
return nil
}
func SetKeyboard(layout string) {
func SetKeyboardLayout(layout string) {
mu.Lock()
defer mu.Unlock()
@ -222,7 +222,7 @@ func SetKeyboard(layout string) {
layoutUnsafe := C.CString(layout)
defer C.free(unsafe.Pointer(layoutUnsafe))
C.SetKeyboard(layoutUnsafe)
C.SetKeyboardLayout(layoutUnsafe)
}
//export goCreateScreenSize

View File

@ -39,6 +39,6 @@
void XDisplayClose(void);
void XDisplaySet(char *input);
void SetKeyboard(char *layout);
void SetKeyboardLayout(char *layout);
#endif