1 /* 2 * aprsc 3 * 4 * (c) Heikki Hannikainen, OH7LZB <hessu@hes.iki.fi> 5 * 6 * This program is licensed under the BSD license, which can be found 7 * in the file LICENSE. 8 * 9 */ 10 11 #ifndef CLIENT_HEARD_H 12 #define CLIENT_HEARD_H 13 14 #include "worker.h" 15 #include "cellmalloc.h" 16 #include "cJSON.h" 17 18 extern void client_heard_update(struct client_t *c, struct pbuf_t *pb); 19 extern void client_courtesy_update(struct client_t *c, struct pbuf_t *pb); 20 extern int client_heard_check(struct client_t *c, const char *callsign, int call_len, uint32_t hash); 21 extern int client_courtesy_needed(struct client_t *c, struct pbuf_t *pb); 22 23 extern void client_heard_expire(struct client_t *c); 24 extern void client_heard_free(struct client_t *c); 25 extern void client_heard_init(void); 26 27 extern struct cJSON *client_heard_json(struct client_heard_t **list); 28 extern int client_heard_json_load(struct client_t *c, cJSON *dump); 29 30 #ifndef _FOR_VALGRIND_ 31 extern void client_heard_cell_stats(struct cellstatus_t *cellst); 32 #endif 33 34 #endif 35 36