TrustedQSL Library API: tqsllib.h Source File

TrustedQSL Library API

tqsllib.h
Go to the documentation of this file.
1/***************************************************************************
2 tqsllib.h - description
3 -------------------
4 begin : Mon May 20 2002
5 copyright : (C) 2002 by ARRL
6 author : Jon Bloom
7 email : jbloom@arrl.org
8 revision : $Id: tqsllib.h,v 1.14 2013/03/01 13:26:44 k1mu Exp $
9 ***************************************************************************/
10
11#ifndef TQSLLIB_H
12#define TQSLLIB_H
13
14#if defined(_WIN32) && !defined(TQSL_NODLL)
15 #ifdef TQSLLIB_DEF
16 #define DLLEXPORT __declspec(dllexport)
17 #define DLLEXPORTDATA __declspec(dllexport)
18 #define CALLCONVENTION __stdcall
19 #else
20 #define DLLEXPORT __declspec(dllimport)
21 #define DLLEXPORTDATA __declspec(dllimport)
22 #define CALLCONVENTION __stdcall
23 #endif
24#else
25 #define DLLEXPORT
26 #define DLLEXPORTDATA
27 #define CALLCONVENTION
28 #include <limits.h>
29#endif
30
31#include <cstdio>
32
33#include "adif.h"
34#include "cabrillo.h"
35
39
40#ifndef PATH_MAX // Should be set by <limits.h>
41#define PATH_MAX 4096
42#endif
43
44/* Sizes */
45#define TQSL_MAX_PATH_LEN PATH_MAX
46#define TQSL_PASSWORD_MAX 80
47#define TQSL_NAME_ELEMENT_MAX 256
48#define TQSL_CALLSIGN_MAX 20
49#define TQSL_CRQ_NAME_MAX 60
50#define TQSL_CRQ_ADDR_MAX 80
51#define TQSL_CRQ_CITY_MAX 80
52#define TQSL_CRQ_STATE_MAX 80
53#define TQSL_CRQ_POSTAL_MAX 20
54#define TQSL_CRQ_COUNTRY_MAX 80
55#define TQSL_CRQ_EMAIL_MAX 180
56#define TQSL_BAND_MAX 6
57#define TQSL_MODE_MAX 16
58#define TQSL_FREQ_MAX 20
59#define TQSL_SATNAME_MAX 20
60#define TQSL_PROPMODE_MAX 20
61#define TQSL_STATE_MAX 30
62#define TQSL_GRID_MAX 30
63#define TQSL_CNTY_MAX 30
64#define TQSL_COUNTRY_MAX 60
65#define TQSL_ZONE_MAX 5
66#define TQSL_IOTA_MAX 10
67
68#define TQSL_CERT_CB_USER 0
69#define TQSL_CERT_CB_CA 1
70#define TQSL_CERT_CB_ROOT 2
71#define TQSL_CERT_CB_PKEY 3
72#define TQSL_CERT_CB_CONFIG 4
73#define TQSL_CERT_CB_CERT_TYPE(x) ((x) & 0xf)
74#define TQSL_CERT_CB_MILESTONE 0
75#define TQSL_CERT_CB_RESULT 0x10
76#define TQSL_CERT_CB_CALL_TYPE(x) ((x) & TQSL_CERT_CB_RESULT)
77#define TQSL_CERT_CB_PROMPT 0
78#define TQSL_CERT_CB_DUPLICATE 0x100
79#define TQSL_CERT_CB_ERROR 0x200
80#define TQSL_CERT_CB_LOADED 0x400
81#define TQSL_CERT_CB_SERIAL 0x800
82#define TQSL_CERT_CB_RESULT_TYPE(x) ((x) & 0x0f00)
83
84#define TQSL_MSG_FLAGGED 0x1000
85
86 typedef void * tQSL_Cert;
87 typedef void * tQSL_Location;
88 typedef char * tQSL_StationDataEnc;
89
91 typedef struct {
92 int year;
93 int month;
94 int day;
95} tQSL_Date;
96
98 typedef struct {
99 int hour;
100 int minute;
101 int second;
102} tQSL_Time;
103
105 typedef struct tqsl_provider_st {
106 char organizationName[TQSL_NAME_ELEMENT_MAX+1];
107 char organizationalUnitName[TQSL_NAME_ELEMENT_MAX+1];
108 char emailAddress[TQSL_NAME_ELEMENT_MAX+1];
109 char url[TQSL_NAME_ELEMENT_MAX+1];
110} TQSL_PROVIDER;
111
113 typedef struct tqsl_cert_req_st {
114 char providerName[TQSL_NAME_ELEMENT_MAX+1];
115 char providerUnit[TQSL_NAME_ELEMENT_MAX+1];
116 char callSign[TQSL_CALLSIGN_MAX+1];
117 char name[TQSL_CRQ_NAME_MAX+1];
118 char address1[TQSL_CRQ_ADDR_MAX+1];
119 char address2[TQSL_CRQ_ADDR_MAX+1];
120 char city[TQSL_CRQ_CITY_MAX+1];
121 char state[TQSL_CRQ_STATE_MAX+1];
122 char postalCode[TQSL_CRQ_POSTAL_MAX+1];
123 char country[TQSL_CRQ_COUNTRY_MAX+1];
124 char emailAddress[TQSL_CRQ_EMAIL_MAX+1];
125 int dxccEntity;
126 tQSL_Date qsoNotBefore;
127 tQSL_Date qsoNotAfter;
128 char password[TQSL_PASSWORD_MAX+1];
129 tQSL_Cert signer;
130 char renew;
131} TQSL_CERT_REQ;
132
134 typedef struct {
135 char callsign[TQSL_CALLSIGN_MAX+1];
136 char band[TQSL_BAND_MAX+1];
137 char mode[TQSL_MODE_MAX+1];
138 char submode[TQSL_MODE_MAX+1];
139 tQSL_Date date;
140 tQSL_Time time;
141 char freq[TQSL_FREQ_MAX+1];
142 char rxfreq[TQSL_FREQ_MAX+1];
143 char rxband[TQSL_BAND_MAX+1];
144 char propmode[TQSL_PROPMODE_MAX+1];
145 char satname[TQSL_SATNAME_MAX+1];
146 bool callsign_set;
147 bool mode_set;
148 bool band_set;
149 bool date_set;
150 bool time_set;
151 char my_state[TQSL_STATE_MAX+1];
152 char my_gridsquare[TQSL_GRID_MAX+1];
153 char my_vucc_grids[TQSL_GRID_MAX+1];
154 char my_county[TQSL_CNTY_MAX+1];
155 char my_cnty_state[TQSL_STATE_MAX+1];
156 char my_country[TQSL_COUNTRY_MAX+1];
157 char my_cq_zone[TQSL_ZONE_MAX+1];
158 char my_itu_zone[TQSL_ZONE_MAX+1];
159 int my_dxcc;
160 char my_call[TQSL_CALLSIGN_MAX+1];
161#ifdef USE_OWNER_CALLSIGN
162 char my_owner[TQSL_CALLSIGN_MAX+1];
163#endif
164 char my_operator[TQSL_CALLSIGN_MAX+1];
165 char my_iota[TQSL_IOTA_MAX+1];
166} TQSL_QSO_RECORD;
167
169 DLLEXPORTDATA extern const char *tQSL_BaseDir;
171 DLLEXPORTDATA extern const char *tQSL_RsrcDir;
172
173#ifdef __cplusplus
174extern "C" {
175#endif
176
180
182
184 DLLEXPORTDATA extern int tQSL_Error;
186 DLLEXPORTDATA extern TQSL_ADIF_GET_FIELD_ERROR tQSL_ADIF_Error;
188 DLLEXPORTDATA extern TQSL_CABRILLO_ERROR_TYPE tQSL_Cabrillo_Error;
190 DLLEXPORTDATA extern char tQSL_ErrorFile[TQSL_MAX_PATH_LEN];
192 DLLEXPORTDATA extern char tQSL_CustomError[256];
194 DLLEXPORTDATA extern int tQSL_Errno;
196 DLLEXPORTDATA extern char tQSL_ImportCall[256];
198 DLLEXPORTDATA extern long tQSL_ImportSerial;
200 DLLEXPORTDATA extern FILE* tQSL_DiagFile;
201
206 DLLEXPORT int CALLCONVENTION tqsl_init();
207
217 DLLEXPORT int CALLCONVENTION tqsl_setDirectory(const char *dir);
218
222 DLLEXPORT const char* CALLCONVENTION tqsl_getErrorString();
223
228 DLLEXPORT const char* CALLCONVENTION tqsl_getErrorString_v(int err);
229
237 DLLEXPORT int CALLCONVENTION tqsl_encodeBase64(const unsigned char *data, int datalen, char *output, int outputlen);
238
247 DLLEXPORT int CALLCONVENTION tqsl_decodeBase64(const char *input, unsigned char *data, int *datalen);
248
255 DLLEXPORT int CALLCONVENTION tqsl_initDate(tQSL_Date *date, const char *str);
256
263 DLLEXPORT int CALLCONVENTION tqsl_initTime(tQSL_Time *time, const char *str);
264
274 DLLEXPORT int CALLCONVENTION tqsl_compareDates(const tQSL_Date *a, const tQSL_Date *b);
275
281 DLLEXPORT int CALLCONVENTION tqsl_subtractDates(const tQSL_Date *a, const tQSL_Date *b, int *diff);
282
287 DLLEXPORT char* CALLCONVENTION tqsl_convertDateToText(const tQSL_Date *date, char *buf, int bufsiz);
288
293 DLLEXPORT int CALLCONVENTION tqsl_isDateValid(const tQSL_Date *d);
294
299 DLLEXPORT int CALLCONVENTION tqsl_isDateNull(const tQSL_Date *d);
300
305 DLLEXPORT int CALLCONVENTION tqsl_isTimeValid(const tQSL_Time *t);
306
311 DLLEXPORT char* CALLCONVENTION tqsl_convertTimeToText(const tQSL_Time *time, char *buf, int bufsiz);
312
315 DLLEXPORT int CALLCONVENTION tqsl_getVersion(int *major, int *minor);
316
319 DLLEXPORT int CALLCONVENTION tqsl_getConfigVersion(int *major, int *minor);
320
322
323
346
348
349#define TQSL_SELECT_CERT_WITHKEYS 1
350#define TQSL_SELECT_CERT_EXPIRED 2
351#define TQSL_SELECT_CERT_SUPERCEDED 4
352
380 DLLEXPORT int CALLCONVENTION tqsl_selectCertificates(tQSL_Cert **certlist, int *ncerts,
381 const char *callsign, int dxcc, const tQSL_Date *date, const TQSL_PROVIDER *issuer, int flag);
382
394 DLLEXPORT int CALLCONVENTION tqsl_selectCACertificates(tQSL_Cert **certlist, int *ncerts, const char *type);
395
404 DLLEXPORT int CALLCONVENTION tqsl_getSelectedCertificate(tQSL_Cert *cert, const tQSL_Cert **certlist,
405 int idx);
406
409 DLLEXPORT int CALLCONVENTION tqsl_isCertificateExpired(tQSL_Cert cert, int *status);
410
413 DLLEXPORT int CALLCONVENTION tqsl_isCertificateSuperceded(tQSL_Cert cert, int *status);
414
417 DLLEXPORT int CALLCONVENTION tqsl_getCertificateKeyOnly(tQSL_Cert cert, int *keyonly);
418
421 DLLEXPORT int CALLCONVENTION tqsl_isCertificateRenewable(tQSL_Cert cert, int *status);
422
425 DLLEXPORT int CALLCONVENTION tqsl_getCertificateEncoded(tQSL_Cert cert, char *buf, int bufsiz);
426
429 DLLEXPORT int CALLCONVENTION tqsl_getKeyEncoded(tQSL_Cert cert, char *buf, int bufsiz);
430
433 DLLEXPORT int CALLCONVENTION tqsl_importKeyPairEncoded(const char *callsign, const char *type, const char *keybuf, const char *certbuf);
434
437 DLLEXPORT int CALLCONVENTION tqsl_getCertificateSerial(tQSL_Cert cert, long *serial);
438
442 DLLEXPORT int CALLCONVENTION tqsl_getCertificateSerialExt(tQSL_Cert cert, char *serial, int serialsiz);
443
447 DLLEXPORT int CALLCONVENTION tqsl_getCertificateSerialLength(tQSL_Cert cert);
448
458 DLLEXPORT int CALLCONVENTION tqsl_getCertificateIssuer(tQSL_Cert cert, char *buf, int bufsiz);
459
469 DLLEXPORT int CALLCONVENTION tqsl_getCertificateIssuerOrganization(tQSL_Cert cert, char *buf, int bufsiz);
479 DLLEXPORT int CALLCONVENTION tqsl_getCertificateIssuerOrganizationalUnit(tQSL_Cert cert, char *buf, int bufsiz);
489 DLLEXPORT int CALLCONVENTION tqsl_getCertificateCallSign(tQSL_Cert cert, char *buf, int bufsiz);
499 DLLEXPORT int CALLCONVENTION tqsl_getCertificateAROName(tQSL_Cert cert, char *buf, int bufsiz);
500
510 DLLEXPORT int CALLCONVENTION tqsl_getCertificateEmailAddress(tQSL_Cert cert, char *buf, int bufsiz);
511
520 DLLEXPORT int CALLCONVENTION tqsl_getCertificateQSONotBeforeDate(tQSL_Cert cert, tQSL_Date *date);
521
530 DLLEXPORT int CALLCONVENTION tqsl_getCertificateQSONotAfterDate(tQSL_Cert cert, tQSL_Date *date);
531
540 DLLEXPORT int CALLCONVENTION tqsl_getCertificateNotBeforeDate(tQSL_Cert cert, tQSL_Date *date);
541
550 DLLEXPORT int CALLCONVENTION tqsl_getCertificateNotAfterDate(tQSL_Cert cert, tQSL_Date *date);
551
560 DLLEXPORT int CALLCONVENTION tqsl_getCertificateDXCCEntity(tQSL_Cert cert, int *dxcc);
561
572 DLLEXPORT int CALLCONVENTION tqsl_getCertificateRequestAddress1(tQSL_Cert cert, char *str, int bufsiz);
573
584 DLLEXPORT int CALLCONVENTION tqsl_getCertificateRequestAddress2(tQSL_Cert cert, char *str, int bufsiz);
585
596 DLLEXPORT int CALLCONVENTION tqsl_getCertificateRequestCity(tQSL_Cert cert, char *str, int bufsiz);
597
608 DLLEXPORT int CALLCONVENTION tqsl_getCertificateRequestState(tQSL_Cert cert, char *str, int bufsiz);
609
620 DLLEXPORT int CALLCONVENTION tqsl_getCertificateRequestPostalCode(tQSL_Cert cert, char *str, int bufsiz);
621
632 DLLEXPORT int CALLCONVENTION tqsl_getCertificateRequestCountry(tQSL_Cert cert, char *str, int bufsiz);
633
634#define TQSL_PK_TYPE_ERR 0
635#define TQSL_PK_TYPE_NONE 1
636#define TQSL_PK_TYPE_UNENC 2
637#define TQSL_PK_TYPE_ENC 3
638
653 DLLEXPORT int CALLCONVENTION tqsl_getCertificatePrivateKeyType(tQSL_Cert cert);
654
655
659 DLLEXPORT void CALLCONVENTION tqsl_freeCertificate(tQSL_Cert cert);
660
666 DLLEXPORT void CALLCONVENTION tqsl_freeCertificateList(tQSL_Cert* list, int ncerts);
667
668#define TQSL_CERT_STATUS_UNK 0
669#define TQSL_CERT_STATUS_SUP 1
670#define TQSL_CERT_STATUS_EXP 2
671#define TQSL_CERT_STATUS_OK 3
672#define TQSL_CERT_STATUS_INV 4
673
688 DLLEXPORT int CALLCONVENTION tqsl_getCertificateStatus(long serial);
689
694 DLLEXPORT int CALLCONVENTION tqsl_setCertificateStatus(long serial, const char *status);
695
696/* int tqsl_checkCertificate(tQSL_Cert); */
697
715 DLLEXPORT int CALLCONVENTION tqsl_importTQSLFile(const char *file, int(*cb)(int type, const char *message, void *userdata), void *user);
716
725 DLLEXPORT int CALLCONVENTION tqsl_getSerialFromTQSLFile(const char *file, long *serial);
726
729 DLLEXPORT int CALLCONVENTION tqsl_getNumProviders(int *n);
730
735 DLLEXPORT int CALLCONVENTION tqsl_getProvider(int idx, TQSL_PROVIDER *provider);
736
749 DLLEXPORT int CALLCONVENTION tqsl_createCertRequest(const char *filename, TQSL_CERT_REQ *req,
750 int(*pwcb)(char *pwbuf, int pwsize, void *userdata), void *user);
751
759 DLLEXPORT int CALLCONVENTION tqsl_exportPKCS12File(tQSL_Cert cert, const char *filename, const char *p12password);
760
769 DLLEXPORT int CALLCONVENTION tqsl_exportPKCS12FileWeakCrypto(tQSL_Cert cert, const char *filename, const char *p12password);
770
778
779 DLLEXPORT int CALLCONVENTION tqsl_exportPKCS12Base64(tQSL_Cert cert, char *base64, int b64len, const char *p12password);
780
783 DLLEXPORT int CALLCONVENTION tqsl_importPKCS12File(const char *filename, const char *p12password, const char *password,
784 int (*pwcb)(char *buf, int bufsiz, void *userdata), int(*cb)(int type , const char *message, void *userdata), void *user);
785
788 DLLEXPORT int CALLCONVENTION tqsl_importPKCS12Base64(const char *base64, const char *p12password, const char *password,
789 int (*pwcb)(char *buf, int bufsiz, void *userdata), int(*cb)(int type , const char *message, void *userdata), void *user);
790
792 DLLEXPORT int CALLCONVENTION tqsl_getDeletedCallsignCertificates(char ***calls, int *ncall, const char *filter);
793
795 DLLEXPORT void CALLCONVENTION tqsl_freeDeletedCertificateList(char **list, int nloc);
796
798 DLLEXPORT int CALLCONVENTION tqsl_restoreCallsignCertificate(const char *callsign);
799
802 DLLEXPORT int CALLCONVENTION tqsl_deleteCertificate(tQSL_Cert cert);
803
805
812
826 DLLEXPORT int CALLCONVENTION tqsl_beginSigning(tQSL_Cert cert, char *password, int(*pwcb)(char *pwbuf, int pwsize, void *userdata), void *user);
827
832 DLLEXPORT int CALLCONVENTION tqsl_checkSigningStatus(tQSL_Cert cert);
833
838 DLLEXPORT int CALLCONVENTION tqsl_getMaxSignatureSize(tQSL_Cert cert, int *sigsize);
839
845 DLLEXPORT int CALLCONVENTION tqsl_signDataBlock(tQSL_Cert cert, const unsigned char *data, int datalen, unsigned char *sig, int *siglen);
846
851 DLLEXPORT int CALLCONVENTION tqsl_verifyDataBlock(tQSL_Cert cert, const unsigned char *data, int datalen, unsigned char *sig, int siglen);
852
860 DLLEXPORT int CALLCONVENTION tqsl_signQSORecord(tQSL_Cert cert, tQSL_Location loc, TQSL_QSO_RECORD *rec, unsigned char *sig, int *siglen);
861
866 DLLEXPORT int CALLCONVENTION tqsl_endSigning(tQSL_Cert cert);
867
869
969
971
972/* Location field input types */
973
974#define TQSL_LOCATION_FIELD_TEXT 1
975#define TQSL_LOCATION_FIELD_DDLIST 2
976#define TQSL_LOCATION_FIELD_LIST 3
977#define TQSL_LOCATION_FIELD_BADZONE 4
978
979/* Location field data types */
980#define TQSL_LOCATION_FIELD_CHAR 1
981#define TQSL_LOCATION_FIELD_INT 2
982
984 DLLEXPORT int CALLCONVENTION tqsl_initStationLocationCapture(tQSL_Location *locp);
985
990 DLLEXPORT int CALLCONVENTION tqsl_endStationLocationCapture(tQSL_Location *locp);
991
993 DLLEXPORT int CALLCONVENTION tqsl_updateStationLocationCapture(tQSL_Location loc);
994
996
997 DLLEXPORT int CALLCONVENTION tqsl_getNumStationLocationCapturePages(tQSL_Location loc, int *npages);
998
1000 DLLEXPORT int CALLCONVENTION tqsl_getStationLocationCapturePage(tQSL_Location loc, int *page);
1001
1006 DLLEXPORT int CALLCONVENTION tqsl_setStationLocationCapturePage(tQSL_Location loc, int page);
1007
1011 DLLEXPORT int CALLCONVENTION tqsl_setStationLocationCertFlags(tQSL_Location loc, int flags);
1012
1014 DLLEXPORT int CALLCONVENTION tqsl_nextStationLocationCapture(tQSL_Location loc);
1015
1017 DLLEXPORT int CALLCONVENTION tqsl_getNextStationLocationCapturePage(tQSL_Location loc, int *page);
1018
1020 DLLEXPORT int CALLCONVENTION tqsl_prevStationLocationCapture(tQSL_Location loc);
1021
1023 DLLEXPORT int CALLCONVENTION tqsl_getPrevStationLocationCapturePage(tQSL_Location loc, int *page);
1024
1026 DLLEXPORT int CALLCONVENTION tqsl_getCurrentStationLocationCapturePage(tQSL_Location loc, int *page);
1027
1029 DLLEXPORT int CALLCONVENTION tqsl_hasNextStationLocationCapture(tQSL_Location loc, int *rval);
1030
1032 DLLEXPORT int CALLCONVENTION tqsl_hasPrevStationLocationCapture(tQSL_Location loc, int *rval);
1033
1040 DLLEXPORT int CALLCONVENTION tqsl_saveStationLocationCapture(tQSL_Location loc, int overwrite);
1041
1043 DLLEXPORT int CALLCONVENTION tqsl_getStationLocationCaptureName(tQSL_Location loc, char *namebuf, int bufsiz);
1044
1046 DLLEXPORT int CALLCONVENTION tqsl_setStationLocationCaptureName(tQSL_Location loc, const char *name);
1047
1049 DLLEXPORT int CALLCONVENTION tqsl_getNumStationLocations(tQSL_Location loc, int *nloc);
1050
1052 DLLEXPORT int CALLCONVENTION tqsl_getStationLocationName(tQSL_Location loc, int idx, char *buf, int bufsiz);
1053
1055 DLLEXPORT int CALLCONVENTION tqsl_getStationLocationCallSign(tQSL_Location loc, int idx, char *buf, int bufsiz);
1056
1058 DLLEXPORT int CALLCONVENTION tqsl_getStationLocationField(tQSL_Location locp, const char *name, char *namebuf, int bufsize);
1059
1064 DLLEXPORT int CALLCONVENTION tqsl_getStationLocation(tQSL_Location *loc, const char *name);
1065
1072 DLLEXPORT int CALLCONVENTION tqsl_getStationLocationErrors(tQSL_Location loc, char *buf, int bufsiz);
1073
1077 DLLEXPORT int CALLCONVENTION tqsl_getStationDataEnc(tQSL_StationDataEnc *sdata);
1078
1081 DLLEXPORT int CALLCONVENTION tqsl_freeStationDataEnc(tQSL_StationDataEnc sdata);
1082
1084 DLLEXPORT int CALLCONVENTION tqsl_mergeStationLocations(const char *locdata);
1085
1087 DLLEXPORT int CALLCONVENTION tqsl_deleteStationLocation(const char *name);
1088
1090 DLLEXPORT int CALLCONVENTION tqsl_restoreStationLocation(const char *name);
1091
1093 DLLEXPORT int CALLCONVENTION tqsl_getDeletedStationLocations(char ***locp, int *nloc);
1094
1096 DLLEXPORT void CALLCONVENTION tqsl_freeDeletedLocationList(char **list, int nloc);
1097
1099 DLLEXPORT int CALLCONVENTION tqsl_getNumLocationField(tQSL_Location loc, int *numf);
1100
1102 DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldDataLabelSize(tQSL_Location loc, int field_num, int *rval);
1103
1105 DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldDataLabel(tQSL_Location loc, int field_num, char *buf, int bufsiz);
1106
1108 DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldDataGABBISize(tQSL_Location loc, int field_num, int *rval);
1109
1111 DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldDataGABBI(tQSL_Location loc, int field_num, char *buf, int bufsiz);
1112
1119 DLLEXPORT int CALLCONVENTION tqsl_getNumLocationField(tQSL_Location loc, int *numf);
1120
1122 DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldDataLabelSize(tQSL_Location loc, int field_num, int *rval);
1123
1125 DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldDataLabel(tQSL_Location loc, int field_num, char *buf, int bufsiz);
1126
1128 DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldDataGABBISize(tQSL_Location loc, int field_num, int *rval);
1129
1131 DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldDataGABBI(tQSL_Location loc, int field_num, char *buf, int bufsiz);
1132
1138 DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldInputType(tQSL_Location loc, int field_num, int *type);
1139
1144 DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldDataType(tQSL_Location loc, int field_num, int *type);
1145
1154 DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldFlags(tQSL_Location loc, int field_num, int *flags);
1155
1157 DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldDataLength(tQSL_Location loc, int field_num, int *rval);
1158
1165 DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldCharData(tQSL_Location loc, int field_num, char *buf, int bufsiz);
1166
1172 DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldIntData(tQSL_Location loc, int field_num, int *dat);
1173
1178 DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldIndex(tQSL_Location loc, int field_num, int *dat);
1179
1181 DLLEXPORT int CALLCONVENTION tqsl_getNumLocationFieldListItems(tQSL_Location loc, int field_num, int *rval);
1182
1184 DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldListItem(tQSL_Location loc, int field_num, int item_idx, char *buf, int bufsiz);
1185
1187 DLLEXPORT int CALLCONVENTION tqsl_setLocationFieldCharData(tQSL_Location loc, int field_num, const char *buf);
1188
1191 DLLEXPORT int CALLCONVENTION tqsl_setLocationFieldIntData(tQSL_Location loc, int field_num, int dat);
1192
1197 DLLEXPORT int CALLCONVENTION tqsl_setLocationFieldIndex(tQSL_Location loc, int field_num, int dat);
1198
1203 DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldChanged(tQSL_Location loc, int field_num, int *changed);
1204
1206 DLLEXPORT int CALLCONVENTION tqsl_getLocationCallSign(tQSL_Location loc, char *buf, int bufsiz);
1207
1209 DLLEXPORT int CALLCONVENTION tqsl_setLocationCallSign(tQSL_Location loc, const char *buf, int dxcc);
1210
1212 DLLEXPORT int CALLCONVENTION tqsl_getLocationField(tQSL_Location locp, const char *field, char *buf, int bufsiz);
1213
1215 DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldLabel(tQSL_Location locp, const char *field, char *buf, int bufsiz);
1216
1218 DLLEXPORT int CALLCONVENTION tqsl_setLocationField(tQSL_Location locp, const char *field, const char *buf);
1219
1221 DLLEXPORT int CALLCONVENTION tqsl_getLocationDXCCEntity(tQSL_Location loc, int *dxcc);
1222
1224 DLLEXPORT int CALLCONVENTION tqsl_getLocationQSODetails(tQSL_Location locp, char *buf, int buflen);
1225
1227 DLLEXPORT int CALLCONVENTION tqsl_getLocationStationDetails(tQSL_Location locp, char *buf, int buflen);
1228
1230 DLLEXPORT int CALLCONVENTION tqsl_saveCallsignLocationInfo(const char *callsign, const char *json);
1231
1233 DLLEXPORT int CALLCONVENTION tqsl_getCallsignLocationInfo(const char *callsign, char **buf);
1234
1235#define TQSL_VALID_VUCC_ENT 0x2000
1236#define TQSL_VALID_VUCC_PAS 0x4000
1237
1239 DLLEXPORT int CALLCONVENTION tqsl_validateVUCCGrid(int entity, const char *pas, const char *grid, int *result);
1240
1243 DLLEXPORT int CALLCONVENTION tqsl_getNumDXCCEntity(int *number);
1244
1247 DLLEXPORT int CALLCONVENTION tqsl_getDXCCEntity(int index, int *number, const char **name);
1248
1251 DLLEXPORT int CALLCONVENTION tqsl_getDXCCEntityName(int number, const char **name);
1252
1255 DLLEXPORT int CALLCONVENTION tqsl_getDXCCZoneMap(int number, const char **zonemap);
1256
1259 DLLEXPORT int CALLCONVENTION tqsl_getDXCCStartDate(int number, tQSL_Date *d);
1260
1263 DLLEXPORT int CALLCONVENTION tqsl_getDXCCEndDate(int number, tQSL_Date *d);
1264
1267 DLLEXPORT int CALLCONVENTION tqsl_getDXCCDeleted(int number, int *deleted);
1268
1270 DLLEXPORT int CALLCONVENTION tqsl_getNumBand(int *number);
1271
1281 DLLEXPORT int CALLCONVENTION tqsl_getBand(int index, const char **name, const char **spectrum, int *low, int *high);
1282
1284 DLLEXPORT int CALLCONVENTION tqsl_getNumMode(int *number);
1285
1293 DLLEXPORT int CALLCONVENTION tqsl_getMode(int index, const char **mode, const char **group);
1294
1296 DLLEXPORT int CALLCONVENTION tqsl_getNumADIFMode(int *number);
1297
1303 DLLEXPORT int CALLCONVENTION tqsl_getADIFModeEntry(int index, const char **mode);
1304
1306 DLLEXPORT int CALLCONVENTION tqsl_getNumPropagationMode(int *number);
1307
1315 DLLEXPORT int CALLCONVENTION tqsl_getPropagationMode(int index, const char **name, const char **descrip);
1316
1318 DLLEXPORT int CALLCONVENTION tqsl_getNumSatellite(int *number);
1319
1329 DLLEXPORT int CALLCONVENTION tqsl_getSatellite(int index, const char **name, const char **descrip,
1330 tQSL_Date *start, tQSL_Date *end);
1331
1334 DLLEXPORT int CALLCONVENTION tqsl_clearCabrilloMap();
1335
1346 DLLEXPORT int CALLCONVENTION tqsl_setCabrilloMapEntry(const char *contest, int field, int contest_type);
1347
1359 DLLEXPORT int CALLCONVENTION tqsl_getCabrilloMapEntry(const char *contest, int *fieldnum, int *contest_type);
1360
1363 DLLEXPORT int CALLCONVENTION tqsl_clearADIFModes();
1364
1367 DLLEXPORT int CALLCONVENTION tqsl_setADIFMode(const char *adif_item, const char *mode);
1368
1371 DLLEXPORT int CALLCONVENTION tqsl_getADIFMode(const char *adif_item, char *mode, int nmode);
1372
1375 DLLEXPORT int CALLCONVENTION tqsl_getADIFSubMode(const char *adif_item, char *mode, char *submode, int nmode);
1376
1386 DLLEXPORT const char* CALLCONVENTION tqsl_getGABBItCERT(tQSL_Cert cert, int uid);
1387
1398 DLLEXPORT const char* CALLCONVENTION tqsl_getGABBItSTATION(tQSL_Location loc, int uid, int certuid);
1399
1412 DLLEXPORT const char* CALLCONVENTION tqsl_getGABBItCONTACT(tQSL_Cert cert, tQSL_Location loc, TQSL_QSO_RECORD *qso,
1413 int stationuid);
1414
1428 DLLEXPORT const char* CALLCONVENTION tqsl_getGABBItCONTACTData(tQSL_Cert cert, tQSL_Location loc, TQSL_QSO_RECORD *qso,
1429 int stationuid, char *signdata, int sdlen);
1430
1431#define GRID_ERROR_INVALID_FIELD 2
1432#define GRID_ERROR_INVALID_SQUARE 3
1433#define GRID_ERROR_INVALID_SUBSQUARE 4
1434#define GRID_ERROR_INVALID_SUBSUBSQUARE 5
1435#define GRID_ERROR_INVALID_FORMAT 6
1436
1442 DLLEXPORT int CALLCONVENTION tqsl_verifyGridFormat(const char *grid, int twelve, char* newGrid, int newlen);
1443
1445
1450 DLLEXPORT void CALLCONVENTION tqslTrace(const char *name, const char *format, ...);
1453 DLLEXPORT void CALLCONVENTION tqsl_closeDiagFile(void);
1456 DLLEXPORT int CALLCONVENTION tqsl_diagFileOpen(void);
1460 DLLEXPORT int CALLCONVENTION tqsl_openDiagFile(const char* file);
1464 DLLEXPORT void CALLCONVENTION tqsl_removeUploadDatabase(void);
1465
1466#ifdef _WIN32
1467 DLLEXPORT wchar_t* CALLCONVENTION utf8_to_wchar(const char* str);
1468 DLLEXPORT char* CALLCONVENTION wchar_to_utf8(const wchar_t* str, bool forceUTF8);
1469 DLLEXPORT void CALLCONVENTION free_wchar(wchar_t* ptr);
1470#endif
1471
1472#ifdef __cplusplus
1473}
1474#endif
1475
1476/* Useful defines */
1477#define TQSL_MAX_PW_LENGTH 32
1478
1479#endif /* TQSLLIB_H */
adif.h
cabrillo.h
TQSL_ADIF_GET_FIELD_ERROR
TQSL_ADIF_GET_FIELD_ERROR
Response values returned from tqsl_getADIFField()
Definition adif.h:51
TQSL_CABRILLO_ERROR_TYPE
TQSL_CABRILLO_ERROR_TYPE
Cabrillo status values.
Definition cabrillo.h:38
tqsl_getCertificateRequestAddress1
DLLEXPORT int CALLCONVENTION tqsl_getCertificateRequestAddress1(tQSL_Cert cert, char *str, int bufsiz)
tqsl_getCertificateAROName
DLLEXPORT int CALLCONVENTION tqsl_getCertificateAROName(tQSL_Cert cert, char *buf, int bufsiz)
tqsl_importPKCS12File
DLLEXPORT int CALLCONVENTION tqsl_importPKCS12File(const char *filename, const char *p12password, const char *password, int(*pwcb)(char *buf, int bufsiz, void *userdata), int(*cb)(int type, const char *message, void *userdata), void *user)
tqsl_deleteCertificate
DLLEXPORT int CALLCONVENTION tqsl_deleteCertificate(tQSL_Cert cert)
tqsl_getCertificateRequestCity
DLLEXPORT int CALLCONVENTION tqsl_getCertificateRequestCity(tQSL_Cert cert, char *str, int bufsiz)
tqsl_exportPKCS12File
DLLEXPORT int CALLCONVENTION tqsl_exportPKCS12File(tQSL_Cert cert, const char *filename, const char *p12password)
tqsl_getCertificateRequestState
DLLEXPORT int CALLCONVENTION tqsl_getCertificateRequestState(tQSL_Cert cert, char *str, int bufsiz)
tqsl_getSelectedCertificate
DLLEXPORT int CALLCONVENTION tqsl_getSelectedCertificate(tQSL_Cert *cert, const tQSL_Cert **certlist, int idx)
tqsl_getCertificateIssuerOrganizationalUnit
DLLEXPORT int CALLCONVENTION tqsl_getCertificateIssuerOrganizationalUnit(tQSL_Cert cert, char *buf, int bufsiz)
tqsl_isCertificateSuperceded
DLLEXPORT int CALLCONVENTION tqsl_isCertificateSuperceded(tQSL_Cert cert, int *status)
tqsl_exportPKCS12FileWeakCrypto
DLLEXPORT int CALLCONVENTION tqsl_exportPKCS12FileWeakCrypto(tQSL_Cert cert, const char *filename, const char *p12password)
tqsl_selectCACertificates
DLLEXPORT int CALLCONVENTION tqsl_selectCACertificates(tQSL_Cert **certlist, int *ncerts, const char *type)
tqsl_getCertificatePrivateKeyType
DLLEXPORT int CALLCONVENTION tqsl_getCertificatePrivateKeyType(tQSL_Cert cert)
tqsl_restoreCallsignCertificate
DLLEXPORT int CALLCONVENTION tqsl_restoreCallsignCertificate(const char *callsign)
tqsl_createCertRequest
DLLEXPORT int CALLCONVENTION tqsl_createCertRequest(const char *filename, TQSL_CERT_REQ *req, int(*pwcb)(char *pwbuf, int pwsize, void *userdata), void *user)
tqsl_importKeyPairEncoded
DLLEXPORT int CALLCONVENTION tqsl_importKeyPairEncoded(const char *callsign, const char *type, const char *keybuf, const char *certbuf)
tqsl_selectCertificates
DLLEXPORT int CALLCONVENTION tqsl_selectCertificates(tQSL_Cert **certlist, int *ncerts, const char *callsign, int dxcc, const tQSL_Date *date, const TQSL_PROVIDER *issuer, int flag)
tqsl_getCertificateSerialLength
DLLEXPORT int CALLCONVENTION tqsl_getCertificateSerialLength(tQSL_Cert cert)
tqsl_getCertificateQSONotAfterDate
DLLEXPORT int CALLCONVENTION tqsl_getCertificateQSONotAfterDate(tQSL_Cert cert, tQSL_Date *date)
tqsl_getSerialFromTQSLFile
DLLEXPORT int CALLCONVENTION tqsl_getSerialFromTQSLFile(const char *file, long *serial)
tqsl_importPKCS12Base64
DLLEXPORT int CALLCONVENTION tqsl_importPKCS12Base64(const char *base64, const char *p12password, const char *password, int(*pwcb)(char *buf, int bufsiz, void *userdata), int(*cb)(int type, const char *message, void *userdata), void *user)
tqsl_getCertificateSerial
DLLEXPORT int CALLCONVENTION tqsl_getCertificateSerial(tQSL_Cert cert, long *serial)
tqsl_getNumProviders
DLLEXPORT int CALLCONVENTION tqsl_getNumProviders(int *n)
tqsl_getCertificateIssuerOrganization
DLLEXPORT int CALLCONVENTION tqsl_getCertificateIssuerOrganization(tQSL_Cert cert, char *buf, int bufsiz)
tqsl_getCertificateQSONotBeforeDate
DLLEXPORT int CALLCONVENTION tqsl_getCertificateQSONotBeforeDate(tQSL_Cert cert, tQSL_Date *date)
tqsl_getCertificateNotAfterDate
DLLEXPORT int CALLCONVENTION tqsl_getCertificateNotAfterDate(tQSL_Cert cert, tQSL_Date *date)
tqsl_isCertificateRenewable
DLLEXPORT int CALLCONVENTION tqsl_isCertificateRenewable(tQSL_Cert cert, int *status)
tqsl_isCertificateExpired
DLLEXPORT int CALLCONVENTION tqsl_isCertificateExpired(tQSL_Cert cert, int *status)
tqsl_getCertificateEmailAddress
DLLEXPORT int CALLCONVENTION tqsl_getCertificateEmailAddress(tQSL_Cert cert, char *buf, int bufsiz)
tqsl_getCertificateNotBeforeDate
DLLEXPORT int CALLCONVENTION tqsl_getCertificateNotBeforeDate(tQSL_Cert cert, tQSL_Date *date)
tqsl_getProvider
DLLEXPORT int CALLCONVENTION tqsl_getProvider(int idx, TQSL_PROVIDER *provider)
tqsl_getCertificateRequestPostalCode
DLLEXPORT int CALLCONVENTION tqsl_getCertificateRequestPostalCode(tQSL_Cert cert, char *str, int bufsiz)
tqsl_getCertificateCallSign
DLLEXPORT int CALLCONVENTION tqsl_getCertificateCallSign(tQSL_Cert cert, char *buf, int bufsiz)
tqsl_freeCertificateList
DLLEXPORT void CALLCONVENTION tqsl_freeCertificateList(tQSL_Cert *list, int ncerts)
tqsl_getKeyEncoded
DLLEXPORT int CALLCONVENTION tqsl_getKeyEncoded(tQSL_Cert cert, char *buf, int bufsiz)
tqsl_getCertificateStatus
DLLEXPORT int CALLCONVENTION tqsl_getCertificateStatus(long serial)
tqsl_getCertificateKeyOnly
DLLEXPORT int CALLCONVENTION tqsl_getCertificateKeyOnly(tQSL_Cert cert, int *keyonly)
tqsl_exportPKCS12Base64
DLLEXPORT int CALLCONVENTION tqsl_exportPKCS12Base64(tQSL_Cert cert, char *base64, int b64len, const char *p12password)
tqsl_getCertificateRequestAddress2
DLLEXPORT int CALLCONVENTION tqsl_getCertificateRequestAddress2(tQSL_Cert cert, char *str, int bufsiz)
tqsl_getCertificateIssuer
DLLEXPORT int CALLCONVENTION tqsl_getCertificateIssuer(tQSL_Cert cert, char *buf, int bufsiz)
tqsl_getCertificateEncoded
DLLEXPORT int CALLCONVENTION tqsl_getCertificateEncoded(tQSL_Cert cert, char *buf, int bufsiz)
tqsl_getCertificateDXCCEntity
DLLEXPORT int CALLCONVENTION tqsl_getCertificateDXCCEntity(tQSL_Cert cert, int *dxcc)
tqsl_importTQSLFile
DLLEXPORT int CALLCONVENTION tqsl_importTQSLFile(const char *file, int(*cb)(int type, const char *message, void *userdata), void *user)
tqsl_getCertificateRequestCountry
DLLEXPORT int CALLCONVENTION tqsl_getCertificateRequestCountry(tQSL_Cert cert, char *str, int bufsiz)
tqsl_freeCertificate
DLLEXPORT void CALLCONVENTION tqsl_freeCertificate(tQSL_Cert cert)
tqsl_freeDeletedCertificateList
DLLEXPORT void CALLCONVENTION tqsl_freeDeletedCertificateList(char **list, int nloc)
tqsl_setCertificateStatus
DLLEXPORT int CALLCONVENTION tqsl_setCertificateStatus(long serial, const char *status)
tqsl_getCertificateSerialExt
DLLEXPORT int CALLCONVENTION tqsl_getCertificateSerialExt(tQSL_Cert cert, char *serial, int serialsiz)
tqsl_getDeletedCallsignCertificates
DLLEXPORT int CALLCONVENTION tqsl_getDeletedCallsignCertificates(char ***calls, int *ncall, const char *filter)
tqsl_getADIFMode
DLLEXPORT int CALLCONVENTION tqsl_getADIFMode(const char *adif_item, char *mode, int nmode)
tqsl_initStationLocationCapture
DLLEXPORT int CALLCONVENTION tqsl_initStationLocationCapture(tQSL_Location *locp)
tqsl_getLocationFieldFlags
DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldFlags(tQSL_Location loc, int field_num, int *flags)
tqsl_setLocationFieldCharData
DLLEXPORT int CALLCONVENTION tqsl_setLocationFieldCharData(tQSL_Location loc, int field_num, const char *buf)
tqsl_getNumSatellite
DLLEXPORT int CALLCONVENTION tqsl_getNumSatellite(int *number)
tqsl_saveStationLocationCapture
DLLEXPORT int CALLCONVENTION tqsl_saveStationLocationCapture(tQSL_Location loc, int overwrite)
tqsl_getNumMode
DLLEXPORT int CALLCONVENTION tqsl_getNumMode(int *number)
tqsl_getDXCCEndDate
DLLEXPORT int CALLCONVENTION tqsl_getDXCCEndDate(int number, tQSL_Date *d)
tqsl_getStationLocation
DLLEXPORT int CALLCONVENTION tqsl_getStationLocation(tQSL_Location *loc, const char *name)
tqsl_setLocationFieldIndex
DLLEXPORT int CALLCONVENTION tqsl_setLocationFieldIndex(tQSL_Location loc, int field_num, int dat)
tqsl_getNumStationLocationCapturePages
DLLEXPORT int CALLCONVENTION tqsl_getNumStationLocationCapturePages(tQSL_Location loc, int *npages)
tqsl_getStationDataEnc
DLLEXPORT int CALLCONVENTION tqsl_getStationDataEnc(tQSL_StationDataEnc *sdata)
tqsl_getLocationFieldDataLabelSize
DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldDataLabelSize(tQSL_Location loc, int field_num, int *rval)
tqsl_getNumStationLocations
DLLEXPORT int CALLCONVENTION tqsl_getNumStationLocations(tQSL_Location loc, int *nloc)
tqsl_setLocationFieldIntData
DLLEXPORT int CALLCONVENTION tqsl_setLocationFieldIntData(tQSL_Location loc, int field_num, int dat)
tqsl_setLocationField
DLLEXPORT int CALLCONVENTION tqsl_setLocationField(tQSL_Location locp, const char *field, const char *buf)
tqsl_getLocationFieldDataType
DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldDataType(tQSL_Location loc, int field_num, int *type)
tqsl_freeStationDataEnc
DLLEXPORT int CALLCONVENTION tqsl_freeStationDataEnc(tQSL_StationDataEnc sdata)
tqsl_getADIFModeEntry
DLLEXPORT int CALLCONVENTION tqsl_getADIFModeEntry(int index, const char **mode)
tqsl_verifyGridFormat
DLLEXPORT int CALLCONVENTION tqsl_verifyGridFormat(const char *grid, int twelve, char *newGrid, int newlen)
tqsl_endStationLocationCapture
DLLEXPORT int CALLCONVENTION tqsl_endStationLocationCapture(tQSL_Location *locp)
tqsl_getPrevStationLocationCapturePage
DLLEXPORT int CALLCONVENTION tqsl_getPrevStationLocationCapturePage(tQSL_Location loc, int *page)
tqsl_getStationLocationCapturePage
DLLEXPORT int CALLCONVENTION tqsl_getStationLocationCapturePage(tQSL_Location loc, int *page)
tqsl_setStationLocationCaptureName
DLLEXPORT int CALLCONVENTION tqsl_setStationLocationCaptureName(tQSL_Location loc, const char *name)
tqsl_getNumADIFMode
DLLEXPORT int CALLCONVENTION tqsl_getNumADIFMode(int *number)
tqsl_getStationLocationErrors
DLLEXPORT int CALLCONVENTION tqsl_getStationLocationErrors(tQSL_Location loc, char *buf, int bufsiz)
tqsl_getDeletedStationLocations
DLLEXPORT int CALLCONVENTION tqsl_getDeletedStationLocations(char ***locp, int *nloc)
tqsl_getNextStationLocationCapturePage
DLLEXPORT int CALLCONVENTION tqsl_getNextStationLocationCapturePage(tQSL_Location loc, int *page)
tqsl_getLocationFieldDataGABBI
DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldDataGABBI(tQSL_Location loc, int field_num, char *buf, int bufsiz)
tqsl_getDXCCEntityName
DLLEXPORT int CALLCONVENTION tqsl_getDXCCEntityName(int number, const char **name)
tqsl_setStationLocationCapturePage
DLLEXPORT int CALLCONVENTION tqsl_setStationLocationCapturePage(tQSL_Location loc, int page)
tqsl_setLocationCallSign
DLLEXPORT int CALLCONVENTION tqsl_setLocationCallSign(tQSL_Location loc, const char *buf, int dxcc)
tqsl_validateVUCCGrid
DLLEXPORT int CALLCONVENTION tqsl_validateVUCCGrid(int entity, const char *pas, const char *grid, int *result)
tqsl_hasNextStationLocationCapture
DLLEXPORT int CALLCONVENTION tqsl_hasNextStationLocationCapture(tQSL_Location loc, int *rval)
tqsl_getLocationField
DLLEXPORT int CALLCONVENTION tqsl_getLocationField(tQSL_Location locp, const char *field, char *buf, int bufsiz)
tqsl_getLocationFieldDataLabel
DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldDataLabel(tQSL_Location loc, int field_num, char *buf, int bufsiz)
tqsl_getDXCCEntity
DLLEXPORT int CALLCONVENTION tqsl_getDXCCEntity(int index, int *number, const char **name)
tqsl_getDXCCStartDate
DLLEXPORT int CALLCONVENTION tqsl_getDXCCStartDate(int number, tQSL_Date *d)
tqsl_getNumLocationFieldListItems
DLLEXPORT int CALLCONVENTION tqsl_getNumLocationFieldListItems(tQSL_Location loc, int field_num, int *rval)
tqsl_getGABBItCONTACTData
DLLEXPORT const char *CALLCONVENTION tqsl_getGABBItCONTACTData(tQSL_Cert cert, tQSL_Location loc, TQSL_QSO_RECORD *qso, int stationuid, char *signdata, int sdlen)
tqsl_getGABBItCONTACT
DLLEXPORT const char *CALLCONVENTION tqsl_getGABBItCONTACT(tQSL_Cert cert, tQSL_Location loc, TQSL_QSO_RECORD *qso, int stationuid)
tqsl_getLocationFieldIntData
DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldIntData(tQSL_Location loc, int field_num, int *dat)
tqsl_getLocationFieldListItem
DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldListItem(tQSL_Location loc, int field_num, int item_idx, char *buf, int bufsiz)
tqsl_getCurrentStationLocationCapturePage
DLLEXPORT int CALLCONVENTION tqsl_getCurrentStationLocationCapturePage(tQSL_Location loc, int *page)
tqsl_prevStationLocationCapture
DLLEXPORT int CALLCONVENTION tqsl_prevStationLocationCapture(tQSL_Location loc)
tqsl_getStationLocationCallSign
DLLEXPORT int CALLCONVENTION tqsl_getStationLocationCallSign(tQSL_Location loc, int idx, char *buf, int bufsiz)
tqsl_getLocationStationDetails
DLLEXPORT int CALLCONVENTION tqsl_getLocationStationDetails(tQSL_Location locp, char *buf, int buflen)
tqsl_getMode
DLLEXPORT int CALLCONVENTION tqsl_getMode(int index, const char **mode, const char **group)
tqsl_updateStationLocationCapture
DLLEXPORT int CALLCONVENTION tqsl_updateStationLocationCapture(tQSL_Location loc)
tqsl_getStationLocationCaptureName
DLLEXPORT int CALLCONVENTION tqsl_getStationLocationCaptureName(tQSL_Location loc, char *namebuf, int bufsiz)
tqsl_getLocationQSODetails
DLLEXPORT int CALLCONVENTION tqsl_getLocationQSODetails(tQSL_Location locp, char *buf, int buflen)
tqsl_getNumBand
DLLEXPORT int CALLCONVENTION tqsl_getNumBand(int *number)
tqsl_getLocationFieldInputType
DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldInputType(tQSL_Location loc, int field_num, int *type)
tqsl_restoreStationLocation
DLLEXPORT int CALLCONVENTION tqsl_restoreStationLocation(const char *name)
tqsl_getLocationFieldCharData
DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldCharData(tQSL_Location loc, int field_num, char *buf, int bufsiz)
tqsl_getGABBItSTATION
DLLEXPORT const char *CALLCONVENTION tqsl_getGABBItSTATION(tQSL_Location loc, int uid, int certuid)
tqsl_nextStationLocationCapture
DLLEXPORT int CALLCONVENTION tqsl_nextStationLocationCapture(tQSL_Location loc)
tqsl_setStationLocationCertFlags
DLLEXPORT int CALLCONVENTION tqsl_setStationLocationCertFlags(tQSL_Location loc, int flags)
tqsl_getBand
DLLEXPORT int CALLCONVENTION tqsl_getBand(int index, const char **name, const char **spectrum, int *low, int *high)
tqsl_deleteStationLocation
DLLEXPORT int CALLCONVENTION tqsl_deleteStationLocation(const char *name)
tqsl_setADIFMode
DLLEXPORT int CALLCONVENTION tqsl_setADIFMode(const char *adif_item, const char *mode)
tqsl_getCallsignLocationInfo
DLLEXPORT int CALLCONVENTION tqsl_getCallsignLocationInfo(const char *callsign, char **buf)
tqsl_clearADIFModes
DLLEXPORT int CALLCONVENTION tqsl_clearADIFModes()
tqsl_setCabrilloMapEntry
DLLEXPORT int CALLCONVENTION tqsl_setCabrilloMapEntry(const char *contest, int field, int contest_type)
tqsl_clearCabrilloMap
DLLEXPORT int CALLCONVENTION tqsl_clearCabrilloMap()
tqsl_getNumLocationField
DLLEXPORT int CALLCONVENTION tqsl_getNumLocationField(tQSL_Location loc, int *numf)
tqsl_getNumDXCCEntity
DLLEXPORT int CALLCONVENTION tqsl_getNumDXCCEntity(int *number)
tqsl_getLocationFieldDataGABBISize
DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldDataGABBISize(tQSL_Location loc, int field_num, int *rval)
tqsl_getADIFSubMode
DLLEXPORT int CALLCONVENTION tqsl_getADIFSubMode(const char *adif_item, char *mode, char *submode, int nmode)
tqsl_getLocationCallSign
DLLEXPORT int CALLCONVENTION tqsl_getLocationCallSign(tQSL_Location loc, char *buf, int bufsiz)
tqsl_getLocationFieldLabel
DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldLabel(tQSL_Location locp, const char *field, char *buf, int bufsiz)
tqsl_getLocationFieldChanged
DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldChanged(tQSL_Location loc, int field_num, int *changed)
tqsl_mergeStationLocations
DLLEXPORT int CALLCONVENTION tqsl_mergeStationLocations(const char *locdata)
tqsl_getStationLocationField
DLLEXPORT int CALLCONVENTION tqsl_getStationLocationField(tQSL_Location locp, const char *name, char *namebuf, int bufsize)
tqsl_getDXCCZoneMap
DLLEXPORT int CALLCONVENTION tqsl_getDXCCZoneMap(int number, const char **zonemap)
tqsl_getSatellite
DLLEXPORT int CALLCONVENTION tqsl_getSatellite(int index, const char **name, const char **descrip, tQSL_Date *start, tQSL_Date *end)
tqsl_getCabrilloMapEntry
DLLEXPORT int CALLCONVENTION tqsl_getCabrilloMapEntry(const char *contest, int *fieldnum, int *contest_type)
tqsl_getNumPropagationMode
DLLEXPORT int CALLCONVENTION tqsl_getNumPropagationMode(int *number)
tqsl_saveCallsignLocationInfo
DLLEXPORT int CALLCONVENTION tqsl_saveCallsignLocationInfo(const char *callsign, const char *json)
tqsl_getLocationFieldDataLength
DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldDataLength(tQSL_Location loc, int field_num, int *rval)
tqsl_getPropagationMode
DLLEXPORT int CALLCONVENTION tqsl_getPropagationMode(int index, const char **name, const char **descrip)
tqsl_getDXCCDeleted
DLLEXPORT int CALLCONVENTION tqsl_getDXCCDeleted(int number, int *deleted)
tqsl_hasPrevStationLocationCapture
DLLEXPORT int CALLCONVENTION tqsl_hasPrevStationLocationCapture(tQSL_Location loc, int *rval)
tqsl_getStationLocationName
DLLEXPORT int CALLCONVENTION tqsl_getStationLocationName(tQSL_Location loc, int idx, char *buf, int bufsiz)
tqsl_getGABBItCERT
DLLEXPORT const char *CALLCONVENTION tqsl_getGABBItCERT(tQSL_Cert cert, int uid)
tqsl_freeDeletedLocationList
DLLEXPORT void CALLCONVENTION tqsl_freeDeletedLocationList(char **list, int nloc)
tqsl_getLocationDXCCEntity
DLLEXPORT int CALLCONVENTION tqsl_getLocationDXCCEntity(tQSL_Location loc, int *dxcc)
tqsl_getLocationFieldIndex
DLLEXPORT int CALLCONVENTION tqsl_getLocationFieldIndex(tQSL_Location loc, int field_num, int *dat)
tqsl_verifyDataBlock
DLLEXPORT int CALLCONVENTION tqsl_verifyDataBlock(tQSL_Cert cert, const unsigned char *data, int datalen, unsigned char *sig, int siglen)
tqsl_getMaxSignatureSize
DLLEXPORT int CALLCONVENTION tqsl_getMaxSignatureSize(tQSL_Cert cert, int *sigsize)
tqsl_signDataBlock
DLLEXPORT int CALLCONVENTION tqsl_signDataBlock(tQSL_Cert cert, const unsigned char *data, int datalen, unsigned char *sig, int *siglen)
tqsl_beginSigning
DLLEXPORT int CALLCONVENTION tqsl_beginSigning(tQSL_Cert cert, char *password, int(*pwcb)(char *pwbuf, int pwsize, void *userdata), void *user)
tqsl_endSigning
DLLEXPORT int CALLCONVENTION tqsl_endSigning(tQSL_Cert cert)
tqsl_checkSigningStatus
DLLEXPORT int CALLCONVENTION tqsl_checkSigningStatus(tQSL_Cert cert)
tqsl_signQSORecord
DLLEXPORT int CALLCONVENTION tqsl_signQSORecord(tQSL_Cert cert, tQSL_Location loc, TQSL_QSO_RECORD *rec, unsigned char *sig, int *siglen)
tqsl_getErrorString
DLLEXPORT const char *CALLCONVENTION tqsl_getErrorString()
tQSL_ADIF_Error
DLLEXPORTDATA TQSL_ADIF_GET_FIELD_ERROR tQSL_ADIF_Error
The ADIF error code.
tqsl_convertDateToText
DLLEXPORT char *CALLCONVENTION tqsl_convertDateToText(const tQSL_Date *date, char *buf, int bufsiz)
tQSL_DiagFile
DLLEXPORTDATA FILE * tQSL_DiagFile
Diagnostic log file.
tqsl_getErrorString_v
DLLEXPORT const char *CALLCONVENTION tqsl_getErrorString_v(int err)
tqsl_decodeBase64
DLLEXPORT int CALLCONVENTION tqsl_decodeBase64(const char *input, unsigned char *data, int *datalen)
tqsl_getVersion
DLLEXPORT int CALLCONVENTION tqsl_getVersion(int *major, int *minor)
tqsl_compareDates
DLLEXPORT int CALLCONVENTION tqsl_compareDates(const tQSL_Date *a, const tQSL_Date *b)
tqsl_init
DLLEXPORT int CALLCONVENTION tqsl_init()
tQSL_CustomError
DLLEXPORTDATA char tQSL_CustomError[256]
Custom error message string.
tqsl_isDateValid
DLLEXPORT int CALLCONVENTION tqsl_isDateValid(const tQSL_Date *d)
tqsl_subtractDates
DLLEXPORT int CALLCONVENTION tqsl_subtractDates(const tQSL_Date *a, const tQSL_Date *b, int *diff)
tqsl_isTimeValid
DLLEXPORT int CALLCONVENTION tqsl_isTimeValid(const tQSL_Time *t)
tqsl_isDateNull
DLLEXPORT int CALLCONVENTION tqsl_isDateNull(const tQSL_Date *d)
tqsl_setDirectory
DLLEXPORT int CALLCONVENTION tqsl_setDirectory(const char *dir)
tqsl_encodeBase64
DLLEXPORT int CALLCONVENTION tqsl_encodeBase64(const unsigned char *data, int datalen, char *output, int outputlen)
tqsl_initTime
DLLEXPORT int CALLCONVENTION tqsl_initTime(tQSL_Time *time, const char *str)
tqsl_convertTimeToText
DLLEXPORT char *CALLCONVENTION tqsl_convertTimeToText(const tQSL_Time *time, char *buf, int bufsiz)
tqsl_getConfigVersion
DLLEXPORT int CALLCONVENTION tqsl_getConfigVersion(int *major, int *minor)
tQSL_ImportSerial
DLLEXPORTDATA long tQSL_ImportSerial
Serial number of recent certificate import.
tQSL_Error
DLLEXPORTDATA int tQSL_Error
Error code from most recent tQSL library call.
tQSL_Cabrillo_Error
DLLEXPORTDATA TQSL_CABRILLO_ERROR_TYPE tQSL_Cabrillo_Error
The ADIF error code.
tqsl_initDate
DLLEXPORT int CALLCONVENTION tqsl_initDate(tQSL_Date *date, const char *str)
tQSL_ErrorFile
DLLEXPORTDATA char tQSL_ErrorFile[TQSL_MAX_PATH_LEN]
File name of file giving error. (May be empty.)
tQSL_Errno
DLLEXPORTDATA int tQSL_Errno
System errno - stored when tQSL_Error == TQSL_SYSTEM_ERROR.
tQSL_ImportCall
DLLEXPORTDATA char tQSL_ImportCall[256]
Callsign used in import - used for missing public key error.
TQSL_QSO_RECORD
Definition tqsllib.h:134
TQSL_QSO_RECORD::time_set
bool time_set
QSO specifies a time.
Definition tqsllib.h:150
TQSL_QSO_RECORD::date_set
bool date_set
QSO specifies a date.
Definition tqsllib.h:149
TQSL_QSO_RECORD::my_country
char my_country[TQSL_COUNTRY_MAX+1]
QSO specifies MY_COUNTRY.
Definition tqsllib.h:156
TQSL_QSO_RECORD::mode_set
bool mode_set
QSO specifies a mode.
Definition tqsllib.h:147
TQSL_QSO_RECORD::date
tQSL_Date date
QSO date.
Definition tqsllib.h:139
TQSL_QSO_RECORD::callsign_set
bool callsign_set
QSO specifies a call worked.
Definition tqsllib.h:146
TQSL_QSO_RECORD::band_set
bool band_set
QSO specifies a band or frequency.
Definition tqsllib.h:148
TQSL_QSO_RECORD::propmode
char propmode[TQSL_PROPMODE_MAX+1]
QSO prop mode.
Definition tqsllib.h:144
TQSL_QSO_RECORD::my_vucc_grids
char my_vucc_grids[TQSL_GRID_MAX+1]
QSO specifies MY_VUCC_GRIDS.
Definition tqsllib.h:153
TQSL_QSO_RECORD::my_cnty_state
char my_cnty_state[TQSL_STATE_MAX+1]
QSO specifies a state with MY_CNTY.
Definition tqsllib.h:155
TQSL_QSO_RECORD::my_itu_zone
char my_itu_zone[TQSL_ZONE_MAX+1]
QSO specifies MY_ITU_ZONE.
Definition tqsllib.h:158
TQSL_QSO_RECORD::my_dxcc
int my_dxcc
QSO specifies MY_DXCC.
Definition tqsllib.h:159
TQSL_QSO_RECORD::rxfreq
char rxfreq[TQSL_FREQ_MAX+1]
QSO receive frequency.
Definition tqsllib.h:142
TQSL_QSO_RECORD::band
char band[TQSL_BAND_MAX+1]
QSO band.
Definition tqsllib.h:136
TQSL_QSO_RECORD::my_call
char my_call[TQSL_CALLSIGN_MAX+1]
Station Callsign.
Definition tqsllib.h:160
TQSL_QSO_RECORD::time
tQSL_Time time
QSO time.
Definition tqsllib.h:140
TQSL_QSO_RECORD::satname
char satname[TQSL_SATNAME_MAX+1]
QSO satellite name.
Definition tqsllib.h:145
TQSL_QSO_RECORD::rxband
char rxband[TQSL_BAND_MAX+1]
QSO RX band.
Definition tqsllib.h:143
TQSL_QSO_RECORD::my_county
char my_county[TQSL_CNTY_MAX+1]
QSO specifies MY_CNTY.
Definition tqsllib.h:154
TQSL_QSO_RECORD::my_state
char my_state[TQSL_STATE_MAX+1]
QSO specifies MY_STATE.
Definition tqsllib.h:151
TQSL_QSO_RECORD::mode
char mode[TQSL_MODE_MAX+1]
QSO mode.
Definition tqsllib.h:137
TQSL_QSO_RECORD::callsign
char callsign[TQSL_CALLSIGN_MAX+1]
QSO callsign.
Definition tqsllib.h:135
TQSL_QSO_RECORD::my_gridsquare
char my_gridsquare[TQSL_GRID_MAX+1]
QSO specifies MY_GRIDSQUARE.
Definition tqsllib.h:152
TQSL_QSO_RECORD::my_iota
char my_iota[TQSL_IOTA_MAX+1]
QSO specifies MY_IOTA_.
Definition tqsllib.h:165
TQSL_QSO_RECORD::my_operator
char my_operator[TQSL_CALLSIGN_MAX+1]
Operator's callsign.
Definition tqsllib.h:164
TQSL_QSO_RECORD::submode
char submode[TQSL_MODE_MAX+1]
QSO submode.
Definition tqsllib.h:138
TQSL_QSO_RECORD::my_cq_zone
char my_cq_zone[TQSL_ZONE_MAX+1]
QSO specifies MY_CQ_ZONE.
Definition tqsllib.h:157
TQSL_QSO_RECORD::freq
char freq[TQSL_FREQ_MAX+1]
QSO frequency.
Definition tqsllib.h:141
tQSL_Date
Definition tqsllib.h:91
tQSL_Date::month
int month
Numeric month.
Definition tqsllib.h:93
tQSL_Date::year
int year
Numeric year.
Definition tqsllib.h:92
tQSL_Date::day
int day
Numeric day.
Definition tqsllib.h:94
tQSL_Time
Definition tqsllib.h:98
tQSL_Time::second
int second
Time seconds field.
Definition tqsllib.h:101
tQSL_Time::hour
int hour
Time hour field.
Definition tqsllib.h:99
tQSL_Time::minute
int minute
Time minute field.
Definition tqsllib.h:100
tqsl_cert_req_st
Definition tqsllib.h:113
tqsl_cert_req_st::password
char password[TQSL_PASSWORD_MAX+1]
Password.
Definition tqsllib.h:128
tqsl_cert_req_st::renew
char renew
Rewewal reference.
Definition tqsllib.h:130
tqsl_cert_req_st::address2
char address2[TQSL_CRQ_ADDR_MAX+1]
Address 2.
Definition tqsllib.h:119
tqsl_cert_req_st::qsoNotAfter
tQSL_Date qsoNotAfter
QSOs not after date.
Definition tqsllib.h:127
tqsl_cert_req_st::signer
tQSL_Cert signer
Signing cert.
Definition tqsllib.h:129
tqsl_cert_req_st::callSign
char callSign[TQSL_CALLSIGN_MAX+1]
Callsign.
Definition tqsllib.h:116
tqsl_cert_req_st::state
char state[TQSL_CRQ_STATE_MAX+1]
State.
Definition tqsllib.h:121
tqsl_cert_req_st::postalCode
char postalCode[TQSL_CRQ_POSTAL_MAX+1]
Postal Code.
Definition tqsllib.h:122
tqsl_cert_req_st::providerUnit
char providerUnit[TQSL_NAME_ELEMENT_MAX+1]
Provider unit.
Definition tqsllib.h:115
tqsl_cert_req_st::qsoNotBefore
tQSL_Date qsoNotBefore
QSOs not before date.
Definition tqsllib.h:126
tqsl_cert_req_st::name
char name[TQSL_CRQ_NAME_MAX+1]
Name.
Definition tqsllib.h:117
tqsl_cert_req_st::address1
char address1[TQSL_CRQ_ADDR_MAX+1]
Address 1.
Definition tqsllib.h:118
tqsl_cert_req_st::dxccEntity
int dxccEntity
DXCC Entity code.
Definition tqsllib.h:125
tqsl_cert_req_st::city
char city[TQSL_CRQ_CITY_MAX+1]
City.
Definition tqsllib.h:120
tqsl_cert_req_st::country
char country[TQSL_CRQ_COUNTRY_MAX+1]
Country.
Definition tqsllib.h:123
tqsl_cert_req_st::emailAddress
char emailAddress[TQSL_CRQ_EMAIL_MAX+1]
e-mail
Definition tqsllib.h:124
tqsl_cert_req_st::providerName
char providerName[TQSL_NAME_ELEMENT_MAX+1]
< Cert request data
Definition tqsllib.h:114
tqsl_provider_st
Definition tqsllib.h:105
tqsl_provider_st::emailAddress
char emailAddress[TQSL_NAME_ELEMENT_MAX+1]
Provider e-mail.
Definition tqsllib.h:108
tqsl_provider_st::url
char url[TQSL_NAME_ELEMENT_MAX+1]
Provider URL.
Definition tqsllib.h:109
tqsl_provider_st::organizationName
char organizationName[TQSL_NAME_ELEMENT_MAX+1]
Provider name.
Definition tqsllib.h:106
tqsl_provider_st::organizationalUnitName
char organizationalUnitName[TQSL_NAME_ELEMENT_MAX+1]
Provider unit.
Definition tqsllib.h:107
CALLCONVENTION
#define CALLCONVENTION
Symbol exports - Windows only.
Definition tqsllib.h:27
tQSL_Location
void * tQSL_Location
Opaque location type.
Definition tqsllib.h:87
TQSL_ZONE_MAX
#define TQSL_ZONE_MAX
Max length of a zone number.
Definition tqsllib.h:65
TQSL_MODE_MAX
#define TQSL_MODE_MAX
Max length of a mode name.
Definition tqsllib.h:57
TQSL_GRID_MAX
#define TQSL_GRID_MAX
Max length of a grid set.
Definition tqsllib.h:62
TQSL_CRQ_POSTAL_MAX
#define TQSL_CRQ_POSTAL_MAX
Max length of request zip.
Definition tqsllib.h:53
tqsl_openDiagFile
DLLEXPORT int CALLCONVENTION tqsl_openDiagFile(const char *file)
TQSL_COUNTRY_MAX
#define TQSL_COUNTRY_MAX
Max length of a country name.
Definition tqsllib.h:64
tqslTrace
DLLEXPORT void CALLCONVENTION tqslTrace(const char *name, const char *format,...)
TQSL_CRQ_STATE_MAX
#define TQSL_CRQ_STATE_MAX
Max length of request state.
Definition tqsllib.h:52
TQSL_CRQ_COUNTRY_MAX
#define TQSL_CRQ_COUNTRY_MAX
Max length of req entity.
Definition tqsllib.h:54
tqsl_closeDiagFile
DLLEXPORT void CALLCONVENTION tqsl_closeDiagFile(void)
tqsl_removeUploadDatabase
DLLEXPORT void CALLCONVENTION tqsl_removeUploadDatabase(void)
TQSL_IOTA_MAX
#define TQSL_IOTA_MAX
Max length of a IOTA identifier.
Definition tqsllib.h:66
TQSL_MAX_PATH_LEN
#define TQSL_MAX_PATH_LEN
Max length of a FS path.
Definition tqsllib.h:45
DLLEXPORTDATA
#define DLLEXPORTDATA
Symbol exports - Windows only.
Definition tqsllib.h:26
TQSL_PASSWORD_MAX
#define TQSL_PASSWORD_MAX
Max password length.
Definition tqsllib.h:46
tQSL_BaseDir
DLLEXPORTDATA const char * tQSL_BaseDir
Base directory for tQSL library working files.
DLLEXPORT
#define DLLEXPORT
Symbol exports - Windows only.
Definition tqsllib.h:25
tqsl_diagFileOpen
DLLEXPORT int CALLCONVENTION tqsl_diagFileOpen(void)
TQSL_PROVIDER
struct tqsl_provider_st TQSL_PROVIDER
TQSL_PROPMODE_MAX
#define TQSL_PROPMODE_MAX
Max length of a prop mode.
Definition tqsllib.h:60
tQSL_StationDataEnc
char * tQSL_StationDataEnc
Opaque station data type.
Definition tqsllib.h:88
TQSL_NAME_ELEMENT_MAX
#define TQSL_NAME_ELEMENT_MAX
Max Org name length.
Definition tqsllib.h:47
tQSL_Cert
void * tQSL_Cert
Opaque certificate type.
Definition tqsllib.h:86
TQSL_STATE_MAX
#define TQSL_STATE_MAX
Max length of a state name.
Definition tqsllib.h:61
TQSL_CALLSIGN_MAX
#define TQSL_CALLSIGN_MAX
Max callsign length.
Definition tqsllib.h:48
TQSL_CNTY_MAX
#define TQSL_CNTY_MAX
Max length of a county name.
Definition tqsllib.h:63
TQSL_CRQ_EMAIL_MAX
#define TQSL_CRQ_EMAIL_MAX
Max length of req email.
Definition tqsllib.h:55
TQSL_SATNAME_MAX
#define TQSL_SATNAME_MAX
Max length of a sat name.
Definition tqsllib.h:59
tQSL_RsrcDir
DLLEXPORTDATA const char * tQSL_RsrcDir
Directory for resources bundled with tqsl executable.
TQSL_CERT_REQ
struct tqsl_cert_req_st TQSL_CERT_REQ
TQSL_BAND_MAX
#define TQSL_BAND_MAX
Max length of a band name.
Definition tqsllib.h:56
TQSL_FREQ_MAX
#define TQSL_FREQ_MAX
Max length of a frequency.
Definition tqsllib.h:58
TQSL_CRQ_NAME_MAX
#define TQSL_CRQ_NAME_MAX
Max length of request name.
Definition tqsllib.h:49
TQSL_CRQ_CITY_MAX
#define TQSL_CRQ_CITY_MAX
Max length of request city.
Definition tqsllib.h:51
TQSL_CRQ_ADDR_MAX
#define TQSL_CRQ_ADDR_MAX
Max length of request addr.
Definition tqsllib.h:50