]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/saxdb.h
Return an error if an extended ban is invalid
[irc/evilnet/x3.git] / src / saxdb.h
index a3c76a749f94dae27732d6d986fc2b64e3b6d8b1..7bd34066e9944e7c7c801b4d27b4653f84a3caee 100644 (file)
 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);
-void saxdb_close_context(struct saxdb_context *ctx);
+void saxdb_close_context(struct saxdb_context *ctx, int close_file);
+jmp_buf *saxdb_jmp_buf(struct saxdb_context *ctx);
 
 #endif /* !defined(DBMGR_H) */