From 3c4d2776058a440bb8d406cd85783898c14b2403 Mon Sep 17 00:00:00 2001 From: laforge Date: Mon, 23 Oct 2006 21:56:04 +0000 Subject: add two missing files git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@116 99fdad57-331a-0410-800a-d7fa5415bdb3 --- src/libgsmd/libgsmd_network.c | 18 ++++++++++++++++++ src/libgsmd/libgsmd_phone.c | 23 +++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 src/libgsmd/libgsmd_network.c create mode 100644 src/libgsmd/libgsmd_phone.c (limited to 'src') diff --git a/src/libgsmd/libgsmd_network.c b/src/libgsmd/libgsmd_network.c new file mode 100644 index 0000000..ae104b8 --- /dev/null +++ b/src/libgsmd/libgsmd_network.c @@ -0,0 +1,18 @@ +#include +#include +#include + +#include +#include + +#include +#include + +#include "lgsm_internals.h" + +int lgsm_netreg_register(struct lgsm_handle *lh, int oper) +{ + /* FIXME: implement oper selection */ + return lgsm_send_simple(lh, GSMD_MSG_NETWORK, GSMD_NETWORK_REGISTER); +} + diff --git a/src/libgsmd/libgsmd_phone.c b/src/libgsmd/libgsmd_phone.c new file mode 100644 index 0000000..e273ae5 --- /dev/null +++ b/src/libgsmd/libgsmd_phone.c @@ -0,0 +1,23 @@ +#include +#include +#include + +#include +#include + +#include +#include + +#include "lgsm_internals.h" + +int lgsm_phone_power(struct lgsm_handle *lh, int power) +{ + int type; + + if (power) + type = GSMD_PHONE_POWERUP; + else + type = GSMD_PHONE_POWERDOWN; + + return lgsm_send_simple(lh, GSMD_MSG_PHONE, type); +} -- cgit v1.2.3