Commit Graph

40 Commits

Author SHA1 Message Date
Jonas Bonn 67701b1c40 drivers: constify vtables
The driver vtables are read-only structures.  This patch declares them as
'const' allowing the compiler to (optionally) put them in the RELRO
section.  RELRO pages may be marked as read-only by the linker after
the relocations have been done ensuring that they aren't inadvertently
or maliciously altered at runtime.
2018-10-17 09:56:27 -05:00
Marcel Holtmann 4e77afffb3 drivers: Update copyright information 2011-10-10 13:39:48 -07:00
Marcel Holtmann d41b584de5 atmodem: Handle SIM busy condition gracefully for phonebooks
Before the phonebook is ready, the SIM card needs certain amount of
time. Something between 20-30 seconds in general. So if the modem
returns an error indicating the SIM is busy, then try again in
regular intervals.
2011-07-29 17:35:44 +02:00
Paavo Leinonen f2d3f232f2 atmodem: fix PB reading when fields are omitted
Fix SIM PB reading when numeric fields have been omitted.
2011-03-11 13:55:17 -06:00
Jeevaka Badrappan 4258fb5915 atmodem: remove NULL check 2011-01-29 18:39:37 +01:00
Jeevaka Badrappan b97676acc3 atmodem: M15 coding style fix 2011-01-12 08:06:58 -08:00
Lucas De Marchi b82a7f8511 drivers: explicitly compare pointers to NULL
This patch was generated by the following semantic patch
(http://coccinelle.lip6.fr/)

// <smpl>
@fix disable is_null,isnt_null1@
expression *E;
@@

- !E
+ E == NULL
// </smpl>
2010-11-29 11:37:09 -06:00
Marcel Holtmann ae6c0edeae atmodem: Add support for IFX specific phonebook ready notification 2010-10-21 20:31:25 +02:00
Denis Kenzior 150edce5c3 phonebook: Trivial style / wording fixes 2010-08-30 17:58:53 -05:00
Thadeu Lima de Souza Cascardo b452c29d42 atmodem/phonebook: parse text as hexstring
Some modems omit the quotes when dumping strings in UCS2. Parsing
them as hexstring already does the hex decoding and accepts missing
quotes.
2010-08-30 17:54:10 -05:00
Marcel Holtmann a8d3e7433a atmodem: Remove useless NULL checks before g_free 2010-08-16 22:02:01 +02:00
Denis Kenzior ac524be99f atmodem: Use g_at_chat_clone 2010-08-12 16:40:40 -05:00
Denis Kenzior c98b951fe6 Refactor: Remove atutil dump_response
No longer needed now that we have nice AT command tracing using
OFONO_AT_DEBUG=1
2010-02-08 12:28:23 -06:00
Denis Kenzior 1721f81fe9 Fix: Use snprintf instead of sprintf in atmodem 2010-02-05 11:59:24 -06:00
Marcel Holtmann 7d7a61f933 Fix some leftover oudated copyrights 2010-01-28 22:10:51 +01:00
Denis Kenzior 6cb038fafb Style: Repeat for drivers 2009-12-17 21:45:40 -06:00
Denis Kenzior 95aafed445 Fix: Set data to NULL in drivers 2009-11-11 15:59:01 -06:00
Denis Kenzior cbb36acee8 Rework DECLARE_FAILURE to be a bit nicer 2009-09-11 12:39:56 -05:00
Denis Kenzior 4c5791a500 Rename at.h to atmodem.h 2009-09-04 20:37:49 -05:00
Denis Kenzior a613105f91 Rename generic_at drivers to atmodem
Be more consistent with directory naming
2009-09-01 22:33:05 -05:00
Denis Kenzior 9caa606bcc Make remove functions not return anything 2009-09-01 22:27:08 -05:00
Denis Kenzior 422df0edfb change int vendor to unsigned int vendor 2009-09-01 21:39:02 -05:00
Denis Kenzior 1fb9ecca46 Add vendor flag capability to phonebook 2009-09-01 18:14:58 -05:00
Denis Kenzior 339ac855c0 Fix unused variable pbd 2009-08-20 15:39:12 -05:00
Denis Kenzior 8c92e3dd18 Remove modem member from cb_data 2009-08-19 18:35:08 -05:00
Denis Kenzior 1c25111c27 Update the at phonebook driver to the new API 2009-08-14 11:19:10 -05:00
Denis Kenzior d812ff8534 Warn when (potentially) invalid input encountered 2009-08-12 19:49:23 -05:00
Denis Kenzior cb75833fc8 Rename ofono_modem_userdata 2009-07-29 16:44:16 -05:00
Denis Kenzior 48d46f1136 Experimental support for modems with no UCS2/UTF8
Some modems, like the G1 do not support UCS2/UTF8.  However, we can
still attempt to export some phonebook entries which are probably
going to be simple Latin1 characters (e.g. 411, etc)
2009-07-29 12:26:03 -05:00
Yang Gu ca403d273e Fix phonebook comment to report CSCS 2009-07-27 17:10:04 -05:00
Yang Gu 57120b7156 Fix phonebook problem when charset is in a list 2009-07-27 17:10:00 -05:00
Denis Kenzior 8d47b8f36d Refactor phonebook code 2009-07-16 17:22:04 -05:00
Denis Kenzior fdab3735db Fix style issue 2009-07-16 17:22:04 -05:00
Yang Gu 1a4e3630da Add character set support in phonebook 2009-07-16 17:22:04 -05:00
Yang Gu 95ec7c126f Merge phonebook entries belong to one person 2009-06-22 13:22:13 -05:00
Denis Kenzior 5fa4cd895c Refactor phonebook code
Use immediate mode reporting, which means that the individual CPBR
lines are reported up to the core immediately.  This has a couple
advantages:
  - We do not need to malloc/free a bunch of single variables
    and copy them over.  Helps performance.
  - The lines are not buffered up and given to the plugin in one
    shot, instead processing is performed piecemeal.  This helps
    with keeping memory consumption down to a minimum
2009-06-16 16:42:02 -05:00
Denis Kenzior fc98cf91a8 Use library functions appropriately
Instead of using custom parsing, use the existing library
functionality in result iter open_list, next_range and close_list
2009-06-16 16:42:00 -05:00
Denis Kenzior 9a2ab0de83 Don't use spaces and use tabs instead 2009-06-16 16:38:32 -05:00
Denis Kenzior be4a4691aa Make const-correct 2009-06-16 16:38:26 -05:00
Yang Gu f00af45270 Export phonebook as vCard 3.0 format 2009-06-16 16:38:17 -05:00