diff options
author | Harald Welte <laforge@gnumonks.org> | 2008-12-25 23:28:35 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2008-12-25 23:28:35 +0000 |
commit | 8470bf200de094ec362f3f7565ab3ccdf26ee664 (patch) | |
tree | 9a4d95be83b5f727f4ae4e3ab7b2cd4a6be7f72b /include/openbsc/chan_alloc.h | |
parent | de729a139ecdb3b1d88cd5c50738749e8b1c9dcd (diff) |
no reasonable commit message possible. tons of changes of the last 2 days
Diffstat (limited to 'include/openbsc/chan_alloc.h')
-rw-r--r-- | include/openbsc/chan_alloc.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/openbsc/chan_alloc.h b/include/openbsc/chan_alloc.h new file mode 100644 index 000000000..0cbd03e72 --- /dev/null +++ b/include/openbsc/chan_alloc.h @@ -0,0 +1,22 @@ +#ifndef _CHAN_ALLOC_H +#define _CHAN_ALLOC_H + +/* Special allocator for C0 of BTS */ +struct gsm_bts_trx_ts *ts_c0_alloc(struct gsm_bts *bts, + enum gsm_phys_chan_config pchan); + +/* Regular physical channel allocator */ +struct gsm_bts_trx_ts *ts_alloc(struct gsm_bts *bts, + enum gsm_phys_chan_config pchan); + +/* Regular physical channel (TS) */ +void ts_free(struct gsm_bts_trx_ts *ts); + + +/* Allocate a logical channel (SDCCH, TCH, ...) */ +struct gsm_lchan *lchan_alloc(struct gsm_bts *bts, enum gsm_chan_t type); + +/* Free a logical channel (SDCCH, TCH, ...) */ +void lchan_free(struct gsm_lchan *lchan); + +#endif /* _CHAN_ALLOC_H */ |