From be389dc97e64653ca17ad76564dcc89ca7905937 Mon Sep 17 00:00:00 2001 From: Dmitri Pal Date: Sun, 18 Mar 2012 14:20:54 -0400 Subject: Function to reopen file This patch would allow to reopen file and create a new context based on the old one. --- ini/ini_configobj.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ini/ini_configobj.h') diff --git a/ini/ini_configobj.h b/ini/ini_configobj.h index e728c2e..3321bd3 100644 --- a/ini/ini_configobj.h +++ b/ini/ini_configobj.h @@ -213,6 +213,10 @@ int ini_config_file_open(const char *filename, uint32_t metadata_flags, struct ini_cfgfile **file_ctx); +/* Create a file object from existing one */ +int ini_config_file_reopen(struct ini_cfgfile *file_ctx_in, + struct ini_cfgfile **file_ctx_out); + /* Close file context */ void ini_config_file_close(struct ini_cfgfile *file_ctx); -- cgit