summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-22 22:59:39 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-22 22:59:39 +0100
commit2bf19da405fe7a4d5e00cadaa8d1c5c81560f997 (patch)
tree8c36a2645ce7fa013acfa0bdb4fa0d5e0b6d1c57
parentecfd1d97c67308822a25f82c23282d694b2cc6bb (diff)
m2ua: Allow to set a log area for DM2UA.
-rw-r--r--include/m2ua/m2ua_msg.h2
-rw-r--r--src/m2ua_msg.c5
2 files changed, 7 insertions, 0 deletions
diff --git a/include/m2ua/m2ua_msg.h b/include/m2ua/m2ua_msg.h
index 88eb8a1..e251a38 100644
--- a/include/m2ua/m2ua_msg.h
+++ b/include/m2ua/m2ua_msg.h
@@ -53,4 +53,6 @@ struct m2ua_msg_part *m2ua_msg_find_tag(struct m2ua_msg *msg, uint16_t tag);
struct m2ua_msg *m2ua_from_msg(uint16_t len, uint8_t *data);
struct msgb *m2ua_to_msg(struct m2ua_msg *msg);
+void m2ua_set_log_area(int log_area);
+
#endif
diff --git a/src/m2ua_msg.c b/src/m2ua_msg.c
index 693137d..ad28bf2 100644
--- a/src/m2ua_msg.c
+++ b/src/m2ua_msg.c
@@ -177,3 +177,8 @@ struct msgb *m2ua_to_msg(struct m2ua_msg *m2ua)
hdr->msg_length = htonl(msgb_l2len(msg));
return msg;
}
+
+void m2ua_set_log_area(int log_area)
+{
+ DM2UA = log_area;
+}