diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-08-09 18:52:33 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-08-09 18:52:33 +0200 |
commit | 1a6f79818e867e2d9ab684c6352142cb036c6889 (patch) | |
tree | 2a03c898bb2a690ed259655258cfcbcd24909dfe /openbsc/include/openbsc/chan_alloc.h | |
parent | f9daefd65be32a43b1bcd1e270922153172147a9 (diff) |
move search for existing lchan for subscriber to new function
There's now a new function called 'lchan_for_subscr()' which can be
used to determine if there is any existing lchan for this subscriber.
Diffstat (limited to 'openbsc/include/openbsc/chan_alloc.h')
-rw-r--r-- | openbsc/include/openbsc/chan_alloc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/chan_alloc.h b/openbsc/include/openbsc/chan_alloc.h index d6d367c84..38855d1ee 100644 --- a/openbsc/include/openbsc/chan_alloc.h +++ b/openbsc/include/openbsc/chan_alloc.h @@ -37,6 +37,9 @@ void ts_free(struct gsm_bts_trx_ts *ts); /* Find an allocated channel */ struct gsm_lchan *lchan_find(struct gsm_bts *bts, struct gsm_subscriber *subscr); +/* Find an allocated channel for a specified subscriber */ +struct gsm_lchan *lchan_for_subscr(struct gsm_subscriber *subscr); + /* Allocate a logical channel (SDCCH, TCH, ...) */ struct gsm_lchan *lchan_alloc(struct gsm_bts *bts, enum gsm_chan_t type); |