16 #include "wsutil/processes.h" 23 #define ws_pipe_handle HANDLE 24 #define ws_get_pipe_handle(pipe_fd) ((HANDLE)_get_osfhandle(pipe_fd)) 26 #define ws_pipe_handle int 27 #define ws_get_pipe_handle(pipe_fd) (pipe_fd) 52 WS_DLL_PUBLIC gboolean ws_pipe_spawn_sync ( gchar * dirname, gchar * command, gint argc, gchar ** argv, gchar ** command_output );
58 WS_DLL_PUBLIC
void ws_pipe_init(
ws_pipe_t *ws_pipe);
63 static inline gboolean ws_pipe_valid(
ws_pipe_t *ws_pipe)
65 return ws_pipe && ws_pipe->pid && ws_pipe->pid != WS_INVALID_PID;
74 WS_DLL_PUBLIC GPid ws_pipe_spawn_async (
ws_pipe_t * ws_pipe, GPtrArray * args );
84 WS_DLL_PUBLIC gboolean ws_pipe_wait_for_pipe(HANDLE * pipe_handles,
int num_pipe_handles, HANDLE pid);
92 WS_DLL_PUBLIC gboolean ws_pipe_data_available(
int pipe_fd);
101 WS_DLL_PUBLIC gboolean ws_read_string_from_pipe(ws_pipe_handle read_pipe,
102 gchar *
buffer,
size_t buffer_size);
Definition: mcast_stream.h:30