/*
 * tech.h --
 *
 * Interface to technology module.
 *
 *     ********************************************************************* 
 *     * Copyright (C) 1985, 1990 Regents of the University of California. * 
 *     * Permission to use, copy, modify, and distribute this              * 
 *     * software and its documentation for any purpose and without        * 
 *     * fee is hereby granted, provided that the above copyright          * 
 *     * notice appear in all copies.  The University of California        * 
 *     * makes no representations about the suitability of this            * 
 *     * software for any purpose.  It is provided "as is" without         * 
 *     * express or implied warranty.  Export of this software outside     * 
 *     * of the United States of America may require an export license.    * 
 *     *********************************************************************
 *
 * rcsid "$Header: /ufs/repository/magic/tech/tech.h,v 1.3 2006/07/08 19:06:43 fang Exp $"
 */

#ifndef	__TECH_TECH_H__
#define	__TECH_TECH_H__

typedef int SectionID;		/* Mask set by TechAddClient */

/* ----------------- Exported variables and procedures ---------------- */

extern char *TechDefault;	/* Name of default technology */
#ifndef NO_VARARGS
extern void TechError(char* fmt, ...);
#else
extern void TechError();
#endif

extern void TechInit(void);
extern void TechAddClient(char *sectionName,
	void (*init)(void),
	bool (*proc)(char*, int, char*[]),
	void (*final)(void),
	SectionID prevSections,
	SectionID *pSectionID,
	bool opt);

extern bool TechLoad(char* filename);

#endif	/* __TECH_TECH_H__ */
