Commit Graph

553 Commits

Author SHA1 Message Date
Denis Kenzior 88b327cff5 Cleanup the debug support patch 2009-08-06 16:38:46 -05:00
Andres Salomon d66fd48bf9 gatchat: add debugging infrastructure
This patch adds debugging support to GAtChat (specifically of what's going
across the serial line).  Callbacks can be set via g_at_chat_set_debugging,
and that callback is called after any channel reads or writes.
2009-08-06 16:38:45 -05:00
Denis Kenzior 1418c2aec1 Make overflow code a bit better 2009-08-06 16:38:45 -05:00
Denis Kenzior 9d0b4feafa Fixup atmodem.c for gatchat changes 2009-08-06 16:38:45 -05:00
Denis Kenzior 83820c88b2 Refactor GAtChat to accept user-provided parsers
Intended for really broken modems.  A default 27.007 compliant
parser is provided.
2009-08-06 16:38:39 -05:00
Denis Kenzior 239ab461f7 Fix refcounting in GAtChat 2009-08-06 15:42:23 -05:00
Yang Gu 2321230e69 Enlarge the timeout for phonebook import 2009-08-06 15:42:23 -05:00
Denis Kenzior 89effa1723 Squash warning 2009-08-06 15:42:22 -05:00
Denis Kenzior d6c58caadc Squash warning 2009-08-06 15:42:22 -05:00
Denis Kenzior ee2a88c678 Squash warning 2009-08-06 15:42:22 -05:00
Andrzej Zaborowski d0b91bfbc8 Attempt to update MBDN based on Enhanced VM IEI 2009-08-05 13:33:35 -05:00
Andrzej Zaborowski 9a55de9cd0 Implement committing the EF-MBDN records to SIM 2009-08-05 13:32:49 -05:00
Andrzej Zaborowski e8552dde07 Add utility for building ADN records
Used to populate MSISDN, MBDN, etc records on the SIM
2009-08-05 13:25:31 -05:00
Andrzej Zaborowski ad6b8adebb Expose address encode/decode utilities
These can be used elsewhere, in particular for decoding the
enhanced message waiting notification ieis
2009-08-05 13:19:54 -05:00
Andrzej Zaborowski 4c3ae72b36 Add encode_bcd_number utility function 2009-08-05 13:17:08 -05:00
Denis Kenzior 965fc09e6a Don't emit signals for unexposed properties
Signals shouldn't be emitted, but we should still track the information
so it can be written to the SIM reliably
2009-08-05 12:45:55 -05:00
Andrzej Zaborowski ed56d7c585 Fix record number in at_sim_update_record. 2009-08-05 12:39:09 -05:00
Denis Kenzior 2d12b296e0 Don't hardcode info len to 6 2009-08-05 12:35:08 -05:00
Denis Kenzior fdc129e3e2 Make method async 2009-08-05 12:33:57 -05:00
Denis Kenzior b7c51f9028 Remove unused declaration 2009-08-05 12:33:01 -05:00
Andrzej Zaborowski d36f8d868a Use invalid_args instead of invalid_format 2009-08-05 12:20:28 -05:00
Denis Kenzior e117f3112a Refactor how mwis updates are done 2009-08-04 15:10:50 -05:00
Denis Kenzior c7d29c44a8 Name the callback properly 2009-08-04 15:10:50 -05:00
Denis Kenzior 28817cc671 Don't emit SubscriberNumbers multiple times
We would emit the signal even if the record could not be parsed
2009-08-04 15:10:49 -05:00
Denis Kenzior 36a57c366d Refactor how MBDN set is done 2009-08-04 15:10:49 -05:00
Denis Kenzior 876ef77adb Don't gmalloc something that is max 140 bytes 2009-08-04 15:10:49 -05:00
Denis Kenzior f6628b81b9 Get rid of message-waiting.h 2009-08-04 15:10:49 -05:00
Denis Kenzior c6bef71617 Fix minor style issues 2009-08-04 15:10:49 -05:00
Denis Kenzior 66e5eeeae0 Use invalid_args instead of invalid_format 2009-08-04 15:10:49 -05:00
Andrzej Zaborowski 203ed17cec Add a MessageWaiting interface to track message waiting indications.
The state of the indications is kept in memory and written back to
the SIM after any changes.
2009-08-04 15:08:11 -05:00
Denis Kenzior ba8ef5c3e4 Fix segfault when pnn record doesn't exist 2009-08-04 15:08:08 -05:00
Denis Kenzior 2ce16d2b0c Put defines near the top 2009-08-04 15:08:06 -05:00
Denis Kenzior d145a47108 Port Andrew's TFR patch 2009-08-04 15:01:52 -05:00
Denis Kenzior 090b771762 Make sim_op_info_cb caching a bit more readable 2009-08-04 15:01:49 -05:00
Denis Kenzior 320defb9c6 Make cache a gboolean 2009-08-04 15:01:46 -05:00
Denis Kenzior 6182c92ef7 Make sim_op_retrieve_cb a bit more readable 2009-08-04 15:01:42 -05:00
Andrzej Zaborowski 749a83d033 Check write() return values in sim.c for errors. 2009-08-04 15:01:39 -05:00
Andrzej Zaborowski 3cb6e1c90b Fix invalid queue use in sim_write_cb
Since we pop the queue's head, we can't use sim_op_error
2009-08-04 15:01:36 -05:00
Marcel Holtmann bbc2a56986 Fix over-complicated code flow that results in uninitialized variables 2009-08-03 11:20:46 -07:00
Andrzej Zaborowski fbec2de660 Make sure SIM read callbacks die cleanly. 2009-08-03 12:43:32 -05:00
Denis Kenzior a11bce5467 Make is_read a gboolean 2009-08-03 12:41:44 -05:00
Andrzej Zaborowski 4cdf56cabe Implement ofono_sim_write
Writes use sim->simop_q queue together with reads.
2009-08-03 12:40:39 -05:00
Rémi Denis-Courmont 18b99fa032 Fix configure script on bash 2.0
../configure: line 11885: CFLAGS+= -Werror -Wextra: command not found
../configure: line 11886: CFLAGS+= -Wno-unused-parameter: command not found
../configure: line 11887: CFLAGS+= -Wno-missing-field-initializers: command not found
../configure: line 11888: CFLAGS+= -Wdeclaration-after-statement: command not found
../configure: line 11889: CFLAGS+= -Wmissing-declarations: command not found
../configure: line 11890: CFLAGS+= -Wredundant-decls: command not found
../configure: line 11891: CFLAGS+= -Wcast-align: command not found
2009-08-03 12:32:22 -05:00
Denis Kenzior 5f2c9b13e2 Make distcheck work 2009-07-31 18:32:44 -05:00
Andres Salomon 4d993d518b add manpage for ofonod
I created this manpage for Debian; feel free to use it.  The license
is the same as oFono's.
2009-07-31 18:20:23 -05:00
Andrzej Zaborowski 0809e33659 Fix possible memory leak on SIM reading error.
This would also stall the SIM op queue if there's a read error for a record
other than the first.  The other solution would be "goto next;" (keep
reading further records).
2009-07-31 09:56:44 -05:00
Andrzej Zaborowski cfce4413c6 Don't use g_slist_length to check for empty lists.
A glib Anti-pattern according to http://www.burtonini.com/blog
2009-07-31 09:56:21 -05:00
Andrzej Zaborowski ebf6fca07a Clean up in sim.c.
Remove unused variables and fields.
Move EFadn format parsing to a common function because various files use
this same format.
2009-07-31 09:55:46 -05:00
Andrzej Zaborowski 049e573691 Use STORAGEDIR autoconf voodoo from Bluez. 2009-07-29 17:22:12 -05:00
Denis Kenzior 3e6d4237cb Remove all uses of modem.h 2009-07-29 16:53:19 -05:00