blob: 4a0211130f9c6929c6021b1e4c0dcdd9a4c52bff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/*
* Copyright (c) 2015 Lars Kanis. All rights reserved.
*
* For licensing, see LICENSE.SPECS
*/
#ifndef PIPEHELPER_H
#define PIPEHELPER_H
#ifdef _WIN32
#define FD_TYPE HANDLE
#else
#define FD_TYPE int
#endif
int pipeHelperCreatePipe(FD_TYPE pipefd[2]);
char pipeHelperReadChar(FD_TYPE fd, int timeout);
int pipeHelperWriteChar(FD_TYPE fd, char c);
void pipeHelperClosePipe(FD_TYPE fd);
#endif
|