This commit is contained in:
Vincent Wei
2020-02-16 18:46:40 +08:00
parent 9c2be6c69b
commit f86e977e3d
+16 -37
View File
@@ -15,7 +15,7 @@
* 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
@@ -49,19 +49,19 @@
** Create date: 2000/06/11
*/
#ifndef __ourhdr_h
#define __ourhdr_h
#ifndef __OURHDR_H
#define __OURHDR_H
#ifndef WIN32
#include <sys/time.h> /* required for some of our prototypes */
#include <sys/types.h> /* required for some of our prototypes */
#include <sys/time.h> /* required for some of our prototypes */
#include <sys/types.h> /* required for some of our prototypes */
#endif
#include <stdio.h> /* for convenience */
#include <stdlib.h> /* for convenience */
#include <string.h> /* for convenience */
#include <stdio.h> /* for convenience */
#include <stdlib.h> /* for convenience */
#include <string.h> /* for convenience */
#ifndef WIN32
#include <unistd.h> /* for convenience */
#include <syslog.h> /* for convenience */
#include <unistd.h> /* for convenience */
#include <syslog.h> /* for convenience */
#include <sys/ipc.h>
#include <sys/sem.h>
#include <sys/shm.h>
@@ -86,33 +86,12 @@ union semun {
#define MAXLINE 4096 /* max line length */
#ifdef _MGRM_PROCESSES
void __mg_err_dump(const char *, ...); /* {App misc_source} */
void __mg_err_msg(const char *, ...);
void __mg_err_quit(const char *, ...);
void __mg_err_ret(const char *, ...);
void __mg_err_sys(const char *, ...);
void __mg_err_dump (const char *, ...); /* {App misc_source} */
void __mg_err_msg (const char *, ...);
void __mg_err_quit (const char *, ...);
void __mg_err_ret (const char *, ...);
void __mg_err_sys (const char *, ...);
#endif
#if 0
void log_msg(const char *, ...); /* {App misc_source} */
void log_open(const char *, int, int);
void log_quit(const char *, ...);
void log_ret(const char *, ...);
void log_sys(const char *, ...);
#endif
typedef struct listen_fd {
int type;
int fd;
void* hwnd;
void* context;
} LISTEN_FD;
extern fd_set mg_rfdset;
extern fd_set* mg_wfdset;
extern fd_set* mg_efdset;
extern int mg_maxfd;
extern LISTEN_FD mg_listen_fds [];
#endif /* __ourhdr_h */
#endif /* __OURHDR_H */