aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/osmocom/gprs/gprs_ns.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-06-16 16:40:42 +0800
committerHarald Welte <laforge@gnumonks.org>2012-06-16 16:40:42 +0800
commita6a20b4ff6e2f921b913295556a1cafed4ce71e8 (patch)
tree37ca74ee0d5898791c29f774ee6f285dac5b92ed /openbsc/include/osmocom/gprs/gprs_ns.h
parent8645e101da22d539342d2e356bdab6cbf92ed9ef (diff)
libgb: Use library SS_L_NS instead lf local SS_NS
which removes some further dependencies of libgb to openbsc internal code and data.
Diffstat (limited to 'openbsc/include/osmocom/gprs/gprs_ns.h')
-rw-r--r--openbsc/include/osmocom/gprs/gprs_ns.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/openbsc/include/osmocom/gprs/gprs_ns.h b/openbsc/include/osmocom/gprs/gprs_ns.h
index cfc2e9050..ab4bd4e67 100644
--- a/openbsc/include/osmocom/gprs/gprs_ns.h
+++ b/openbsc/include/osmocom/gprs/gprs_ns.h
@@ -203,7 +203,7 @@ struct gprs_nsvc {
};
/* Create a new NS protocol instance */
-struct gprs_ns_inst *gprs_ns_instantiate(gprs_ns_cb_t *cb);
+struct gprs_ns_inst *gprs_ns_instantiate(gprs_ns_cb_t *cb, void *ctx);
/* Destroy a NS protocol instance */
void gprs_ns_destroy(struct gprs_ns_inst *nsi);
@@ -246,6 +246,18 @@ static inline struct msgb *gprs_ns_msgb_alloc(void)
return msgb_alloc_headroom(NS_ALLOC_SIZE, NS_ALLOC_HEADROOM, "GPRS/NS");
}
+enum signal_ns {
+ S_NS_RESET,
+ S_NS_BLOCK,
+ S_NS_UNBLOCK,
+ S_NS_ALIVE_EXP, /* Tns-alive expired more than N times */
+};
+
+struct ns_signal_data {
+ struct gprs_nsvc *nsvc;
+ uint8_t cause;
+};
+
/*! }@ */
#endif