| version 1.3, 2003/11/15 09:06:20 |
version 1.7, 2008/09/19 10:55:40 |
|
|
| /* $OpenXM: OpenXM/src/ox_ntl/oxserv.h,v 1.2 2003/11/08 12:34:00 iwane Exp $ */ |
/* $OpenXM: OpenXM/src/ox_ntl/oxserv.h,v 1.6 2004/07/11 00:32:17 iwane Exp $ */ |
| |
|
| #ifndef __OX_SERVE_H__ |
#ifndef __OX_SERVE_H__ |
| #define __OX_SERVE_H__ |
#define __OX_SERVE_H__ |
|
|
| #endif |
#endif |
| |
|
| /* signal */ |
/* signal */ |
| extern sigset_t G_oxserv_sigusr1; |
extern int G_oxserv_sigusr1cnt; |
| |
extern int G_oxserv_sigusr1flag; |
| |
|
| #define BLOCK_INPUT() do { \ |
#define BLOCK_INPUT() do { \ |
| sigprocmask(SIG_BLOCK, &G_oxserv_sigusr1, NULL); \ |
G_oxserv_sigusr1cnt++; \ |
| } while(0) |
} while(0) |
| |
|
| #define UNBLOCK_INPUT() do { \ |
#define UNBLOCK_INPUT() do { \ |
| sigprocmask(SIG_UNBLOCK, &G_oxserv_sigusr1, NULL); \ |
G_oxserv_sigusr1cnt--; \ |
| |
if (G_oxserv_sigusr1cnt == 0 && G_oxserv_sigusr1flag) { \ |
| |
oxserv_sm_control_reset_connection(0); \ |
| |
} \ |
| } while(0) |
} while(0) |
| |
|
| /* c.f. mathcap_init in ox_toolkit */ |
/* c.f. mathcap_init in ox_toolkit */ |
| Line 36 void oxserv_dest (void); |
|
| Line 40 void oxserv_dest (void); |
|
| |
|
| int oxserv_receive (OXFILE *); |
int oxserv_receive (OXFILE *); |
| |
|
| |
void oxserv_sm_control_reset_connection(int); |
| |
|
| int oxserv_set (int mode, void *, void *); |
int oxserv_set (int mode, void *, void *); |
| |
|
| #define OXSERV_SET_EXECUTE_STRING_PARSER (0x01) |
#define OXSERV_SET_EXECUTE_STRING_PARSER (0x01) |
| Line 43 int oxserv_set (int mode, void *, void *); |
|
| Line 49 int oxserv_set (int mode, void *, void *); |
|
| #define OXSERV_SET_CONVERT_CMO (0x03) |
#define OXSERV_SET_CONVERT_CMO (0x03) |
| #define OXSERV_SET_DELETE_CMO (0x04) |
#define OXSERV_SET_DELETE_CMO (0x04) |
| #define OXSERV_SET_GET_CMOTAG (0x05) |
#define OXSERV_SET_GET_CMOTAG (0x05) |
| |
#define OXSERV_SET_CONVERT_STR (0x06) |
| |
|
| #ifdef __cplusplus |
#ifdef __cplusplus |
| } |
} |