Annotation of OpenXM/src/ox_ntl/oxserv.h, Revision 1.3
1.3 ! iwane 1: /* $OpenXM: OpenXM/src/ox_ntl/oxserv.h,v 1.2 2003/11/08 12:34:00 iwane Exp $ */
1.1 iwane 2:
3: #ifndef __OX_SERVE_H__
4: #define __OX_SERVE_H__
5:
1.3 ! iwane 6: #if HAVE_CONFIG_H
! 7: #include "config.h"
! 8: #endif
! 9:
! 10: #include <signal.h>
1.1 iwane 11: #include "ox_toolkit.h"
12:
1.2 iwane 13: #ifndef OXSERV_FAILURE
1.1 iwane 14: #define OXSERV_FAILURE (-1)
15: #define OXSERV_SUCCESS ( 0)
1.2 iwane 16: #endif
1.1 iwane 17:
18: #ifdef __cplusplus
19: extern "C" {
20: #endif
21:
1.3 ! iwane 22: /* signal */
! 23: extern sigset_t G_oxserv_sigusr1;
! 24:
! 25: #define BLOCK_INPUT() do { \
! 26: sigprocmask(SIG_BLOCK, &G_oxserv_sigusr1, NULL); \
! 27: } while(0)
! 28:
! 29: #define UNBLOCK_INPUT() do { \
! 30: sigprocmask(SIG_UNBLOCK, &G_oxserv_sigusr1, NULL); \
! 31: } while(0)
1.2 iwane 32:
1.1 iwane 33: /* c.f. mathcap_init in ox_toolkit */
1.2 iwane 34: int oxserv_init (OXFILE *, int, char *, char *, int *, int *);
35: void oxserv_dest (void);
1.1 iwane 36:
1.2 iwane 37: int oxserv_receive (OXFILE *);
1.1 iwane 38:
1.2 iwane 39: int oxserv_set (int mode, void *, void *);
1.1 iwane 40:
1.2 iwane 41: #define OXSERV_SET_EXECUTE_STRING_PARSER (0x01)
42: #define OXSERV_SET_EXECUTE_FUNCTION (0x02)
1.1 iwane 43: #define OXSERV_SET_CONVERT_CMO (0x03)
1.2 iwane 44: #define OXSERV_SET_DELETE_CMO (0x04)
45: #define OXSERV_SET_GET_CMOTAG (0x05)
1.1 iwane 46:
47:
48: #ifdef __cplusplus
49: }
50: #endif
51:
52: #endif /* !__OX_SERVE_H__ */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>