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 INCOMING_H
12 #define INCOMING_H
13 
14 #include "worker.h"
15 #include "cellmalloc.h"
16 
17 extern const char *inerr_labels[];
18 
19 extern int check_invalid_src_dst(const char *call, int len);
20 extern int check_call_match(const char **set, const char *call, int len);
21 extern int check_call_glob_match(char **set, const char *call, int len);
22 extern int check_path_calls(const char *via_start, const char *path_end);
23 
24 extern void incoming_flush(struct worker_t *self);
25 extern int incoming_handler(struct worker_t *self, struct client_t *c, int l4proto, char *s, int len);
26 extern int incoming_parse(struct worker_t *self, struct client_t *c, char *s, int len);
27 
28 #ifndef _FOR_VALGRIND_
29 extern void incoming_cell_stats(struct cellstatus_t *cellst_pbuf_small,
30 	struct cellstatus_t *cellst_pbuf_medium,
31 	struct cellstatus_t *cellst_pbuf_large);
32 #endif
33 
34 #endif
35 
36