aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/gsm_data_shared.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-06-09 21:48:49 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-08-22 18:21:33 +0200
commit06c9da6c22f674c86e16e1c4dde9932a49b8cbea (patch)
tree933ac21823ea2bd9f785c9364354a248f0e4dbb6 /openbsc/include/openbsc/gsm_data_shared.h
parent8697e43bb2b9d6f217090ca93057d9d4ab6942a9 (diff)
misc: Move the bsc_parse_reg to libcommom and name it gsm_parse_reg
Move the regexp parsing code from the NAT to libcommon as it will be used by the NAT and BSC code. This also adds the #include <regex.h> include to gsm_data. This header should be split up.
Diffstat (limited to 'openbsc/include/openbsc/gsm_data_shared.h')
-rw-r--r--openbsc/include/openbsc/gsm_data_shared.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gsm_data_shared.h b/openbsc/include/openbsc/gsm_data_shared.h
index 1dec0e4a4..a639a1cc5 100644
--- a/openbsc/include/openbsc/gsm_data_shared.h
+++ b/openbsc/include/openbsc/gsm_data_shared.h
@@ -1,6 +1,7 @@
#ifndef _GSM_DATA_SHAREDH
#define _GSM_DATA_SHAREDH
+#include <regex.h>
#include <stdbool.h>
#include <stdint.h>
@@ -588,4 +589,12 @@ void gsm_bts_mo_reset(struct gsm_bts *bts);
uint8_t gsm_ts2chan_nr(const struct gsm_bts_trx_ts *ts, uint8_t lchan_nr);
uint8_t gsm_lchan2chan_nr(const struct gsm_lchan *lchan);
+/*
+ * help with parsing regexps
+ */
+int gsm_parse_reg(void *ctx, regex_t *reg, char **str,
+ int argc, const char **argv) __attribute__ ((warn_unused_result));
+
+
+
#endif