summaryrefslogtreecommitdiffstats
path: root/src/shared/libosmocore/include/osmocore/gsm0808.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-07-12 09:21:13 +0200
committerHarald Welte <laforge@gnumonks.org>2010-07-12 09:21:13 +0200
commit298b361b133a54f3b7c39d168e5028e69e736113 (patch)
treee09b86a6c6463bc1cbc032afd4bcf2eea02207ab /src/shared/libosmocore/include/osmocore/gsm0808.h
parent231444b548df8aff616f314ebc6135588b0ffec3 (diff)
parented00fe4449ac2309ad80c32f0ba7aa80b2b8895a (diff)
Add 'src/shared/libosmocore/' from commit 'ed00fe4449ac2309ad80c32f0ba7aa80b2b8895a'
git-subtree-dir: src/shared/libosmocore git-subtree-mainline: 231444b548df8aff616f314ebc6135588b0ffec3 git-subtree-split: ed00fe4449ac2309ad80c32f0ba7aa80b2b8895a
Diffstat (limited to 'src/shared/libosmocore/include/osmocore/gsm0808.h')
-rw-r--r--src/shared/libosmocore/include/osmocore/gsm0808.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/shared/libosmocore/include/osmocore/gsm0808.h b/src/shared/libosmocore/include/osmocore/gsm0808.h
new file mode 100644
index 00000000..9166e54f
--- /dev/null
+++ b/src/shared/libosmocore/include/osmocore/gsm0808.h
@@ -0,0 +1,43 @@
+/* (C) 2009,2010 by Holger Hans Peter Freyther <zecke@selfish.org>
+ * (C) 2009,2010 by On-Waves
+ * All Rights Reserved
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+#ifndef OSMOCORE_GSM0808_H
+#define OSMOCORE_GSM0808_H
+
+#include "tlv.h"
+
+struct msgb;
+
+struct msgb *gsm0808_create_layer3(struct msgb *msg, uint16_t netcode, uint16_t countrycode, int lac, int ci);
+struct msgb *gsm0808_create_reset(void);
+struct msgb *gsm0808_create_clear_complete(void);
+struct msgb *gsm0808_create_cipher_complete(struct msgb *layer3, uint8_t alg_id);
+struct msgb *gsm0808_create_cipher_reject(uint8_t cause);
+struct msgb *gsm0808_create_classmark_update(const uint8_t *classmark, uint8_t length);
+struct msgb *gsm0808_create_sapi_reject(uint8_t link_id);
+struct msgb *gsm0808_create_assignment_completed(struct gsm_lchan *lchan, uint8_t rr_cause,
+ uint8_t chosen_channel, uint8_t encr_alg_id,
+ uint8_t speech_mode);
+struct msgb *gsm0808_create_assignment_failure(uint8_t cause, uint8_t *rr_cause);
+
+void gsm0808_prepend_dtap_header(struct msgb *msg, uint8_t link_id);
+
+const struct tlv_definition *gsm0808_att_tlvdef();
+
+#endif