blob: e43ae2e3fbba85b98b090bb10330429787455ba2 [file] [log] [blame]
Jonathan Santos03fd8d02011-05-25 13:54:02 -04001#ifndef OSMO_BSC_RF
2#define OSMO_BSC_RF
3
4#include <osmocore/write_queue.h>
5#include <osmocore/timer.h>
6
7struct gsm_network;
8
9struct 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
28struct osmo_bsc_rf_conn {
29 struct write_queue queue;
30 struct osmo_bsc_rf *rf;
31};
32
33struct osmo_bsc_rf *osmo_bsc_rf_create(const char *path, struct gsm_network *net);
34
35#endif