X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fsaxdb.h;h=bf928c28b03ddf92137309e8d7f4f6b975baa2a0;hb=8aa2683163c6e3133d717a87009b333ed6260401;hp=0a2eecbc18c253c35d4eab8e21aa56091869232a;hpb=6bd8682423b3da288dda2f19816b23970387c1da;p=srvx.git diff --git a/src/saxdb.h b/src/saxdb.h index 0a2eecb..bf928c2 100644 --- a/src/saxdb.h +++ b/src/saxdb.h @@ -26,15 +26,7 @@ DECLARE_LIST(int_list, int); struct saxdb; -/* This definition should ONLY be used so callers of - * saxdb_open_context() can initialize jbuf properly. */ -struct saxdb_context { - FILE *output; - unsigned int indent; - struct int_list complex; - jmp_buf jbuf; -}; - +struct saxdb_context; #define SAXDB_READER(NAME) int NAME(struct dict *db) typedef SAXDB_READER(saxdb_reader_func_t); @@ -59,6 +51,7 @@ void saxdb_write_sint(struct saxdb_context *dest, const char *name, long value); /* For doing db writing by hand */ struct saxdb_context *saxdb_open_context(FILE *f); +jmp_buf *saxdb_jmp_buf(struct saxdb_context *ctx); void saxdb_close_context(struct saxdb_context *ctx); #endif /* !defined(DBMGR_H) */