diff options
author | Matt Johnston <matt@ucc.asn.au> | 2008-09-15 13:41:18 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2008-09-15 13:41:18 +0000 |
commit | 7ac24b10b9967e396d5c97395eb70084e1697947 (patch) | |
tree | 556d3225dd1c4088dd6af486631ef96e2860a18f /dbutil.h | |
parent | d7c1e582173855d201f316b636f19639906d2f24 (diff) |
- Generalise spawn_command function
--HG--
extra : convert_revision : 9927a5fe084c8053c747a40515f0213141ef8139
Diffstat (limited to 'dbutil.h')
-rw-r--r-- | dbutil.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -49,6 +49,8 @@ char * stripcontrol(const char * text); unsigned char * getaddrstring(struct sockaddr_storage* addr, int withport); int dropbear_listen(const char* address, const char* port, int *socks, unsigned int sockcount, char **errstring, int *maxfd); +int spawn_command(void(*exec_fn)(void *user_data), void *exec_data, + int *writefd, int *readfd, int *errfd, pid_t *pid); int connect_remote(const char* remotehost, const char* remoteport, int nonblocking, char ** errstring); char* getaddrhostname(struct sockaddr_storage * addr); |