From cf18a075e161cffb6c825751c2406618e430fb0f Mon Sep 17 00:00:00 2001 From: Liu Date: Wed, 18 Sep 2024 23:54:08 +0800 Subject: [PATCH] fixup! feat: lib/platform -> lib/ptk --- lib/i18n/include/i18n.h | 2 +- lib/ptk/include/ptk/steptimer.h | 2 +- lib/ptk/src/linux/app.c | 2 +- lib/ptk/src/linux/fbapp.c | 2 +- lib/ptk/src/linux/fbapp.h | 4 ++-- lib/ptk/src/linux/ime.c | 2 +- lib/ptk/src/linux/keyboard.c | 2 +- lib/ptk/src/linux/keyboard.h | 10 ++++++++++ lib/ptk/src/linux/mouse.c | 2 +- lib/ptk/src/linux/mouse.h | 11 +++++++++++ lib/ptk/src/linux/x11app.c | 2 +- lib/ptk/src/linux/x11app.h | 4 ++-- lib/ptk/src/linux/x11clipboard.c | 2 +- lib/ptk/src/linux/x11clipboard.h | 10 ++++++++++ lib/ui/include/ui/updater.h | 4 ++-- 15 files changed, 46 insertions(+), 15 deletions(-) diff --git a/lib/i18n/include/i18n.h b/lib/i18n/include/i18n.h index 9a79363c8..07e15eb53 100644 --- a/lib/i18n/include/i18n.h +++ b/lib/i18n/include/i18n.h @@ -1,4 +1,4 @@ -/* +/* * lib/i18n/include/i18n.h * * Copyright (c) 2023-2024, Liu Chao All rights reserved. diff --git a/lib/ptk/include/ptk/steptimer.h b/lib/ptk/include/ptk/steptimer.h index 283e93102..934964ed6 100644 --- a/lib/ptk/include/ptk/steptimer.h +++ b/lib/ptk/include/ptk/steptimer.h @@ -1,5 +1,5 @@ /* - * lib/ptk/include/ptk/step_timer.h + * lib/ptk/include/ptk/steptimer.h * * Copyright (c) 2023-2024, Liu Chao All rights reserved. * diff --git a/lib/ptk/src/linux/app.c b/lib/ptk/src/linux/app.c index c9f23e357..130ee89ea 100644 --- a/lib/ptk/src/linux/app.c +++ b/lib/ptk/src/linux/app.c @@ -1,5 +1,5 @@ /* - * lib/ptk/src/linux/linux_app.c + * lib/ptk/src/linux/app.c * * Copyright (c) 2023-2024, Liu Chao All rights reserved. * diff --git a/lib/ptk/src/linux/fbapp.c b/lib/ptk/src/linux/fbapp.c index 21db245ed..122cfdb10 100644 --- a/lib/ptk/src/linux/fbapp.c +++ b/lib/ptk/src/linux/fbapp.c @@ -1,5 +1,5 @@ /* - * lib/ptk/src/linux/fb_app.c + * lib/ptk/src/linux/fbapp.c * * Copyright (c) 2023-2024, Liu Chao All rights reserved. * diff --git a/lib/ptk/src/linux/fbapp.h b/lib/ptk/src/linux/fbapp.h index 79f84e3b4..2fa861a4e 100644 --- a/lib/ptk/src/linux/fbapp.h +++ b/lib/ptk/src/linux/fbapp.h @@ -1,5 +1,5 @@ -/* - * lib/ptk/src/linux/fb_app.h +/* + * lib/ptk/src/linux/fbapp.h * * Copyright (c) 2023-2024, Liu Chao All rights reserved. * diff --git a/lib/ptk/src/linux/ime.c b/lib/ptk/src/linux/ime.c index 52fe4e0c7..0506c6fc2 100644 --- a/lib/ptk/src/linux/ime.c +++ b/lib/ptk/src/linux/ime.c @@ -1,5 +1,5 @@ /* - * lib/ptk/src/linux/linux_ime.c: -- The input method engine support for linux. + * lib/ptk/src/linux/ime.c: -- The input method engine support for linux. * * Copyright (c) 2018-2024, Liu chao All rights reserved. * diff --git a/lib/ptk/src/linux/keyboard.c b/lib/ptk/src/linux/keyboard.c index 7b8ae981d..75db08f2b 100644 --- a/lib/ptk/src/linux/keyboard.c +++ b/lib/ptk/src/linux/keyboard.c @@ -1,5 +1,5 @@ /* - * lib/ptk/src/linux/linux_keyboard.c: -- Keyboard support for linux. + * lib/ptk/src/linux/keyboard.c: -- Keyboard support for linux. * * Copyright (c) 2018-2024, Liu chao All rights reserved. * diff --git a/lib/ptk/src/linux/keyboard.h b/lib/ptk/src/linux/keyboard.h index 39b0b2b6b..f564a69ca 100644 --- a/lib/ptk/src/linux/keyboard.h +++ b/lib/ptk/src/linux/keyboard.h @@ -1,3 +1,13 @@ +/* + * lib/ptk/src/linux/keyboard.h + * + * Copyright (c) 2024, Liu Chao All rights reserved. + * + * SPDX-License-Identifier: MIT + * + * This file is part of LCUI, distributed under the MIT License found in the + * LICENSE.TXT file in the root directory of this source tree. + */ int ptk_linux_keyboard_init(void); int ptk_linux_keyboard_destroy(void); diff --git a/lib/ptk/src/linux/mouse.c b/lib/ptk/src/linux/mouse.c index b75384742..314056bd5 100644 --- a/lib/ptk/src/linux/mouse.c +++ b/lib/ptk/src/linux/mouse.c @@ -1,5 +1,5 @@ /* - * lib/ptk/src/linux/linux_mouse.c: -- Mouse support for linux. + * lib/ptk/src/linux/mouse.c: -- Mouse support for linux. * * Copyright (c) 2018-2024, Liu chao All rights reserved. * diff --git a/lib/ptk/src/linux/mouse.h b/lib/ptk/src/linux/mouse.h index 5ae52213d..ca6c8dec9 100644 --- a/lib/ptk/src/linux/mouse.h +++ b/lib/ptk/src/linux/mouse.h @@ -1,3 +1,14 @@ +/* + * lib/ptk/src/linux/mouse.h + * + * Copyright (c) 2024, Liu Chao All rights reserved. + * + * SPDX-License-Identifier: MIT + * + * This file is part of LCUI, distributed under the MIT License found in the + * LICENSE.TXT file in the root directory of this source tree. + */ + int ptk_linux_mouse_init(void); int ptk_linux_mouse_destroy(void); diff --git a/lib/ptk/src/linux/x11app.c b/lib/ptk/src/linux/x11app.c index 279ac79e1..788ef6850 100644 --- a/lib/ptk/src/linux/x11app.c +++ b/lib/ptk/src/linux/x11app.c @@ -1,5 +1,5 @@ /* - * lib/ptk/src/linux/x11_app.c + * lib/ptk/src/linux/x11app.c * * Copyright (c) 2023-2024, Liu Chao All rights reserved. * diff --git a/lib/ptk/src/linux/x11app.h b/lib/ptk/src/linux/x11app.h index ab7b285d9..0316e8245 100644 --- a/lib/ptk/src/linux/x11app.h +++ b/lib/ptk/src/linux/x11app.h @@ -1,5 +1,5 @@ -/* - * lib/ptk/src/app.h +/* + * lib/ptk/src/linux/x11app.h * * Copyright (c) 2023-2024, Liu Chao All rights reserved. * diff --git a/lib/ptk/src/linux/x11clipboard.c b/lib/ptk/src/linux/x11clipboard.c index 1fab61de8..223989347 100644 --- a/lib/ptk/src/linux/x11clipboard.c +++ b/lib/ptk/src/linux/x11clipboard.c @@ -1,5 +1,5 @@ /* - * lib/ptk/src/linux/linux_x11clipboard.c: clipboard support for linux x11 + * lib/ptk/src/linux/x11clipboard.c: clipboard support for linux x11 * * Copyright (c) 2018-2024, Liu chao All rights reserved. * diff --git a/lib/ptk/src/linux/x11clipboard.h b/lib/ptk/src/linux/x11clipboard.h index 1835f7b68..426936f6d 100644 --- a/lib/ptk/src/linux/x11clipboard.h +++ b/lib/ptk/src/linux/x11clipboard.h @@ -1,3 +1,13 @@ +/* + * lib/ptk/src/linux/x11clipboard.h + * + * Copyright (c) 2024, Liu Chao All rights reserved. + * + * SPDX-License-Identifier: MIT + * + * This file is part of LCUI, distributed under the MIT License found in the + * LICENSE.TXT file in the root directory of this source tree. + */ #include "ptk/clipboard.h" diff --git a/lib/ui/include/ui/updater.h b/lib/ui/include/ui/updater.h index 15d5edad1..653267a71 100644 --- a/lib/ui/include/ui/updater.h +++ b/lib/ui/include/ui/updater.h @@ -1,5 +1,5 @@ -/* - * lib/ui/include/ui_updater.h +/* + * lib/ui/include/ui/updater.h * * Copyright (c) 2023-2024, Liu Chao All rights reserved. *