aboutsummaryrefslogtreecommitdiffstats
path: root/include/openbsc/osmo_bsc_rf.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/openbsc/osmo_bsc_rf.h')
-rw-r--r--include/openbsc/osmo_bsc_rf.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/include/openbsc/osmo_bsc_rf.h b/include/openbsc/osmo_bsc_rf.h
new file mode 100644
index 000000000..e43ae2e3f
--- /dev/null
+++ b/include/openbsc/osmo_bsc_rf.h
@@ -0,0 +1,35 @@
+#ifndef OSMO_BSC_RF
+#define OSMO_BSC_RF
+
+#include <osmocore/write_queue.h>
+#include <osmocore/timer.h>
+
+struct gsm_network;
+
+struct osmo_bsc_rf {
+ /* the value of signal.h */
+ int policy;
+ struct bsc_fd listen;
+ struct gsm_network *gsm_network;
+
+ const char *last_state_command;
+
+ /* delay the command */
+ char last_request;
+ struct timer_list delay_cmd;
+
+ /* verify that RF is up as it should be */
+ struct timer_list rf_check;
+
+ /* some handling for the automatic grace switch */
+ struct timer_list grace_timeout;
+};
+
+struct osmo_bsc_rf_conn {
+ struct write_queue queue;
+ struct osmo_bsc_rf *rf;
+};
+
+struct osmo_bsc_rf *osmo_bsc_rf_create(const char *path, struct gsm_network *net);
+
+#endif