diff options
author | tick <tick@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2007-11-20 06:19:55 +0000 |
---|---|---|
committer | tick <tick@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2007-11-20 06:19:55 +0000 |
commit | 059bd363a8b2b9c228637bcaf22c77d2ea22ad71 (patch) | |
tree | a0485fe78910d673ecef0b8d828b7e1517736f5e | |
parent | 66ce291b391e092b9af9b764ca5465ce448fb6c8 (diff) |
[gsmd] sorry forget to add the new file (Sean Chiang)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3450 99fdad57-331a-0410-800a-d7fa5415bdb3
-rw-r--r-- | src/libgsmd/libgsmd_modem.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/libgsmd/libgsmd_modem.c b/src/libgsmd/libgsmd_modem.c new file mode 100644 index 0000000..e01b350 --- /dev/null +++ b/src/libgsmd/libgsmd_modem.c @@ -0,0 +1,23 @@ +#include <stdlib.h> +#include <unistd.h> +#include <string.h> + +#include <libgsmd/libgsmd.h> +#include <libgsmd/misc.h> + +#include <gsmd/usock.h> +#include <gsmd/event.h> + +#include "lgsm_internals.h" + +int lgsm_modem_power(struct lgsm_handle *lh, int power) +{ + int type; + + if (power) + type = GSMD_MODEM_POWERUP; + else + type = GSMD_MODEM_POWERDOWN; + + return lgsm_send_simple(lh, GSMD_MSG_MODEM, type); +} |