/*
 * readdef.h
 *
 * Read DLL Binder definition files
 *
 *  1994-1998 Straylight
 */

/*----- Licensing note ----------------------------------------------------*
 *
 * This file is part of Straylight's Dynamic Linking System (SDLS)
 *
 * SDLS is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * SDLS is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with SDLS.  If not, write to the Free Software Foundation,
 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

#ifndef __readdef_h
#define __readdef_h

#ifndef __hashtable_h
  #include "hashtable.h"
#endif

enum
{
  rd_name=1,
  rd_version=2,
  rd_cright=4
};

enum
{
  rdFlag_shortEntry=1,
  rdFlag_noNames=2
};

typedef struct
{
  hashtable sym;
  hashtable vsym;
  hashtable obj;
  int version;
  char name[256];
  char *dllpath;
  char copyright[256];
  int errored;
  int apptbl;
  unsigned flags;
}
readdef_info;

int cistrcmp(const char *s1,const char *s2);
int readdef(char *file,readdef_info *info);

#endif
