From 03fd8d014f9871896a86534432c8757d65a576fe Mon Sep 17 00:00:00 2001 From: Jonathan Santos Date: Wed, 25 May 2011 13:54:02 -0400 Subject: Import upstream version 0.9.13 --- include/openbsc/osmo_bsc_rf.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 include/openbsc/osmo_bsc_rf.h (limited to 'include/openbsc/osmo_bsc_rf.h') 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 +#include + +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 -- cgit v1.2.3