00001 00002 #ifndef _SIC_GETCAR_H_ 00003 #define _SIC_GETCAR_H_ 00004 00010 /***************************************************************************** 00011 * Dependencies * 00012 *****************************************************************************/ 00013 00014 #include "cfc.h" 00015 #include "sic_comm.h" 00016 00017 /***************************************************************************** 00018 * Macros & Definitions * 00019 *****************************************************************************/ 00020 00021 typedef struct { 00022 char name[256]; 00023 task_t task; 00024 #ifdef WIN32 00025 HWND hWnd; 00026 #endif 00027 } win_struct_t; 00028 00029 #define NWINDOWS 10 00030 extern win_struct_t detach_win[NWINDOWS]; 00031 00032 #define sic_c_do_exit CFC_EXPORT_NAME( sic_c_do_exit) 00033 #define sic_c_on_exit CFC_EXPORT_NAME( sic_c_on_exit) 00034 #define get_com_params CFC_EXPORT_NAME( get_com_params) 00035 #define prompt_loop CFC_EXPORT_NAME( prompt_loop) 00036 #define read_linec CFC_EXPORT_NAME( read_linec) 00037 #define search_clients CFC_EXPORT_NAME( search_clients) 00038 #define trap_sigus CFC_EXPORT_NAME( trap_sigus) 00039 #define xgag_command CFC_EXPORT_NAME( xgag_command) 00040 #define xgag_detach CFC_EXPORT_NAME( xgag_detach) 00041 #define xgag_end_detach CFC_EXPORT_NAME( xgag_end_detach) 00042 #define xgag_endmenu CFC_EXPORT_NAME( xgag_endmenu) 00043 #define xgag_key CFC_EXPORT_NAME( xgag_key) 00044 #define xgag_launch CFC_EXPORT_NAME( xgag_launch) 00045 #define xgag_menu CFC_EXPORT_NAME( xgag_menu) 00046 #define xgag_timer CFC_EXPORT_NAME( xgag_timer) 00047 #define xgag_wait CFC_EXPORT_NAME( xgag_wait) 00048 00049 /***************************************************************************** 00050 * Function prototypes * 00051 *****************************************************************************/ 00052 00053 void trap_SIGUSR2( int lesignal); 00054 00055 void CFC_API sic_c_do_exit( int *status); 00056 void CFC_API sic_c_on_exit( ); 00057 void CFC_API get_com_params( int *keyboard, int *idsemap, int *idmemory); 00058 void CFC_API prompt_loop( int *code); 00059 int CFC_API read_linec( CFC_FzString prompt, CFC_FzString line, int *code, int *wait_command); 00060 void CFC_API search_clients( int *code); 00061 void CFC_API trap_sigus( ); 00062 void CFC_API xgag_command( CFC_FzString label, CFC_FzString command); 00063 void CFC_API xgag_detach( CFC_FzString txt, CFC_FzString name); 00064 void CFC_API xgag_end_detach( CFC_FzString name); 00065 void CFC_API xgag_endmenu( ); 00066 void CFC_API xgag_key( CFC_FzString key); 00067 void CFC_API xgag_launch( ); 00068 void CFC_API xgag_menu( CFC_FzString label); 00069 void CFC_API xgag_timer( int *nh); 00070 void CFC_API xgag_wait( ); 00071 00072 #endif /* _SIC_GETCAR_H_ */ 00073
1.5.1