blob: 0605f88839365ddd744468ba39c5df933b2a6b98 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#ifndef PM_SYSTEM_H_INCLUDED
#define PM_SYSTEM_H_INCLUDED
#ifdef __cplusplus
extern "C" {
#endif
#if 0
} /* to fake out automatic code indenters */
#endif
void
pm_system(void stdinFeeder(int, void *),
void * const feederParm,
void stdoutAccepter(int, void *),
void * const accepterParm,
const char * const shellCommand);
struct bufferDesc {
/* This is just a parameter for the routines below */
unsigned int size;
unsigned char * buffer;
unsigned int * bytesTransferredP;
};
/* The following are a Standard Input feeder and a Standard Output accepter
for pm_system().
*/
void
pm_feed_from_memory(int const pipeToFeedFd,
void * const feederParm);
void
pm_accept_to_memory(int const pipetosuckFd,
void * const accepterParm);
#ifdef __cplusplus
}
#endif
#endif
|