diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-05-02 20:51:28 +0200 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2013-07-13 09:15:47 +0200 |
commit | c7223231b5398a00496d01609ff92875bf6a7b1b (patch) | |
tree | 1a19f9886ebe55aa13adf47bd77933b0bfca269d /include/osmocom/gsm/gsm_utils.h | |
parent | 2909942a9fe54a8c1f98588dcfece6f4fe35d100 (diff) |
encoding: Provide an overload for the gsm_7bit_encode and a simple test
This is required for encoding the SMS header using the alpha numeric
rules.
Diffstat (limited to 'include/osmocom/gsm/gsm_utils.h')
-rw-r--r-- | include/osmocom/gsm/gsm_utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/gsm/gsm_utils.h b/include/osmocom/gsm/gsm_utils.h index 308803dd..b736de9c 100644 --- a/include/osmocom/gsm/gsm_utils.h +++ b/include/osmocom/gsm/gsm_utils.h @@ -59,6 +59,7 @@ enum gsm_band gsm_band_parse(const char *mhz); int gsm_7bit_decode(char *decoded, const uint8_t *user_data, uint8_t length); int gsm_7bit_decode_hdr(char *decoded, const uint8_t *user_data, uint8_t length, uint8_t ud_hdr_ind); int gsm_7bit_encode(uint8_t *result, const char *data); +int gsm_7bit_encode_oct(uint8_t *result, const char *data, int *octets_written); int gsm_septets2octets(uint8_t *result, const uint8_t *rdata, uint8_t septet_len, uint8_t padding); int gsm_septet_encode(uint8_t *result, const char *data); |