libosmogsm  0.9.6-15.20170220git32ee5af8.fc34
Osmocom GSM library
apn.h
1 #pragma once
2 
3 #include <stdint.h>
4 
5 /* 23.003 Section 9.1.1, excluding any terminating zero byte */
6 #define APN_NI_MAXLEN 63
7 
8 /* 23.003 Section 9.1, excluding any terminating zero byte */
9 #define APN_MAXLEN 100
10 
11 char *osmo_apn_qualify(unsigned int mcc, unsigned int mnc, const char *ni);
12 
13 /* Compose a string of the form '<ni>.mnc001.mcc002.gprs\0', returned in a
14  * static buffer. */
15 char *osmo_apn_qualify_from_imsi(const char *imsi,
16  const char *ni, int have_3dig_mnc);
17 
18 int osmo_apn_from_str(uint8_t *apn_enc, size_t max_apn_enc_len, const char *str);
19 char * osmo_apn_to_str(char *out_str, const uint8_t *apn_enc, size_t apn_enc_len);