summaryrefslogtreecommitdiffhomepage
path: root/dbutil.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2008-09-15 13:41:18 +0000
committerMatt Johnston <matt@ucc.asn.au>2008-09-15 13:41:18 +0000
commit7ac24b10b9967e396d5c97395eb70084e1697947 (patch)
tree556d3225dd1c4088dd6af486631ef96e2860a18f /dbutil.h
parentd7c1e582173855d201f316b636f19639906d2f24 (diff)
- Generalise spawn_command function
--HG-- extra : convert_revision : 9927a5fe084c8053c747a40515f0213141ef8139
Diffstat (limited to 'dbutil.h')
-rw-r--r--dbutil.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/dbutil.h b/dbutil.h
index 856978d..ca09b4a 100644
--- a/dbutil.h
+++ b/dbutil.h
@@ -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);