Changeset 2001
- Timestamp:
- 05/17/07 20:46:37 (6 years ago)
- Location:
- trunk/src/target/OM-2007/openmoko-libs/libmokogsmd
- Files:
-
- 2 edited
-
moko-gsmd-connection.c (modified) (5 diffs)
-
moko-gsmd-connection.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/OM-2007/openmoko-libs/libmokogsmd/moko-gsmd-connection.c
r1965 r2001 26 26 #include <errno.h> 27 27 28 #define DEBUG_THIS_FILE 28 29 #undef DEBUG_THIS_FILE 29 #define DEBUG_THIS_FILE30 30 31 31 #ifdef DEBUG_THIS_FILE … … 178 178 NULL); 179 179 180 //TODO add SIGNAL_GSMD_EVT_PIN 180 moko_gsmd_connection_signals[SIGNAL_GSMD_EVT_PIN] = g_signal_new 181 ("pin-requested", 182 G_TYPE_FROM_CLASS (klass), 183 G_SIGNAL_RUN_LAST | G_SIGNAL_NO_RECURSE | G_SIGNAL_NO_HOOKS, 184 NULL, 185 NULL, 186 NULL, 187 g_cclosure_marshal_VOID__INT, 188 G_TYPE_NONE, 189 1, 190 G_TYPE_INT, 191 NULL); 181 192 182 193 moko_gsmd_connection_signals[SIGNAL_GSMD_EVT_OUT_STATUS] = g_signal_new … … 280 291 } 281 292 293 /* this is the handler for receiving passthrough responses */ 294 static int 295 pt_msghandler(struct lgsm_handle *lh, struct gsmd_msg_hdr *gmh) 296 { 297 char *payload = (char *)gmh + sizeof(*gmh); 298 g_debug("PASSTHROUGH RESPONSE = '%s'", payload); 299 } 300 282 301 static void 283 302 moko_gsmd_connection_init(MokoGsmdConnection* self) … … 322 341 } 323 342 343 lgsm_register_handler( priv->handle, GSMD_MSG_PASSTHROUGH, &pt_msghandler); 324 344 } 325 345 … … 371 391 lgsm_voice_dtmf( priv->handle, number ); 372 392 } 393 394 void moko_gsmd_connection_trigger_signal_strength_event(MokoGsmdConnection* self) 395 { 396 MokoGsmdConnectionPrivate* priv = GSMD_CONNECTION_GET_PRIVATE(self); 397 g_return_if_fail( priv->handle ); 398 lgsm_signal_quality( priv->handle ); 399 } -
trunk/src/target/OM-2007/openmoko-libs/libmokogsmd/moko-gsmd-connection.h
r1999 r2001 73 73 void moko_gsmd_connection_incoming_clip(MokoGsmdConnection* self, const char* number); 74 74 void moko_gsmd_connection_network_registration(MokoGsmdConnection* self, int type, int lac, int cell); 75 void moko_gsmd_connection_trigger_signal_strength_event(MokoGsmdConnection* self); 75 76 void moko_gsmd_connection_signal_strength_changed(MokoGsmdConnection* self, int strength); 76 77 //voice
Note: See TracChangeset
for help on using the changeset viewer.
