Commit Graph

64 Commits

Author SHA1 Message Date
Philippe Nunes 0ee9b5af78 call-barring: SS query is made with given cls
The default class is applied in the query form when no class is
specified in the SS code.
2012-09-05 15:03:38 -05:00
Philippe Nunes 2638408135 call-barring: Improve error reporting
Report error based on the error reported by the driver.
2012-08-22 18:17:35 -05:00
Philippe Nunes c935817653 call-barring: Return specific errors for SS 2012-05-30 09:05:39 -05:00
Lucas De Marchi e0d6f9f0ce Do not set signature and reply in GDBus tables
Use GDBUS_* macros, so signature and reply fields are not set in each
method/signal.
2012-05-20 02:47:57 -07:00
Lucas De Marchi b3489f2ee8 Convert GDBus methods to use macro helpers
With these macro helpers we can separate in/out arguments and use their
own vector.
2012-05-20 02:47:57 -07:00
Henrique Dante de Almeida 924ee02ff7 Constify GDBus signal tables
Constify signal tables with the following command:

    find . -name '*.[ch]' -exec \
             sed -i 's/\(GDBusSignalTable .* =\)/const \1/g' {} \;
2012-05-20 02:47:56 -07:00
Henrique Dante de Almeida 63bbdebdf2 Constify GDBus method tables
Constify method tables with the following command:

find . -name '*.[ch]' -exec \
             sed -i 's/\(GDBusMethodTable .* =\)/const \1/g' {} \;
2012-05-20 02:47:56 -07:00
Marcel Holtmann 7e6afe37bf core: Update copyright information 2011-10-10 13:39:42 -07:00
Mika Liljeberg 0eedf42921 core: remove redundant code 2011-03-30 12:33:54 -05:00
Denis Kenzior fb7e6652d2 call-barring: Remove unneeded variable
This was forgotten by the previous patch
2011-02-09 21:03:45 -06:00
Andras Domokos 746ee088f7 call-barring: removed +CSSI type SS notifications 2011-02-09 21:03:45 -06:00
Jussi Kangas a8671fe1f7 sim: Allow usage of SIM codes longer than 8 digits
Some PIN codes (e.g. subsidy locks, etc) can have PIN codes much longer
than the default 8 digits.
2011-02-08 10:19:52 -06:00
Aki Niemi 352795aba6 call-barring: Fix style issue 2011-02-02 11:03:21 +02:00
Lucas De Marchi b210838e87 core: 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 13:27:15 -06:00
Jeevaka Badrappan 2d0cb92155 src: coding style fixes - rule M6 2010-11-22 05:07:52 -06:00
Yang Gu a9aac83e33 ss: Use function to judge if it's busy 2010-09-26 19:50:50 -05:00
Jeevaka Badrappan 4196182770 Fix multi-line comment style issues 2010-09-21 21:16:01 -05:00
Jeevaka Badrappan b0be5779b8 call-barring: Add __ofono_call_barring_is_busy 2010-09-09 10:08:22 -05:00
Yang Gu 8e03a47995 call-barring: Check if ussd is busy 2010-09-09 09:01:28 -05:00
Pekka Pessi 9a398a1087 Fix: Check password length based on its type
The different password types have different length requirements, so
update is_valid_pin to validate according to the password type being
validated (PIN / PUK / NET)
2010-03-19 13:48:04 -05:00
Pekka Pessi 3f6da155bd Fix: Interrogation of barring does not need pin 2010-03-18 11:36:19 -05:00
Pekka Pessi 7b62731ded Fix: Number of barring services is constant 2010-03-18 11:36:09 -05:00
Denis Kenzior d1c85bd14c Style: Remove the now unnecessary braces 2010-03-18 11:27:06 -05:00
Pekka Pessi cf18a9df27 Fix: Return newly-queried barring status
We were returning the contents of the old locks
2010-03-18 11:13:22 -05:00
Pekka Pessi 15a4ecf8a8 Fix: call barring can only be (de)activated 2010-03-18 11:09:36 -05:00
Andrzej Zaborowski 0bac79f1a2 Fix: Use g_dbus_emit_signal in call-barring,meter 2010-02-15 14:57:25 -06:00
Denis Kenzior 87ca1b0c8f Fix: Don't use ofono_debug directly in the core
Use DBG macro which is integrated with the new debug framework.
2010-02-08 11:54:03 -06:00
Marcel Holtmann 144080e749 Update copyright information 2010-01-01 17:00:10 -08:00
Denis Kenzior 955e6a61ee Style: Fix a few more occurences of if/else
See Linux coding style document for details
2009-12-17 21:45:39 -06:00
Denis Kenzior cfcf7e6516 Simplify: Use dbus_message_iter_get_args 2009-09-22 11:24:21 -05:00
Denis Kenzior 422df0edfb change int vendor to unsigned int vendor 2009-09-01 21:39:02 -05:00
Denis Kenzior 15b1a733b0 Introduce vendor parameter to call-barring 2009-09-01 18:14:57 -05:00
Denis Kenzior f59aab7f15 Fix whitespace and style issues 2009-08-19 18:35:06 -05:00
Denis Kenzior 21588cc5f8 Remove the use of driver.h 2009-08-17 17:14:01 -05:00
Denis Kenzior 60988bed9d Remove unused header 2009-08-17 17:12:12 -05:00
Denis Kenzior 255c6ba0d9 Cleanup atom watches properly 2009-08-17 15:14:05 -05:00
Denis Kenzior 65eb5e2089 Refactor call barring to the new USSD API 2009-08-17 15:08:48 -05:00
Denis Kenzior 314c0facc3 Refactor cssn into ofono_ssn
Make this into a fully fledged entity, with a driver instead of the
current kludge.  This means modem drivers can actually choose whether
to instantiate a CSSN atom or not

Move the notification functions from voicecall.c into ssn.c.

Move the cssn.h header into include/ssn.h and refactor

Update call barring to utilize ofono_ssn and use the new atom_watch
functionality to detect when ssn has been added or removed
2009-08-14 18:49:01 -05:00
Denis Kenzior ae4ea4cd5e Move CALL_BARRING_INTERFACE definition to dbus.h 2009-08-14 16:33:48 -05:00
Denis Kenzior 31a940825b Use atom's modem storage in call barring 2009-08-14 16:31:48 -05:00
Denis Kenzior 9ad3ad6664 Update to use the new atom_free API 2009-08-14 16:31:46 -05:00
Denis Kenzior 622221e90f Fix passing in modem where call_barring expected 2009-08-14 15:15:06 -05:00
Denis Kenzior 67e19dc14c Evolve the call-barring driver
- Move call barring related functionality out of driver.h into a
  dedicated file, call-barring.h
- Update to use the new atom framework
- Remove over-reliance on the modem structure, call-barring structure
  should now be used instead whenever possible
2009-08-14 11:19:09 -05:00
Denis Kenzior 6b9d8567b4 No need to use g_timeout_add
Simply calling the function here should be sufficient
2009-08-07 16:33:31 -05:00
Andrzej Zaborowski d36f8d868a Use invalid_args instead of invalid_format 2009-08-05 12:20:28 -05:00
Denis Kenzior 3e6d4237cb Remove all uses of modem.h 2009-07-29 16:53:19 -05:00
Denis Kenzior 19eeb7f1ba Rename modem_add_interface / modem_remove_interface
Move to ofono_modem_add_interface, ofono_modem_remove_interface
and put in ofono/modem.h
2009-07-29 16:44:16 -05:00
Denis Kenzior 54816de04d Get rid of dbus-gsm.h 2009-07-29 12:26:06 -05:00
Denis Kenzior 1d8785f8bd Rename dbus_gsm_pending_reply 2009-07-29 12:26:06 -05:00
Denis Kenzior 6728542a01 Rename dbus_gsm_dict_append 2009-07-29 12:26:05 -05:00