diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/iobuf.h | 3 | ||||
-rw-r--r-- | include/util.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/iobuf.h b/include/iobuf.h index a3c64a44b..789ffde07 100644 --- a/include/iobuf.h +++ b/include/iobuf.h @@ -58,6 +58,8 @@ struct iobuf_struct { IOBUF chain; /* next iobuf used for i/o if any (passed to filter) */ int no, subno; const char *desc; + void *opaque; /* can be used to old any information */ + /* this value is copied to all instances */ }; int iobuf_debug_mode; @@ -91,6 +93,7 @@ void iobuf_push_recorder( IOBUF a, int c ); char *iobuf_stop_recorder( IOBUF a, size_t *n ); u32 iobuf_get_filelength( IOBUF a ); +const char *iobuf_get_fname( IOBUF a ); void iobuf_set_block_mode( IOBUF a, size_t n ); int iobuf_in_block_mode( IOBUF a ); diff --git a/include/util.h b/include/util.h index 6740e5edd..f71275cb9 100644 --- a/include/util.h +++ b/include/util.h @@ -55,6 +55,7 @@ typedef struct { } ARGPARSE_OPTS; /*-- logger.c --*/ +void set_log_pid( int pid ); void printstr( int level, const char *fmt, ... ); void log_bug( const char *fmt, ... ); void log_fatal( const char *fmt, ... ); |