| Revision 237 (by dpavlin, 2004/03/08 17:43:12) |
initial import of openisis 0.9.0 vendor drop
|
/*
openisis - an open implementation of the CDS/ISIS database
Version 0.8.x (patchlevel see file Version)
Copyright (C) 2001-2003 by Erik Grziwotz, erik@openisis.org
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library 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
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
see README for more information
EOH */
#ifndef LFDT_H
/*
$Id: lfdt.h,v 1.10 2003/05/07 16:32:36 mawag Exp $
FDT support
*/
#include "loi.h"
/** build fd from rec.
@param rec source
@param buf optional target buffer
@return buf or allocated fd or null on error
*/
extern Fd* fRec2Fd (Rec *rec, Fd *buf);
/** convert fd to record.
@param fd source
@param rec target where to append fd, may be null
@param embchld boolean indicating whether subfield childs should
be embedded in target record
@return target or null if no memory available
*/
extern Rec* fFd2Rec (const Fd *fd, Rec *rec, int embchld);
/** read fdt from file named path extended by '.fdt'.
* @return fdt or null
*/
extern Fdt* fFromFile (char *path);
#define LFDT_H
#endif /* LFDT_H */