Added exec functions
This commit is contained in:
@@ -13,18 +13,20 @@ typedef struct _XmdBuffer XmdBuffer;
|
||||
#define XmdBufferNew(type) _XmdBufferNew(sizeof(type));
|
||||
XmdBuffer *_XmdBufferNew (Cardinal size);
|
||||
|
||||
/* XmdBufferPush adds a new element to the buffer. */
|
||||
/* XmdBufferPush adds a new element to the buffer. If element is NULL, the new
|
||||
element in the buffer is set to all zeros. */
|
||||
void XmdBufferPush (XmdBuffer *buffer, void *element);
|
||||
|
||||
/* XmdBufferPop copies the last element into element, and removes it from the
|
||||
buffer. */
|
||||
buffer. If element is NULL, it removes the element without copying it. */
|
||||
void XmdBufferPop (XmdBuffer *buffer, void *element);
|
||||
|
||||
/* XmdBufferPoke sets a single element of the buffer. */
|
||||
/* XmdBufferPoke sets a single element of the buffer. If element is NULL, the
|
||||
element in the buffer is instead set to all zeros. */
|
||||
void XmdBufferPoke (XmdBuffer *buffer, Cardinal index, void *element);
|
||||
|
||||
/* XmdBufferPeek copies the value of a single element of the buffer into
|
||||
element. */
|
||||
element. If element is NULL, this function does nothing. */
|
||||
void XmdBufferPeek (XmdBuffer *buffer, Cardinal index, void *element);
|
||||
|
||||
/* XmdBufferBreak frees the buffer without freeing its data. Its data is
|
||||
|
||||
12
libXmd/include/Xmd/Exec.h
Normal file
12
libXmd/include/Xmd/Exec.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef _XmdExec_h
|
||||
#define _XmdExec_h
|
||||
|
||||
#include <X11/Intrinsic.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
FILE *XmdVaPipedExecPath (const String file, pid_t *child, String mode, ...);
|
||||
|
||||
FILE *XmdPipedExecPath (const String file, pid_t *child, String mode, String const argv[]);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user