From 1fd361a1ea06e44286c213ca1f814f49306fdc43 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 19 Aug 2006 03:12:28 +0000 Subject: Create Subversion repository git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/pm_system.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 lib/pm_system.h (limited to 'lib/pm_system.h') diff --git a/lib/pm_system.h b/lib/pm_system.h new file mode 100644 index 00000000..0605f888 --- /dev/null +++ b/lib/pm_system.h @@ -0,0 +1,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 -- cgit 1.4.1