mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-26 03:23:46 +08:00
cleanup
This commit is contained in:
+14
-26
@@ -11,35 +11,35 @@
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
/*
|
||||
* This file is part of MiniGUI, a mature cross-platform windowing
|
||||
* This file is part of MiniGUI, a mature cross-platform windowing
|
||||
* and Graphics User Interface (GUI) support system for embedded systems
|
||||
* and smart IoT devices.
|
||||
*
|
||||
* Copyright (C) 2002~2018, Beijing FMSoft Technologies Co., Ltd.
|
||||
*
|
||||
* Copyright (C) 2002~2020, Beijing FMSoft Technologies Co., Ltd.
|
||||
* Copyright (C) 1998~2002, WEI Yongming
|
||||
*
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*
|
||||
* Or,
|
||||
*
|
||||
*
|
||||
* As this program is a library, any link to this program must follow
|
||||
* GNU General Public License version 3 (GPLv3). If you cannot accept
|
||||
* GPLv3, you need to be licensed from FMSoft.
|
||||
*
|
||||
*
|
||||
* If you have got a commercial license of this program, please use it
|
||||
* under the terms and conditions of the commercial license.
|
||||
*
|
||||
*
|
||||
* For more information about the commercial license, please refer to
|
||||
* <http://www.minigui.com/blog/minigui-licensing-policy/>.
|
||||
*/
|
||||
@@ -52,16 +52,7 @@
|
||||
#ifndef GUI_SERVER_H
|
||||
#define GUI_SERVER_H
|
||||
|
||||
#define LOCKFILE "/var/tmp/mginit"
|
||||
#define CS_PATH "/var/tmp/minigui" /* well-known name */
|
||||
|
||||
#define THRES_LIVE 500 /* 5 seconds */
|
||||
#define TO_SOCKIO 100 /* 1 seconds */
|
||||
|
||||
#define DEF_NR_GLOBALS 16
|
||||
#define MAX_NR_LAYERS 64
|
||||
|
||||
#define IPC_KEY_BASE 0x464D4700
|
||||
#include "constants.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -75,16 +66,13 @@ int serv_accept (int listenfd, pid_t *pidptr, uid_t *uidptr);
|
||||
/* defined in kernel/sharedres.c. */
|
||||
void __mg_delete_sharedres_sem (void);
|
||||
|
||||
/* defined in kernel/layer.c. */
|
||||
void __mg_delete_zi_sem (void);
|
||||
|
||||
int __mg_init_layers (void);
|
||||
void __mg_cleanup_layers (void);
|
||||
|
||||
BOOL __mg_is_valid_layer (MG_Layer* layer);
|
||||
|
||||
void __mg_get_layer_info (int cli, const char* layer_name, LAYERINFO* info);
|
||||
void __mg_client_join_layer (int cli,
|
||||
void __mg_client_join_layer (int cli,
|
||||
const JOINLAYERINFO* info, JOINEDCLIENTINFO* joined_info);
|
||||
|
||||
int __mg_client_add (int fd, pid_t pid, uid_t uid);
|
||||
@@ -100,7 +88,7 @@ int __mg_send2client (const MSG* msg, MG_Client* client);
|
||||
void __mg_set_active_client (MG_Client* client);
|
||||
|
||||
void __mg_start_server_desktop (void);
|
||||
int __mg_post_msg_by_znode (const ZORDERINFO* zi, int znode,
|
||||
int __mg_post_msg_by_znode (const ZORDERINFO* zi, int znode,
|
||||
int message, WPARAM wParam, LPARAM lParam);
|
||||
intptr_t __mg_do_zorder_operation (int cli, const ZORDEROPINFO* info);
|
||||
intptr_t __mg_do_zorder_maskrect_operation (int cli, const ZORDERMASKRECTOPINFO* info);
|
||||
@@ -108,7 +96,7 @@ int __mg_remove_all_znodes_of_client (int cli);
|
||||
|
||||
int __mg_handle_normal_mouse_move (const ZORDERINFO* zi, int x, int y);
|
||||
int __mg_get_znode_at_point (const ZORDERINFO* zi, int x, int y, HWND* hwnd);
|
||||
|
||||
|
||||
HWND __mg_do_reghook_operation (int cli, const REGHOOKINFO* info);
|
||||
int __mg_handle_mouse_hook (int message, WPARAM wParam, LPARAM lParam);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user