aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-10-23 13:39:48 +0300
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-10-23 15:42:32 +0300
commit778aaedb952739af3c75901d94e735038b9a2fc7 (patch)
tree9da0f6536b6746d9dcbc30cd944ebc23e5a23515 /include
parent991020c049c63768e147d49bd2918c2d2e0f6dcb (diff)
lchan: introduce and use lchan_is_tch() helper
Diffstat (limited to 'include')
-rw-r--r--include/osmo-bts/lchan.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/osmo-bts/lchan.h b/include/osmo-bts/lchan.h
index a7e90043..57999b1b 100644
--- a/include/osmo-bts/lchan.h
+++ b/include/osmo-bts/lchan.h
@@ -365,3 +365,6 @@ static inline bool lchan_is_dcch(const struct gsm_lchan *lchan)
return false;
}
}
+
+#define lchan_is_tch(lchan) \
+ ((lchan)->type == GSM_LCHAN_TCH_F || (lchan)->type == GSM_LCHAN_TCH_H)