24 #ifndef _SEAP_SCHEME_H
25 #define _SEAP_SCHEME_H
30 #include "_sexp-types.h"
31 #include "_seap-types.h"
32 #include "seap-descriptor.h"
33 #include "generic/common.h"
34 #include "../../../common/util.h"
40 int (*sch_connect) (
SEAP_desc_t *,
const char *, uint32_t);
42 int (*sch_openfd2) (
SEAP_desc_t *, int, int, uint32_t);
43 ssize_t (*sch_recv) (
SEAP_desc_t *,
void *, size_t, uint32_t);
44 ssize_t (*sch_send) (
SEAP_desc_t *,
void *, size_t, uint32_t);
47 int (*sch_select) (
SEAP_desc_t *, int, uint16_t, uint32_t);
52 #define SCH_CONNECT(idx, ...) __schtbl[idx].sch_connect (__VA_ARGS__)
53 #define SCH_OPENFD(idx, ...) __schtbl[idx].sch_openfd (__VA_ARGS__)
54 #define SCH_OPENFD2(idx, ...) __schtbl[idx].sch_openfd2 (__VA_ARGS__)
55 #define SCH_RECV(idx, ...) __schtbl[idx].sch_recv (__VA_ARGS__)
56 #define SCH_SEND(idx, ...) __schtbl[idx].sch_send (__VA_ARGS__)
57 #define SCH_CLOSE(idx, ...) __schtbl[idx].sch_close (__VA_ARGS__)
58 #define SCH_SENDSEXP(idx, ...) __schtbl[idx].sch_sendsexp (__VA_ARGS__)
59 #define SCH_SELECT(idx, ...) __schtbl[idx].sch_select (__VA_ARGS__)
61 #define SEAP_IO_EVREAD 0x01
62 #define SEAP_IO_EVWRITE 0x02
63 #define SEAP_IO_EVANY 0x08
65 #define SEAP_RECVBUF_SIZE 4*4096
66 #define SEAP_SENDBUF_SIZE 4*4096
68 SEAP_scheme_t SEAP_scheme_search (
const SEAP_schemefn_t fntable[],
const char *sch,
size_t schlen);
75 #include "sch_dummy.h"
79 #include "sch_generic.h"
Definition: _seap-scheme.h:38
Definition: seap-descriptor.h:48
Definition: sexp-types.h:82