mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-13 23:51:49 -05:00
0ca6cbb575
Hashtable entries now include the 4-digit grid obtained from the most recent Fano decode of the callsign. The stored grid is used to validate OSD decodes. OSD decodes of type 1 messages are accepted only if the callsign is present in the hashtable and if the grid matches the grid stored in the hashtable.
30 lines
672 B
C
30 lines
672 B
C
#ifndef WSPRD_UTILS_H
|
|
#define WSPRD_UTILS_H
|
|
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
#include <stdlib.h>
|
|
#include <ctype.h>
|
|
#include <string.h>
|
|
#include <stdint.h>
|
|
#include <time.h>
|
|
#include "nhash.h"
|
|
|
|
void unpack50( signed char *dat, int32_t *n1, int32_t *n2 );
|
|
|
|
int unpackcall( int32_t ncall, char *call );
|
|
|
|
int unpackgrid( int32_t ngrid, char *grid);
|
|
|
|
int unpackpfx( int32_t nprefix, char *call);
|
|
|
|
void deinterleave(unsigned char *sym);
|
|
|
|
// used by qsort
|
|
int doublecomp(const void* elem1, const void* elem2);
|
|
int floatcomp(const void* elem1, const void* elem2);
|
|
|
|
int unpk_( signed char *message, char* hashtab, char* loctab, char *call_loc_pow, char *callsign);
|
|
|
|
#endif
|