* (c) 1997 Martin Mares, <mj@atrey.karlin.mff.cuni.cz>
*/
+#ifndef _SHERLOCK_LIB_H
+#define _SHERLOCK_LIB_H
+
#include <lib/config.h>
/* Temporary Files */
typedef byte *(*ci_func)(struct cfitem *, byte *);
void cf_read(byte *, struct cfitem *);
+int cf_read_err(byte *, struct cfitem *); /* Read with possible error, 1 = succeeded */
/* Logging */
/* Allocation */
void *xmalloc(uns);
+void *xrealloc(void *, uns);
byte *stralloc(byte *);
/* Content-Type pattern matching and filters */
};
void obj_dump(struct odes *);
-struct odes *obj_fload(FILE *);
+struct odes *obj_fload(FILE *, byte *);
struct odes *obj_new(void);
struct odes *obj_load(byte *);
void obj_fwrite(FILE *, struct odes *);
/* oname.c */
+#define OID_MIN 0x10000 /* Values less than this have special meaning */
+
+ulg new_oid(uns);
void mk_obj_name(byte *, ulg, byte *);
int dump_obj_to_file(byte *, ulg, struct odes *, int);
void rx_free(regex *r);
int rx_match(regex *r, byte *s);
int rx_subst(regex *r, byte *by, byte *src, byte *dest, uns destlen);
+
+#endif