summaryrefslogtreecommitdiffhomepage
path: root/dbutil.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-07-26 02:44:20 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-07-26 02:44:20 +0000
commita9c38fb37f5fc8796435c2bcbcdecf35cf802ca6 (patch)
treea0342c77df2912832910cc72c9fcef0a2f597461 /dbutil.h
parentf6fce0981d1a351681c58e36d845fa1fa366b398 (diff)
snapshot of stuff
--HG-- extra : convert_revision : 2903853ba24669d01547710986ad531357602633
Diffstat (limited to 'dbutil.h')
-rw-r--r--dbutil.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dbutil.h b/dbutil.h
index 3da6b2f..49b7466 100644
--- a/dbutil.h
+++ b/dbutil.h
@@ -45,6 +45,8 @@ void printhex(unsigned char* buf, int len);
#endif
char * stripcontrol(const char * text);
unsigned char * getaddrstring(struct sockaddr * addr);
+int connect_remote(const char* remotehost, const char* remoteport,
+ int nonblocking, char ** errstring);
char* getaddrhostname(struct sockaddr * addr);
int buf_readfile(buffer* buf, const char* filename);
@@ -56,4 +58,7 @@ void * m_realloc(void* ptr, size_t size);
void __m_free(void* ptr);
void m_burn(void* data, unsigned int len);
+/* Used to force mp_ints to be initialised */
+#define DEF_MP_INT(X) mp_int X = {0, 0, 0, NULL}
+
#endif /* _DBUTIL_H_ */