diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2017-11-28 00:29:25 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-11-29 17:37:18 +0000 |
commit | a2733ae9dcd4dc5688cce4fb5c48cc3efb800400 (patch) | |
tree | 46908a374ee40c73f9f2f60ef7a7efd497fcc2f1 /src/libbsc/handover_logic.c | |
parent | f0ea05e52fbf86dda1f647b8f4055a3f4469080b (diff) |
cosmetic: handover.h: use "#pragma once", declare structs, comments
Use new #pragma style instead of #ifndef dance.
Forward-declare all structs we're using pointers of.
Move function comments to their definitions in the .c file.
Change-Id: I3d43ec01897c0ef9eaf506e68d5a1ec1977f70ea
Diffstat (limited to 'src/libbsc/handover_logic.c')
-rw-r--r-- | src/libbsc/handover_logic.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libbsc/handover_logic.c b/src/libbsc/handover_logic.c index ace8ac35b..7b9dece9d 100644 --- a/src/libbsc/handover_logic.c +++ b/src/libbsc/handover_logic.c @@ -159,6 +159,7 @@ int bsc_handover_start(struct gsm_lchan *old_lchan, struct gsm_bts *bts) return 0; } +/* clear any operation for this connection */ void bsc_clear_handover(struct gsm_subscriber_connection *conn, int free_lchan) { struct bsc_handover *ho; @@ -366,6 +367,7 @@ static int ho_logic_sig_cb(unsigned int subsys, unsigned int signal, return 0; } +/* Return the old lchan or NULL. This is meant for audio handling */ struct gsm_lchan *bsc_handover_pending(struct gsm_lchan *new_lchan) { struct bsc_handover *ho; |