/*
 * endin.h
 *
 * Copyright (c) Chris Putnam 2003-2015
 *
 * Source code released under the GPL version 2
 *
 */
#ifndef ENDIN_H
#define ENDIN_H

#include "newstr.h"
#include "fields.h"
#include "reftypes.h"
#include "bibutils.h"

extern int endin_readf( FILE *fp, char *buf, int bufsize, int *bufpos, newstr *line, newstr *reference, int *fcharset );
extern int endin_processf( fields *endin, char *p, char *filename, long nref );
extern int endin_typef( fields *endin, char *filename, int nrefs, param *p, variants *all, int nall );
extern int endin_convertf( fields *endin, fields *info, int reftype, param *p, variants *all, int nall );
extern int endin_cleanf( bibl *bin, param *p );

extern void endin_initparams( param *p, const char *progname );

extern variants end_all[];
extern int end_nall;


#endif

