summaryrefslogtreecommitdiff
path: root/lib/wsprd/wsprd_utils.h
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-09-26 23:24:28 +0200
committerChristoph Berg <myon@debian.org>2026-09-26 23:24:28 +0200
commit69344560ea394c06ca94acac46a2e4c3e8b7b229 (patch)
treeebc98370a697a9bbd6b973a14fa5113c475c6db7 /lib/wsprd/wsprd_utils.h
parent3e9d10a67671d0bd5c7b8c3ca8088f1818322eff (diff)
parent059831534c7e884f0a607ed86b582fd00d821731 (diff)
Update upstream source from tag 'upstream/3.2.0_rc1+dfsg'
Update to upstream version '3.2.0~rc1+dfsg' with Debian dir dbff457fd2c3616d5c77b863c7bfb2186ed86047
Diffstat (limited to 'lib/wsprd/wsprd_utils.h')
-rw-r--r--lib/wsprd/wsprd_utils.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/wsprd/wsprd_utils.h b/lib/wsprd/wsprd_utils.h
index db6ba946..62c653e8 100644
--- a/lib/wsprd/wsprd_utils.h
+++ b/lib/wsprd/wsprd_utils.h
@@ -10,6 +10,14 @@
#include <time.h>
#include "nhash.h"
+enum {
+ WSPRD_CALLSIGN_SIZE = 13,
+ WSPRD_GRID4_SIZE = 5,
+ WSPRD_GRID6_SIZE = 7,
+ WSPRD_MESSAGE_SIZE = 23,
+ WSPRD_HASH_COUNT = 32768
+};
+
void unpack50( signed char *dat, int32_t *n1, int32_t *n2 );
int unpackcall( int32_t ncall, char *call );
@@ -26,4 +34,6 @@ int floatcomp(const void* elem1, const void* elem2);
int unpk_( signed char *message, char* hashtab, char* loctab, char *call_loc_pow, char *callsign);
+int wsprd_load_hash_line(char const *line, char *hashtab, char *loctab);
+
#endif