aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-11-28 00:29:25 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-11-29 17:37:18 +0000
commita2733ae9dcd4dc5688cce4fb5c48cc3efb800400 (patch)
tree46908a374ee40c73f9f2f60ef7a7efd497fcc2f1
parentf0ea05e52fbf86dda1f647b8f4055a3f4469080b (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
-rw-r--r--include/osmocom/bsc/handover.h11
-rw-r--r--src/libbsc/handover_logic.c2
2 files changed, 5 insertions, 8 deletions
diff --git a/include/osmocom/bsc/handover.h b/include/osmocom/bsc/handover.h
index 3fe71a28b..9e2ba1a59 100644
--- a/include/osmocom/bsc/handover.h
+++ b/include/osmocom/bsc/handover.h
@@ -1,14 +1,9 @@
-#ifndef _HANDOVER_H
-#define _HANDOVER_H
+#pragma once
+struct gsm_lchan;
+struct gsm_bts;
struct gsm_subscriber_connection;
int bsc_handover_start(struct gsm_lchan *old_lchan, struct gsm_bts *bts);
-
-/* clear any operation for this connection */
void bsc_clear_handover(struct gsm_subscriber_connection *conn, int free_lchan);
-
-/* Return the old lchan or NULL. This is meant for audio handling */
struct gsm_lchan *bsc_handover_pending(struct gsm_lchan *new_lchan);
-
-#endif /* _HANDOVER_H */
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;