diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-08-19 03:12:28 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-08-19 03:12:28 +0000 |
commit | 1fd361a1ea06e44286c213ca1f814f49306fdc43 (patch) | |
tree | 64c8c96cf54d8718847339a403e5e67b922e8c3f /lib/pm_system.h | |
download | netpbm-mirror-1fd361a1ea06e44286c213ca1f814f49306fdc43.tar.gz netpbm-mirror-1fd361a1ea06e44286c213ca1f814f49306fdc43.tar.xz netpbm-mirror-1fd361a1ea06e44286c213ca1f814f49306fdc43.zip |
Create Subversion repository
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib/pm_system.h')
-rw-r--r-- | lib/pm_system.h | 43 |
1 files changed, 43 insertions, 0 deletions
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 |