From a2733ae9dcd4dc5688cce4fb5c48cc3efb800400 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Tue, 28 Nov 2017 00:29:25 +0100 Subject: 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 --- src/libbsc/handover_logic.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libbsc/handover_logic.c') 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; -- cgit v1.2.3