From 402006dfdf84c3bf3b22a48ba6ef6922ff6991c7 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Wed, 11 May 2016 14:28:25 +0200 Subject: define mncc_recv_cb_t to avoid code dup Put mncc_recv_cb_t in common_cs.h to avoid header include complications: if placing right above struct gsm_network, one must include gsm_data.h to use mncc_recv_cb_t as function parameter in a header, which will include gsm_data_shared.h, which will include common_cs.h (future knowledge). Since I will need to use mncc_recv_cb_t in common_cs.h, including gsm_data.h from there would introduce an #include loop. Avoid that and define mncc_recv_cb_t in common_cs.h to begin with. Change-Id: I2e64cffa563750ce9f3172ffba6f9cf5b9280e9c --- openbsc/include/openbsc/common_cs.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openbsc/include/openbsc/common_cs.h') diff --git a/openbsc/include/openbsc/common_cs.h b/openbsc/include/openbsc/common_cs.h index 6f70f09be..612d754c9 100644 --- a/openbsc/include/openbsc/common_cs.h +++ b/openbsc/include/openbsc/common_cs.h @@ -1 +1,6 @@ #pragma once + +struct msgb; +struct gsm_network; + +typedef int (*mncc_recv_cb_t)(struct gsm_network *, struct msgb *); -- cgit v1.2.3