00001 #pragma once
00002 #ifndef SCH_PIPE_H
00003 #define SCH_PIPE_H
00004
00005 #include <sys/types.h>
00006 #include <unistd.h>
00007
00008 typedef struct {
00009 int pfd;
00010 pid_t pid;
00011 char *execpath;
00012 } sch_pipedata_t;
00013
00014 int sch_pipe_connect (SEAP_desc_t *desc, const char *uri, uint32_t flags);
00015 int sch_pipe_openfd (SEAP_desc_t *desc, int fd, uint32_t flags);
00016 int sch_pipe_openfd2 (SEAP_desc_t *desc, int ifd, int ofd, uint32_t flags);
00017 ssize_t sch_pipe_recv (SEAP_desc_t *desc, void *buf, size_t len, uint32_t flags);
00018 ssize_t sch_pipe_send (SEAP_desc_t *desc, void *buf, size_t len, uint32_t flags);
00019 ssize_t sch_pipe_sendsexp (SEAP_desc_t *desc, SEXP_t *sexp, uint32_t flags);
00020 int sch_pipe_close (SEAP_desc_t *desc, uint32_t flags);
00021 int sch_pipe_select (SEAP_desc_t *desc, int ev, uint16_t timeout, uint32_t flags);
00022
00023 #endif