aboutsummaryrefslogtreecommitdiffstats
path: root/src/gsm_subscriber.c
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2009-04-12 05:37:52 +0000
committerHolger Freyther <zecke@selfish.org>2009-04-12 05:37:52 +0000
commita1f92f0a439525d32dff1db181fbea5b3d86eaae (patch)
tree694046e4c52da47ed335d88b820cae858afe1df7 /src/gsm_subscriber.c
parent4a49e77ff43ae0ec152a351603fbe91ec30efe8c (diff)
[subscriber] Introduce subscr_put_channel
Introduce subscr_put_channel to release a channel and to allow gsm_subscriber.c to hand this channel to any suitable pending requests.
Diffstat (limited to 'src/gsm_subscriber.c')
-rw-r--r--src/gsm_subscriber.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gsm_subscriber.c b/src/gsm_subscriber.c
index e3cd5eb25..0c2dd7c52 100644
--- a/src/gsm_subscriber.c
+++ b/src/gsm_subscriber.c
@@ -122,3 +122,14 @@ struct gsm_subscriber *subscr_put(struct gsm_subscriber *subscr)
subscr_free(subscr);
return NULL;
}
+
+void subscr_put_channel(struct gsm_lchan *lchan)
+{
+ /*
+ * FIXME: Continue with other requests now... by checking
+ * the gsm_subscriber inside the gsm_lchan. Drop the ref count
+ * of the lchan after having asked the next requestee to handle
+ * the channel.
+ */
+ put_lchan(lchan);
+}