2019-12-06 22:06:05 -07:00
|
|
|
#ifndef __CONFIG_H_INCLUDED
|
|
|
|
#define __CONFIG_H_INCLUDED
|
|
|
|
|
|
|
|
#include "wintype.h"
|
|
|
|
|
|
|
|
typedef void (*PEXITFUNC)(void);
|
|
|
|
|
2019-12-07 13:07:59 -07:00
|
|
|
/* global configuration data for UPIWIN */
|
2019-12-06 22:06:05 -07:00
|
|
|
typedef struct tagGLOBAL_CONFIG {
|
2019-12-07 13:07:59 -07:00
|
|
|
PCSTR framebuffer_device; /* name of frame buffer device */
|
|
|
|
PCSTR touchscreen_device; /* name of touchscreen device */
|
|
|
|
UINT32 button_debounce; /* minimum time between button up and next button down (ms) */
|
|
|
|
UINT32 sys_mq_length; /* length of system message queue */
|
2019-12-06 22:06:05 -07:00
|
|
|
} GLOBAL_CONFIG;
|
|
|
|
|
2019-12-07 13:07:59 -07:00
|
|
|
extern GLOBAL_CONFIG Gconfig; /* one global configuration to rule them all */
|
2019-12-06 22:06:05 -07:00
|
|
|
|
2019-12-06 22:37:20 -07:00
|
|
|
extern HRESULT Config_setup(int argc, char *argv[]);
|
2019-12-06 22:06:05 -07:00
|
|
|
extern HRESULT Config_exitfunc(PEXITFUNC pfn);
|
|
|
|
|
|
|
|
#endif /* __CONFIG_H_INCLUDED */
|