From ed45d021e84b497e75ff4342ad369c615cc174a3 Mon Sep 17 00:00:00 2001 From: tick Date: Tue, 27 Nov 2007 08:24:57 +0000 Subject: gsmd: Refactorying get_imsi from PHONEBOOK to PHONE (tick) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3519 99fdad57-331a-0410-800a-d7fa5415bdb3 --- src/libgsmd/libgsmd_phone.c | 6 ++++++ src/libgsmd/libgsmd_phonebook.c | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/libgsmd') diff --git a/src/libgsmd/libgsmd_phone.c b/src/libgsmd/libgsmd_phone.c index 07d1d13..83e31e8 100644 --- a/src/libgsmd/libgsmd_phone.c +++ b/src/libgsmd/libgsmd_phone.c @@ -44,3 +44,9 @@ int lgsm_phone_power(struct lgsm_handle *lh, int power) return lgsm_send_simple(lh, GSMD_MSG_PHONE, type); } + +int lgsm_get_imsi(struct lgsm_handle *lh) +{ + return lgsm_send_simple(lh, GSMD_MSG_PHONE, GSMD_PHONE_GET_IMSI); +} + diff --git a/src/libgsmd/libgsmd_phonebook.c b/src/libgsmd/libgsmd_phonebook.c index 4091077..f139c2a 100644 --- a/src/libgsmd/libgsmd_phonebook.c +++ b/src/libgsmd/libgsmd_phonebook.c @@ -246,8 +246,4 @@ int lgsm_pb_retrieve_find(struct lgsm_handle *lh, int num) return 0; } -int lgsm_get_imsi(struct lgsm_handle *lh) -{ - return lgsm_send_simple(lh, GSMD_MSG_PHONEBOOK, GSMD_PHONEBOOK_GET_IMSI); -} -- cgit v1.2.3