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 --- include/osmocom/bsc/handover.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'include') 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 */ -- cgit v1.2.3