r2060 - in trunk/src/target/OM-2007/openmoko-libs: . libmokogsmd

mickey at sita.openmoko.org mickey at sita.openmoko.org
Tue May 22 14:03:10 CEST 2007


Author: mickey
Date: 2007-05-22 14:03:10 +0200 (Tue, 22 May 2007)
New Revision: 2060

Modified:
   trunk/src/target/OM-2007/openmoko-libs/ChangeLog
   trunk/src/target/OM-2007/openmoko-libs/libmokogsmd/moko-gsmd-connection.c
Log:
libmokogsmd: actually emit 'requested-pin' signal


Modified: trunk/src/target/OM-2007/openmoko-libs/ChangeLog
===================================================================
--- trunk/src/target/OM-2007/openmoko-libs/ChangeLog	2007-05-22 11:44:00 UTC (rev 2059)
+++ trunk/src/target/OM-2007/openmoko-libs/ChangeLog	2007-05-22 12:03:10 UTC (rev 2060)
@@ -1,3 +1,9 @@
+2007-05-22  Michael Lauer <mickey at openmoko.org>
+
+	* libmokogsmd/moko-gsmd-connection.h: Add prototype for PIN request signal
+	* libmokogsmd/moko-gsmd-connection.c:
+	(_moko_gsmd_connection_eventhandler): Emit PIN request signal
+
 2007-05-22  Thomas Wood  <thomas at openedhand.com>
 
 	* libmokogsmd/moko-gsmd-connection.c:
@@ -112,7 +118,7 @@
 	* libmokoui/moko-stock.h:
 	Add moko-stock for adding OpenMoko stock items
 
-2007-04-27 Dodji Seketeli <dodji at openedhand.org>
+2007-04-27 Dodji Seketeli <dodji at openedhand.com>
 
 	* src/target/OM-2007/openmoko-libs/libmokojournal/src/moko-journal.c:
 	  changed the caller/callee number props into local/distant props.

Modified: trunk/src/target/OM-2007/openmoko-libs/libmokogsmd/moko-gsmd-connection.c
===================================================================
--- trunk/src/target/OM-2007/openmoko-libs/libmokogsmd/moko-gsmd-connection.c	2007-05-22 11:44:00 UTC (rev 2059)
+++ trunk/src/target/OM-2007/openmoko-libs/libmokogsmd/moko-gsmd-connection.c	2007-05-22 12:03:10 UTC (rev 2060)
@@ -276,7 +276,7 @@
         case GSMD_EVT_SIGNAL:
             g_signal_emit( G_OBJECT(self), moko_gsmd_connection_signals[SIGNAL_GSMD_EVT_SIGNAL], 0, aux->u.signal.sigq.rssi ); break;
         case GSMD_EVT_PIN:
-            //moko_gsmd_connection_signals[SIGNAL_GSMD_EVT_PIN]; break;
+            g_signal_emit( G_OBJECT(self), moko_gsmd_connection_signals[SIGNAL_GSMD_EVT_PIN], 0, aux->u.pin.type ); break;
         case GSMD_EVT_OUT_STATUS:
             g_signal_emit( G_OBJECT(self), moko_gsmd_connection_signals[SIGNAL_GSMD_EVT_OUT_STATUS], 0, aux->u.call_status.prog ); break;
         case GSMD_EVT_OUT_COLP:
@@ -360,7 +360,8 @@
 {
     MokoGsmdConnectionPrivate* priv = GSMD_CONNECTION_GET_PRIVATE(self);
     g_return_if_fail( priv->handle );
-    lgsm_phone_power( priv->handle, on ? 1 : 0 );
+    int result = lgsm_phone_power( priv->handle, on ? 1 : 0 );
+    g_debug( "lgsm_phone_power returned %d", result );
 }
 
 void moko_gsmd_connection_voice_accept(MokoGsmdConnection* self)





More information about the commitlog mailing list