diff options
Diffstat (limited to 'lib/wsprd/wsprd_utils.h')
| -rw-r--r-- | lib/wsprd/wsprd_utils.h | 10 |
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 |
