summaryrefslogtreecommitdiff
path: root/cdigipeater.h
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2023-12-17 13:53:36 +0000
committerDave Hibberd <d@vehibberd.com>2023-12-17 13:53:36 +0000
commit54db88482aa35b971b07585510761dbd199fe987 (patch)
tree1b224b09fab839da45251c18128c5d79a63e2829 /cdigipeater.h
parent28348e0eac8c2f853ff8c7d577688d1766ee5bd6 (diff)
parentc264c0c63857e0c36303687d2dfc533500b93cf1 (diff)
Update upstream source from tag 'upstream/0.0.0.71'
Update to upstream version '0.0.0.71' with Debian dir a161df0a9b21e6c26b592a34373aa7d85d976578
Diffstat (limited to 'cdigipeater.h')
-rw-r--r--cdigipeater.h62
1 files changed, 0 insertions, 62 deletions
diff --git a/cdigipeater.h b/cdigipeater.h
deleted file mode 100644
index 69a4b8c..0000000
--- a/cdigipeater.h
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-#ifndef CDIGIPEATER_H
-#define CDIGIPEATER_H 1
-
-#include "regex.h"
-
-#include "direwolf.h" /* for MAX_CHANS */
-#include "ax25_pad.h" /* for packet_t */
-#include "audio.h" /* for radio channel properties */
-
-
-/*
- * Information required for Connected mode digipeating.
- *
- * The configuration file reader fills in this information
- * and it is passed to cdigipeater_init at application start up time.
- */
-
-
-struct cdigi_config_s {
-
-/*
- * Rules for each of the [from_chan][to_chan] combinations.
- */
- int enabled[MAX_CHANS][MAX_CHANS]; // Is it enabled for from/to pair?
-
- int has_alias[MAX_CHANS][MAX_CHANS]; // If there was no alias in the config file,
- // the structure below will not be set up
- // properly and an attempt to use it could
- // result in a crash. (fixed v1.5)
- // Not needed for [APRS] DIGIPEAT because
- // the alias is mandatory there.
- regex_t alias[MAX_CHANS][MAX_CHANS];
-
- char *cfilter_str[MAX_CHANS][MAX_CHANS];
- // NULL or optional Packet Filter strings such as "t/m".
-};
-
-/*
- * Call once at application start up time.
- */
-
-extern void cdigipeater_init (struct audio_s *p_audio_config, struct cdigi_config_s *p_cdigi_config);
-
-/*
- * Call this for each packet received.
- * Suitable packets will be queued for transmission.
- */
-
-extern void cdigipeater (int from_chan, packet_t pp);
-
-
-/* Make statistics available. */
-
-int cdigipeater_get_count (int from_chan, int to_chan);
-
-
-#endif
-
-/* end cdigipeater.h */
-