summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-07-10 18:56:44 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-07-14 15:45:04 -0500
commite13b933cbb2bc892d728d08c1b8d172326c145b4 (patch)
tree748f3a11e4bc078b49479c57db34a116f1c21a74
parent1df261cdb9fb77d5abb1a95c02c8d5e874dc62d5 (diff)
downloadofono-e13b933cbb2bc892d728d08c1b8d172326c145b4.tar.bz2
Move enum to simutil.h
-rw-r--r--src/sim.c9
-rw-r--r--src/simutil.h9
2 files changed, 10 insertions, 8 deletions
diff --git a/src/sim.c b/src/sim.c
index eff72d0f..6960eed3 100644
--- a/src/sim.c
+++ b/src/sim.c
@@ -39,6 +39,7 @@
#include "util.h"
#include "smsutil.h"
#include "sim.h"
+#include "simutil.h"
#define SIM_MANAGER_INTERFACE "org.ofono.SimManager"
@@ -254,14 +255,6 @@ static char *network_name_parse(const unsigned char *buffer, int length)
return NULL;
}
-enum sim_fileids {
- SIM_EFMSISDN_FILEID = 0x6f40,
- SIM_EFSPN_FILEID = 0x6f46,
- SIM_EFPNN_FILEID = 0x6fc5,
- SIM_EFOPL_FILEID = 0x6fc6,
- SIM_EFSPDI_FILEID = 0x6fcd,
-};
-
#define SIM_EFSPN_DC_HOME_PLMN_BIT 0x1
#define SIM_EFSPN_DC_ROAMING_SPN_BIT 0x2
diff --git a/src/simutil.h b/src/simutil.h
index ebbf1e5a..b1c75c14 100644
--- a/src/simutil.h
+++ b/src/simutil.h
@@ -18,5 +18,14 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
+
+enum sim_fileid {
+ SIM_EFMSISDN_FILEID = 0x6f40,
+ SIM_EFSPN_FILEID = 0x6f46,
+ SIM_EFPNN_FILEID = 0x6fc5,
+ SIM_EFOPL_FILEID = 0x6fc6,
+ SIM_EFSPDI_FILEID = 0x6fcd,
+};
+
const guint8 *ber_tlv_find_by_tag(const guint8 *pdu, guint8 in_tag,
int in_len, int *out_len);