LP#1709710: Make chunk sizing smart about XML quoting
[opensrf-equinox.git] / include / opensrf / utils.h
index 2368199..34e0ba6 100644 (file)
@@ -280,7 +280,7 @@ extern "C" {
 int init_proc_title( int argc, char* argv[] );
 int set_proc_title( const char* format, ... );
 
-
+int daemonizeWithCallback( void (*)(pid_t, int), int );
 int daemonize( void );
 
 void* safe_malloc(int size);
@@ -377,6 +377,12 @@ char* md5sum( const char* text, ... );
 */
 int osrfUtilsCheckFileDescriptor( int fd );
 
+/*
+       Returns the approximate additional length of
+       a string after XML escaping <, >, &, and ".
+*/
+size_t osrfXmlEscapingLength ( const char* str );
+
 #ifdef __cplusplus
 }
 #endif