TrustedQSL Library API
cabrillo.h
Go to the documentation of this file.
1/***************************************************************************
2 cabrillo.h - description
3 -------------------
4 begin : Thu Dec 5 2002
5 copyright : (C) 2002 by ARRL
6 author : Jon Bloom
7 email : jbloom@arrl.org
8 revision : $Id$
9 ***************************************************************************/
10
11#ifndef __CABRILLO_H
12#define __CABRILLO_H
13
14#undef CLIENT_STATIC
15#ifndef LOTW_SERVER
16#define CLIENT_STATIC static
17#else
18#define CLIENT_STATIC
19#endif
20
22
32
33#define TQSL_CABRILLO_MAX_FIELDS 12
34#define TQSL_CABRILLO_FIELD_NAME_LENGTH_MAX 64
35#define TQSL_CABRILLO_FIELD_VALUE_LENGTH_MAX 40
36
38typedef enum {
39 TQSL_CABRILLO_NO_ERROR,
40 TQSL_CABRILLO_EOF,
41 TQSL_CABRILLO_NO_START_RECORD,
42 TQSL_CABRILLO_NO_CONTEST_RECORD,
43 TQSL_CABRILLO_UNKNOWN_CONTEST,
44 TQSL_CABRILLO_BAD_FIELD_DATA,
45 TQSL_CABRILLO_EOR,
47
51typedef enum {
52 TQSL_CABRILLO_HF,
53 TQSL_CABRILLO_VHF,
54 TQSL_CABRILLO_UNKNOWN,
56
57// Minimum field number for callsign and default field number
58// For VHF, default should be 7.
59#define TQSL_MIN_CABRILLO_MAP_FIELD 5
60#define TQSL_DEF_CABRILLO_MAP_FIELD 8
61
71
72typedef void * tQSL_Cabrillo;
73
74#define TQSLLIB_DEF
75#include "tqsllib.h"
76
77#ifdef __cplusplus
78extern "C" {
79#endif
80
83
86
89
92
95
98
108
111
112#ifdef __cplusplus
113}
114#endif
115
117
118#endif // __CABRILLO_H
DLLEXPORT int CALLCONVENTION tqsl_getCabrilloLine(tQSL_Cabrillo cab, int *lineno)
DLLEXPORT const char *CALLCONVENTION tqsl_cabrilloGetError(TQSL_CABRILLO_ERROR_TYPE err)
TQSL_CABRILLO_ERROR_TYPE
Cabrillo status values.
Definition cabrillo.h:38
#define TQSL_CABRILLO_FIELD_VALUE_LENGTH_MAX
Max field value length.
Definition cabrillo.h:35
DLLEXPORT int CALLCONVENTION tqsl_beginCabrillo(tQSL_Cabrillo *cabp, const char *filename)
TQSL_CABRILLO_FREQ_TYPE
Definition cabrillo.h:51
DLLEXPORT int CALLCONVENTION tqsl_endCabrillo(tQSL_Cabrillo *cabp)
DLLEXPORT int CALLCONVENTION tqsl_getCabrilloFreqType(tQSL_Cabrillo cab, TQSL_CABRILLO_FREQ_TYPE *type)
DLLEXPORT int CALLCONVENTION tqsl_getCabrilloContest(tQSL_Cabrillo cab, char *buf, int bufsiz)
#define TQSL_CABRILLO_FIELD_NAME_LENGTH_MAX
Max field name length.
Definition cabrillo.h:34
void * tQSL_Cabrillo
Opaque cabrillo log type.
Definition cabrillo.h:72
DLLEXPORT const char *CALLCONVENTION tqsl_getCabrilloRecordText(tQSL_Cabrillo cab)
DLLEXPORT int CALLCONVENTION tqsl_getCabrilloField(tQSL_Cabrillo cab, tqsl_cabrilloField *field, TQSL_CABRILLO_ERROR_TYPE *err)
Definition cabrillo.h:67
char name[TQSL_CABRILLO_FIELD_NAME_LENGTH_MAX+1]
< Cabrillo field
Definition cabrillo.h:68
char value[TQSL_CABRILLO_FIELD_VALUE_LENGTH_MAX+1]
Field value.
Definition cabrillo.h:69
#define CALLCONVENTION
Symbol exports - Windows only.
Definition tqsllib.h:27
#define DLLEXPORT
Symbol exports - Windows only.
Definition tqsllib.h:25