Jonathan Santos | 03fd8d0 | 2011-05-25 13:54:02 -0400 | [diff] [blame^] | 1 | #ifndef OSMO_BSC_RF |
| 2 | #define OSMO_BSC_RF |
| 3 | |
| 4 | #include <osmocore/write_queue.h> |
| 5 | #include <osmocore/timer.h> |
| 6 | |
| 7 | struct gsm_network; |
| 8 | |
| 9 | struct osmo_bsc_rf { |
| 10 | /* the value of signal.h */ |
| 11 | int policy; |
| 12 | struct bsc_fd listen; |
| 13 | struct gsm_network *gsm_network; |
| 14 | |
| 15 | const char *last_state_command; |
| 16 | |
| 17 | /* delay the command */ |
| 18 | char last_request; |
| 19 | struct timer_list delay_cmd; |
| 20 | |
| 21 | /* verify that RF is up as it should be */ |
| 22 | struct timer_list rf_check; |
| 23 | |
| 24 | /* some handling for the automatic grace switch */ |
| 25 | struct timer_list grace_timeout; |
| 26 | }; |
| 27 | |
| 28 | struct osmo_bsc_rf_conn { |
| 29 | struct write_queue queue; |
| 30 | struct osmo_bsc_rf *rf; |
| 31 | }; |
| 32 | |
| 33 | struct osmo_bsc_rf *osmo_bsc_rf_create(const char *path, struct gsm_network *net); |
| 34 | |
| 35 | #endif |