tqslconvert.h
Go to the documentation of this file.
/***************************************************************************
convert.h - description
-------------------
begin : Sun Nov 17 2002
copyright : (C) 2002 by ARRL
author : Jon Bloom
email : jbloom@arrl.org
revision : $Id$
***************************************************************************/
#ifndef __tqslconvert_h
#define __tqslconvert_h
#include "tqsllib.h"
typedef void * tQSL_Converter;
#ifdef __cplusplus
extern "C" {
#endif
DLLEXPORT int CALLCONVENTION
tqsl_beginConverter(tQSL_Converter *convp);
DLLEXPORT int CALLCONVENTION tqsl_beginADIFConverter(tQSL_Converter *conv, const char *filename,
tQSL_Cert *certs, int ncerts, tQSL_Location loc);
DLLEXPORT int CALLCONVENTION tqsl_beginCabrilloConverter(tQSL_Converter *conv, const char *filename,
tQSL_Cert *certs, int ncerts, tQSL_Location loc);
DLLEXPORT int CALLCONVENTION tqsl_endConverter(tQSL_Converter *conv);
DLLEXPORT int CALLCONVENTION tqsl_setConverterAllowBadCall(tQSL_Converter conv, int allow);
DLLEXPORT int CALLCONVENTION tqsl_setConverterAllowDuplicates(tQSL_Converter convp, int allow);
DLLEXPORT int CALLCONVENTION tqsl_setConverterAppName(tQSL_Converter convp, const char *app);
DLLEXPORT int CALLCONVENTION tqsl_converterRollBack(tQSL_Converter convp);
DLLEXPORT int CALLCONVENTION tqsl_converterCommit(tQSL_Converter convp);
DLLEXPORT int CALLCONVENTION
tqsl_getDuplicateRecords(tQSL_Converter convp, char *key, char *data, int keylen);
DLLEXPORT int CALLCONVENTION
tqsl_putDuplicateRecord(tQSL_Converter convp, const char *key, const char *data, int keylen);
DLLEXPORT int CALLCONVENTION tqsl_setADIFConverterDateFilter(tQSL_Converter conv, tQSL_Date *start,
tQSL_Date *end);
DLLEXPORT const char* CALLCONVENTION tqsl_getConverterGABBI(tQSL_Converter conv);
DLLEXPORT int CALLCONVENTION tqsl_getConverterCert(tQSL_Converter conv, tQSL_Cert *certp);
DLLEXPORT int CALLCONVENTION tqsl_getConverterLine(tQSL_Converter conv, int *lineno);
DLLEXPORT const char* CALLCONVENTION tqsl_getConverterRecordText(tQSL_Converter conv);
#ifdef __cplusplus
}
#endif
#endif /* __tqslconvert_h */