[BACK]Return to oxserv.h CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_ntl

Annotation of OpenXM/src/ox_ntl/oxserv.h, Revision 1.4

1.4     ! iwane       1: /* $OpenXM: OpenXM/src/ox_ntl/oxserv.h,v 1.3 2003/11/15 09:06:20 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 */
1.4     ! iwane      23: extern int      G_oxserv_sigusr1cnt;
        !            24: extern int      G_oxserv_sigusr1flag;
1.3       iwane      25:
                     26: #define        BLOCK_INPUT()   do { \
1.4     ! iwane      27:        G_oxserv_sigusr1cnt++;                  \
1.3       iwane      28: } while(0)
                     29:
                     30: #define        UNBLOCK_INPUT() do { \
1.4     ! iwane      31:        G_oxserv_sigusr1cnt--;          \
        !            32:        if (G_oxserv_sigusr1cnt == 0 && G_oxserv_sigusr1flag) { \
        !            33:                oxserv_sm_control_reset_connection(0);          \
        !            34:        }                                       \
1.3       iwane      35: } while(0)
1.2       iwane      36:
1.1       iwane      37: /* c.f. mathcap_init in ox_toolkit */
1.2       iwane      38: int     oxserv_init    (OXFILE *, int, char *, char *, int *, int *);
                     39: void    oxserv_dest    (void);
1.1       iwane      40:
1.2       iwane      41: int     oxserv_receive (OXFILE *);
1.1       iwane      42:
1.4     ! iwane      43: void    oxserv_sm_control_reset_connection(int);
        !            44:
1.2       iwane      45: int     oxserv_set     (int mode, void *, void *);
1.1       iwane      46:
1.2       iwane      47: #define OXSERV_SET_EXECUTE_STRING_PARSER        (0x01)
                     48: #define OXSERV_SET_EXECUTE_FUNCTION             (0x02)
1.1       iwane      49: #define OXSERV_SET_CONVERT_CMO                  (0x03)
1.2       iwane      50: #define OXSERV_SET_DELETE_CMO                   (0x04)
                     51: #define OXSERV_SET_GET_CMOTAG                   (0x05)
1.1       iwane      52:
1.4     ! iwane      53: /* debug */
        !            54: void   dprintf(const char *, ...);
1.1       iwane      55:
                     56: #ifdef __cplusplus
                     57: }
                     58: #endif
                     59:
                     60: #endif /* !__OX_SERVE_H__ */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>