1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>TrustedQSL Library API: cabrillo.h Source File</title>
<link href="tqsllib.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.4 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="globals.html">File Members</a></div>
<h1>cabrillo.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************************************</span>
00002 <span class="comment"> cabrillo.h - description</span>
00003 <span class="comment"> -------------------</span>
00004 <span class="comment"> begin : Thu Dec 5 2002</span>
00005 <span class="comment"> copyright : (C) 2002 by ARRL</span>
00006 <span class="comment"> author : Jon Bloom</span>
00007 <span class="comment"> email : jbloom@arrl.org</span>
00008 <span class="comment"> revision : $Id: cabrillo_8h-source.html,v 1.6 2005/02/22 13:16:08 ke3z Exp $</span>
00009 <span class="comment"> ***************************************************************************/</span>
00010
00011 <span class="preprocessor">#ifndef __CABRILLO_H</span>
00012 <span class="preprocessor"></span><span class="preprocessor">#define __CABRILLO_H</span>
00013 <span class="preprocessor"></span>
00014 <span class="preprocessor">#undef CLIENT_STATIC</span>
00015 <span class="preprocessor"></span><span class="preprocessor">#ifndef LOTW_SERVER</span>
00016 <span class="preprocessor"></span><span class="preprocessor">#define CLIENT_STATIC static</span>
00017 <span class="preprocessor"></span><span class="preprocessor">#else</span>
00018 <span class="preprocessor"></span><span class="preprocessor">#define CLIENT_STATIC</span>
00019 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00020 <span class="preprocessor"></span>
00031 <span class="preprocessor">#define TQSL_CABRILLO_FIELD_NAME_LENGTH_MAX 64</span>
00032 <span class="preprocessor"></span><span class="preprocessor">#define TQSL_CABRILLO_FIELD_VALUE_LENGTH_MAX 40</span>
00033 <span class="preprocessor"></span>
<a name="l00035"></a><a class="code" href="group__Cabrillo.html#a12">00035</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
00036 TQSL_CABRILLO_NO_ERROR,
00037 TQSL_CABRILLO_EOF,
00038 TQSL_CABRILLO_NO_START_RECORD,
00039 TQSL_CABRILLO_NO_CONTEST_RECORD,
00040 TQSL_CABRILLO_UNKNOWN_CONTEST,
00041 TQSL_CABRILLO_BAD_FIELD_DATA,
00042 TQSL_CABRILLO_EOR,
00043 } <a class="code" href="group__Cabrillo.html#a12">TQSL_CABRILLO_ERROR_TYPE</a>;
00044
00045 <span class="keyword">typedef</span> <span class="keyword">enum</span> {
00046 TQSL_CABRILLO_HF,
00047 TQSL_CABRILLO_VHF,
00048 } TQSL_CABRILLO_FREQ_TYPE;
00049
00050 <span class="preprocessor">#define TQSL_MIN_CABRILLO_MAP_FIELD 5</span>
00051 <span class="preprocessor"></span>
<a name="l00057"></a><a class="code" href="structtqsl__cabrilloField.html">00057</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
00058 <span class="keywordtype">char</span> name[TQSL_CABRILLO_FIELD_NAME_LENGTH_MAX +1];
00059 <span class="keywordtype">char</span> value[TQSL_CABRILLO_FIELD_VALUE_LENGTH_MAX +1];
00060 } <a class="code" href="structtqsl__cabrilloField.html">tqsl_cabrilloField</a>;
00061
00062 <span class="keyword">typedef</span> <span class="keywordtype">void</span> * tQSL_Cabrillo;
00063
00064 <span class="preprocessor">#ifdef __cplusplus</span>
00065 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
00066 <span class="preprocessor">#endif</span>
00067 <span class="preprocessor"></span>
00069 DLLEXPORT <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__Cabrillo.html#a1">tqsl_cabrilloGetError</a>(TQSL_CABRILLO_ERROR_TYPE err);
00070
00072 DLLEXPORT <span class="keywordtype">int</span> <a class="code" href="group__Cabrillo.html#a2">tqsl_beginCabrillo</a>(tQSL_Cabrillo *cabp, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename);
00073
00075 DLLEXPORT <span class="keywordtype">int</span> <a class="code" href="group__Cabrillo.html#a3">tqsl_getCabrilloContest</a>(tQSL_Cabrillo cab, <span class="keywordtype">char</span> *buf, <span class="keywordtype">int</span> bufsiz);
00076
00078 DLLEXPORT <span class="keywordtype">int</span> <a class="code" href="group__Cabrillo.html#a4">tqsl_getCabrilloFreqType</a>(tQSL_Cabrillo cab, TQSL_CABRILLO_FREQ_TYPE *type);
00079
00081 DLLEXPORT <span class="keywordtype">int</span> <a class="code" href="group__Cabrillo.html#a5">tqsl_getCabrilloLine</a>(tQSL_Cabrillo cab, <span class="keywordtype">int</span> *lineno);
00082
00084 DLLEXPORT <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__Cabrillo.html#a6">tqsl_getCabrilloRecordText</a>(tQSL_Cabrillo cab);
00085
00094 DLLEXPORT <span class="keywordtype">int</span> <a class="code" href="group__Cabrillo.html#a7">tqsl_getCabrilloField</a>(tQSL_Cabrillo cab, <a class="code" href="structtqsl__cabrilloField.html">tqsl_cabrilloField</a> *field, TQSL_CABRILLO_ERROR_TYPE *err);
00095
00097 DLLEXPORT <span class="keywordtype">int</span> <a class="code" href="group__Cabrillo.html#a8">tqsl_endCabrillo</a>(tQSL_Cabrillo *cabp);
00098
00099 <span class="preprocessor">#ifdef __cplusplus</span>
00100 <span class="preprocessor"></span>}
00101 <span class="preprocessor">#endif</span>
00102 <span class="preprocessor"></span>
00105 <span class="preprocessor">#endif // __CABRILLO_H</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Feb 22 08:15:36 2005 for TrustedQSL Library API by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
</a>1.3.4 </small></address>
</body>
</html>
|