Commit Graph

386 Commits

Author SHA1 Message Date
Denis Kenzior 00c49a5ad7 include: Declare typedef as a function pointer 2011-05-24 13:20:18 -05:00
Guillaume Zajac e997dd43eb private-network: add header into include and Makefile.am 2011-05-24 12:10:22 -05:00
Frédéric Danis f9814a9731 include: Add callsetup, call and callheld
as indicators for HFP emulator
2011-04-11 10:28:12 -05:00
Jeevaka Badrappan a3dcd49711 include: Add ofono_voicecall_en_list_notify api 2011-04-07 22:18:05 -05:00
Jeevaka Badrappan c7c45cf4ef include: add ofono_modem_get_emergency_mode api 2011-04-04 23:36:49 -05:00
Denis Kenzior 38aee50ece include: Remove unused typedef 2011-03-29 22:01:43 -05:00
Jarko Poutiainen 71c0cffd1d include: add gnss.h file 2011-03-28 18:06:58 -05:00
Jarko Poutiainen 73d1eadd69 dbus: add gnss interface definition 2011-03-28 18:06:57 -05:00
Lucas De Marchi d67c73d492 history: add cancelled status
Based on patch from Yang Gu <gyagp0@gmail.com>
2011-03-18 18:31:14 -05:00
Christian Lam 3931640491 cdma-connman: add CDMA Connection Manager support 2011-03-17 13:45:29 -05:00
Christian Lam 411d3dec37 dbus: add CDMA Connection Manager interface 2011-03-17 13:07:41 -05:00
Denis Kenzior 247df07644 include: Add support for IPv6 context settings 2011-03-15 17:11:58 -05:00
Denis Kenzior 9a4122f74b include: Add support for dual stack contexts 2011-03-15 17:11:58 -05:00
Andras Domokos 2d0db9d817 voicecall: add SSN function declarations 2011-03-11 13:11:44 -06:00
Andras Domokos 4a36b93d6a ssn: remove SSN atom completely 2011-03-11 13:08:51 -06:00
Rafael Ignacio Zurita 709775987e location-reporting: add public header 2011-02-23 17:18:03 -06:00
Frédéric Danis f3496af019 emulator: add indicator support API 2011-02-23 09:58:40 -06:00
Frédéric Danis b5969360d7 emulator: add HFP emulator type 2011-02-16 00:23:44 -06:00
Denis Kenzior 2394a87cc4 emulator: Add additional APIs 2011-02-16 00:23:44 -06:00
Denis Kenzior 1ded74f2df emulator: Add basic API for emulator 2011-02-15 15:47:32 -06:00
Denis Kenzior 6352e799ef emulator: Add basic emulator API 2011-02-10 00:34:47 -06:00
Jukka Saunamaki ef37b3fe42 gprs-provision: add SPN to provisioning API header 2011-02-08 21:27:41 -06:00
Denis Kenzior 00a3a6d7ac sim: Add API for watching files changed via stk 2011-02-07 11:28:30 -06:00
Andrzej Zaborowski 0ecc99973a sim: ofono_sim_context api header changes
This patch introduces sim FS contexts which are used to queue file
read and write operations.  When a context is freed all pending
operations in that context are cancelled preventing callbacks from
being called causing segfaults.
2011-02-03 13:13:33 -06:00
Jeevaka Badrappan 99f8e93ba8 include: fix comment on dst value 2011-02-02 10:43:37 -06:00
Lucas De Marchi 7ff5365583 include: define initializer for ofono_call
Some fields in struct ofono_call such as cnap_validity and clip_validity
are not correctly initialized as 0 since this means they are present. If
driver does not implement the necessary handlers, it might send to core
an ofono_call signalling that cnap and clip are available when they are
actually not.
2011-02-01 18:30:44 +01:00
Jeevaka Badrappan 12c3cf6969 voicecall: remove ofono_cug_option 2011-01-26 16:38:15 -06:00
Denis Kenzior 712d978021 include: Refactor gprs-provision API 2011-01-26 14:55:58 -06:00
Jukka Saunamaki d5a30edf0c gprs-provision: add driver API header 2011-01-26 14:55:58 -06:00
Lucas De Marchi dd96534a81 include: don't use c++ keyword in public header 2011-01-26 18:23:13 +01:00
Rafael Ignacio Zurita 78c1e96bf9 types: extend OFONO_MAX_PHONE_NUMBER_LENGTH 2011-01-25 14:12:24 -06:00
Marcel Holtmann 28bbed0bbd dbus: Add global definition of supplementary services interface 2011-01-23 10:15:27 +01:00
Andrzej Zaborowski 719f3c1821 include: Add SIM authentication atom's
Structures and function declarations for the SIM authentication
atom as proposed by Pekka Pessi, with just one method at the
moment.
2011-01-20 11:16:06 -06:00
Jukka Saunamaki a182554f0a sim: getters for mcc and mnc definition 2011-01-20 11:03:52 -06:00
Aki Niemi 48a9877585 api: Remove deregister from modem driver API 2011-01-20 09:55:30 -06:00
Rémi Denis-Courmont 184c1594c8 gprs: Declaration for packet switched bearer notifications 2011-01-20 12:08:38 +01:00
Lucas De Marchi a80db77572 include: add method for querying cdip support 2011-01-18 16:09:27 -06:00
Lucas De Marchi a3438e0c6d include: add cdip field in ofono_call 2011-01-18 16:09:27 -06:00
Pekka Pessi a0e3d9ffc3 include: Clarify hold_all_active semantics 2011-01-14 09:48:56 -06:00
Jeevaka Badrappan 58574e61bc include: remove unused mpty from ofono_call 2011-01-13 12:31:56 -06:00
Rafael Ignacio Zurita 5eda7e96b1 gps: define new dbus interface 2011-01-13 11:08:05 -06:00
Jeevaka Badrappan c91af2de83 include: M15 coding style fix 2011-01-12 08:06:58 -08:00
Lucas De Marchi 2ae5b82ad9 include: add method to query pin Retries 2011-01-10 15:38:48 -06:00
Lei Yu 9aa82f5bb1 cdma-sms: Add CDMA SMS Support 2011-01-05 10:36:48 -06:00
Lei Yu f0a6067327 dbus: Add CDMA SMS Interface 2011-01-04 13:48:22 -06:00
Denis Kenzior 327f452fdf cdma-voicecall: Minor style fixes 2010-12-22 18:57:24 -06:00
Dara Spieker-Doyle 817fe42457 cdma-voicecall: Add CDMA MO Call Support 2010-12-22 18:53:26 -06:00
Dara Spieker-Doyle f108eb79c3 types: Add CDMA Phone Number 2010-12-20 14:47:23 -06:00
Dara Spieker-Doyle 4163dad639 dbus: Add CDMA Voicecall Interface 2010-12-20 14:44:00 -06:00
Gustavo F. Padovan 31716688a0 include: add cnap_query callback 2010-12-16 18:40:18 -06:00
Gustavo F. Padovan a793c18c29 include: add CNAP types to ofono_call structure 2010-12-16 18:40:17 -06:00
Denis Kenzior 8207432648 include: Minor style fixes 2010-12-08 11:26:58 -06:00
Lucas De Marchi 1dcd57136e radio-settings: add frequency band selection methods 2010-12-08 11:08:56 -06:00
Gustavo F. Padovan ab53869a8a modem: add ofono_modem_reset() to modem.h 2010-12-07 12:16:20 -06:00
Denis Kenzior cf9e07ef32 radio-settings: Update API to use ofono_bool_t 2010-11-29 07:52:35 -06:00
Lucas De Marchi 3f49dd1390 ctm: add public header 2010-11-26 13:08:45 -06:00
Lucas De Marchi 2cc4ce9a11 text-telephony: define new dbus interface 2010-11-24 08:58:42 -06:00
Mika Liljeberg a4983d99eb radio settings: add FastDormancy property 2010-10-27 22:26:15 -05:00
Denis Kenzior bbe6eb6d4e gprs-context: Replace TYPE_INVALID with TYPE_ANY 2010-10-27 12:39:46 -05:00
Denis Kenzior 51aecde6cc stk: Remove ofono_stk_terminal_response_sent_notify
Not needed for now.  We can always put this back in later if need be.
2010-10-27 12:10:17 -05:00
Pekka Pessi de96428ca2 gprs-context: add IMS connection type 2010-10-27 16:57:57 +02:00
Marcel Holtmann b3d18d5115 gprs: Add support for setting GPRS context type 2010-10-27 11:34:54 +02:00
Marcel Holtmann 6cb86931e3 gprs: Make GPRS context type a public enum 2010-10-27 11:28:52 +02:00
Denis Kenzior cfa956596c modem: Add ofono_modem_is_registered 2010-10-25 16:32:49 -05:00
Denis Kenzior ba71706b07 voicecall: Document driver methods 2010-10-20 12:50:51 -05:00
Petteri Tikander d34ddeccaf sim: add new parameter to file-info utility 2010-10-15 02:15:21 -05:00
Andrzej Zaborowski 404e0838da API for STK driver to signal executed commands
Some modems are able to handle some proactive commands in their
firmware or otherwise, if the command doesn't require input from user.
Nevertheles ofono may need to update internal state or notify the user
where necessary.  With this api the driver can notify core that a
command is being executed in the modem or that a command is finished
executing and the TERMINAL RESPONSE has been sent to SIM.  It would
also be possible for a driver to handle a command.
2010-10-14 04:17:02 -05:00
Marcel Holtmann 242639737a audio: Add helper to get modem information from audio settings 2010-10-01 07:28:39 +02:00
Marcel Holtmann 2b3840e95c audio: Add support for notifying about audio mode 2010-10-01 07:22:45 +02:00
Marcel Holtmann 3fd4af4fc2 audio: Update audio settings API for active notification 2010-10-01 07:14:59 +02:00
Marcel Holtmann 760e1e4c04 core: Add support for audio settings interface 2010-09-29 23:57:39 +09:00
Denis Kenzior eb5a7329da dbus: Add org.ofono.Message interface 2010-09-21 21:15:07 -05:00
Denis Kenzior 04634af6fe common: Implement ofono_uuid_to_str 2010-09-21 08:44:48 -05:00
Denis Kenzior dbd7639d25 history: Update to the new SHA1 based sms id API 2010-09-21 08:44:48 -05:00
Denis Kenzior 5a336a1cfb include: Introduce ofono_uuid 2010-09-21 08:44:47 -05:00
Pekka Pessi 4b8f2b037c ussd.h: +CUSD is documented in 27.007 section 7.15 2010-09-16 13:45:53 -05:00
Jeevaka Badrappan eb425a281f ussd: Driver API changes
To support 8bit and UCS2 formatted USSDs as well as Send USSD Proactive
Command.
2010-09-14 17:01:49 -05:00
Mika Liljeberg 1e139eb1ce gprs: add Suspended property 2010-09-10 10:51:53 -05:00
Denis Kenzior 5754eaf7e9 sim: Break out sim file reading into simfs 2010-09-09 08:50:28 -05:00
Kristen Carlson Accardi 95d957b62e sim: read EFiidf
EFiidf can be larger than 256 bytes, so allow callers to read
portions of the EFiidf from a specified offset.  Cache EFiidf
files as blocks of 256 bytes so that it's not necessary to
read the entire (potentially large) file.
2010-09-09 08:45:32 -05:00
Denis Kenzior 4292b2dbed sim: Turn around the order of arguments
The void *user argument was first.  It should be last instead to be
consistent with the other watch functions.
2010-08-30 14:29:34 -05:00
Denis Kenzior b73ebe3c83 gprs: Update GPRS related DBus interface names 2010-08-19 14:20:05 -05:00
Denis Kenzior 7e0f28c7b1 sms: Update SmsManager to MessageManager 2010-08-19 14:20:05 -05:00
Denis Kenzior ad8607994f modem: Be consistent when naming callback typedefs 2010-08-12 15:46:46 -05:00
Sjur Brændeland 9a24ece0fb voicecall: Add support for function hangup_all
This patch fixes problem for modems that cannot terminate
DIALING/ALERTING calls with CHUP=1X. The main change is that
voicecall driver's hangup function is split into the functions
hangup_all and hangup_active.

Changes:
- In cases where hangup previously was used, hangup_all is used
  if implemented otherwise hangup_active is used.
- Call in state DIALING/ALERTING is released with hangup_active if
  implemented.
- manager_hangup_all will simply call hangup_all if implemented.
- manager_hangup_all will release calls in state
  ALERTING/DIALING/INCOMING using hangup_active otherwise
  release_specific.
2010-08-12 11:32:12 -05:00
Sjur Brændeland dde0a4ccb5 voicecall: Rename hangup to hangup_active 2010-08-12 11:32:12 -05:00
Denis Kenzior 0c0f362ec3 include: Update to proper API naming
Should match what is in the documentation
2010-07-30 17:19:56 -05:00
Denis Kenzior b3237600c4 gprs: Update gprs context struct with IPv6 support 2010-07-19 13:49:35 -05:00
Andrzej Zaborowski 23c5f28569 Add Dbus interface names for STK. 2010-07-08 14:27:33 -05:00
Andrzej Zaborowski 30e16fb5ca Add OFONO_ERROR_TYPE_SIM for negative SIM statuses
Expected value of the .error field is status word 1 and status word 2
in bits 8:15 and 0:7 of the field.
2010-07-08 14:27:33 -05:00
Andrzej Zaborowski cbdb7278ac stk: Utilities for proactive command/envelope handling. 2010-07-08 14:27:33 -05:00
Denis Kenzior 11cc3ee922 sms: Add driver API for SMS bearer settings 2010-06-25 14:25:46 -05:00
Pasi Miettinen dee07e4ad7 history: API change for status report notify 2010-06-21 10:52:32 -05:00
Marcel Holtmann 236f3acc0f Add support for Features property on modem interface 2010-06-09 20:46:10 -07:00
Marcel Holtmann 9a72d2566d Move data connection manager interface constants into common include 2010-06-09 20:38:50 -07:00
Marcel Holtmann aa99c4c0dd Rename CbsManger into CellBroadcast
Other D-Bus interfaces use clear descriptions like SupplementaryServices
or NetworkRegistration. So use CellBroadcast for cell broadcast support.
2010-06-09 20:07:11 -07:00
Denis Kenzior 19c10877a5 include: More style issues 2010-06-07 12:57:50 -05:00
Pekka Pessi 8001338da7 Use ofono_bool_t instead of bool in modem API. 2010-05-27 13:01:06 -05:00
Denis Kenzior e7529bfa70 Fix: minor style issues 2010-05-26 21:03:12 -05:00
Pekka Pessi 4f1506ba25 Add: Online property to modem
The online/offline state is changed with the new set_online() modem driver
method.

In order to track atoms, there are modem states as follows:
- OFONO_MODEM_STATE_POWER_OFF
- OFONO_MODEM_STATE_PRE_SIM
- OFONO_MODEM_STATE_OFFLINE
- OFONO_MODEM_STATE_ONLINE

Atoms are added with driver methods pre_sim(), post_sim() and post_online().
Atoms are removed by modem core when the state changes.
2010-05-26 14:24:11 -05:00
Denis Kenzior bbd6a1d48a sim: No need for this define 2010-05-19 23:47:41 -05:00
Daniel Wagner b338033307 Read EF_ICCID property of SIM
Tested with phonesim.
2010-05-19 23:41:03 -05:00
Aki Niemi b8ec7553ef Add network time support
Adding a new notify function in the netreg atom for notifying a
received Network Identification and Timezone (NITZ) indication. This
data is consumed via a nettime plugin, of which there is also an
example.
2010-05-19 10:46:18 +03:00
Denis Kenzior 632dc4c7e9 Fix: No glib types in oFono public API 2010-04-15 16:49:41 -05:00
Denis Kenzior 54552f1c33 Fix: Style issues in stk driver API 2010-04-15 16:49:41 -05:00
Andrzej Zaborowski aad4d0de78 Add Sim Toolkit atom
- Add ofono_stk atom in stk.c
- Move envelope command from sim driver to stk driver
2010-04-15 16:49:40 -05:00
Andrzej Zaborowski ddfe8acf11 Drivers can notify core of SIM insertion / removal
Add ofono_sim_inserted_notify function to notify the core of SIM
insertion / removal.

Make every plugin generate a sim inserted event on start.  For devices
with removable card, the event should be emitted after the
plugin detects such event.  For devices that need to wait for SIM card
initialization, they can emit this event later.
2010-04-15 16:49:40 -05:00
Andrzej Zaborowski 22cbe98146 Extend sim-ready watch with card insert/eject 2010-04-15 16:49:40 -05:00
Denis Kenzior 7972f844c7 Refactor: Simplify the internal GPRS API
We no longer expose lac/ci/tech attributes obtained from CGREG
(some modems, like ISI, do not even report them for GPRS separately).
Simplify the internal gprs driver api to only report the registration
status (e.g. home, roaming, searching, not registered, etc)
2010-03-26 23:00:28 -05:00
Denis Kenzior 538cd6a1cb Refactor: Rename radio setting type names 2010-03-25 10:42:48 -05:00
Denis Kenzior 01a4a93bee Move netreg interface definitions to dbus.h 2010-03-23 13:35:58 -05:00
Denis Kenzior a5d54581ad Move sim manager interface definition to dbus.h 2010-03-22 15:39:13 -05:00
Denis Kenzior 0e09221ea5 Move cbs interface definition to dbus.h 2010-03-22 15:36:04 -05:00
Denis Kenzior 500f291030 Move call volume interface definition to dbus.h 2010-03-22 15:33:56 -05:00
Denis Kenzior bbfd7db3cc Move mwi interface definition to dbus.h 2010-03-22 15:31:03 -05:00
Denis Kenzior 6425706c9d Move radio settings interface definition to dbus.h 2010-03-22 15:29:03 -05:00
Denis Kenzior 5ab70ab5f2 Move sms interface definition to dbus.h 2010-03-22 15:28:08 -05:00
Denis Kenzior e1e036b5df Move voicecall interface definitions to dbus.h 2010-03-22 15:27:08 -05:00
Denis Kenzior d87f285fdf Add support for modem names 2010-02-12 18:29:41 -06:00
Aki Niemi 8730339f40 Move USSD status enum to header 2010-02-09 22:31:32 +02:00
Aki Niemi 8d4004d182 Add radio settings atom and driver API
This interface exposes a read-write property for radio access technology
selection mode.
2010-02-04 23:43:18 +02:00
Marcel Holtmann e4850f2eeb Add support for dynamic debug feature 2010-01-26 10:06:53 +01:00
Denis Kenzior 0382f64353 Refactor: Rename & Restructure cphs_support
- Rename to cphs_service_table to be more inline with the specification.
- Since the spec allows arbitrary length service tables, use an unsigned
  char * return instead of a short.
- Use bit_field function instead of defining an enum
2010-01-12 11:27:31 -06:00
Denis Kenzior 2b231c3f84 Rename: Rename CPHS Phase enums
Be more consistent with the 3GPP Phase names
2010-01-12 11:23:21 -06:00
Andrzej Zaborowski f97d203392 Use CPHS version of mailbox numbers on SIM if 3GPP version not available.
Otherwise just try to keep the CPHS version of the files in sync.
2010-01-12 11:12:01 -06:00
Andrzej Zaborowski 637ca18af4 Retrieve CPHS phase (if any) from SIM. 2010-01-12 10:35:51 -06:00
Denis Kenzior 1b5c314f9a Refactor: Allow persisent modem names 2010-01-06 15:50:25 -06:00
Denis Kenzior 45f2f9315f Set phase to unknown until we probe it 2010-01-06 14:17:27 -06:00
Denis Kenzior beb3e032e4 Refactor: Preserve Phase obtained from the SIM 2010-01-06 13:19:47 -06:00
Andrzej Zaborowski b4c3e1c1cc Index SIM cache by phase also. 2010-01-06 13:14:20 -06:00
Marcel Holtmann 144080e749 Update copyright information 2010-01-01 17:00:10 -08:00
Andrzej Zaborowski 3547a8d39d Add SIM download envelope function to SIM driver 2009-12-17 21:45:38 -06:00
Denis Kenzior 8495e047e6 Refactor: use unsigned ints for cids 2009-12-09 21:02:47 -06:00
Denis Kenzior 0b754835f5 Add utility to get the next free call id 2009-12-04 16:52:30 -06:00
Denis Kenzior 8e02b1a67f Refactor: Remove list_calls from voicecall driver 2009-12-04 16:52:30 -06:00
Denis Kenzior 55572b6e69 Style: Use unsigned int instead of unsigned 2009-12-01 12:42:23 -06:00
Zhenhua Zhang f3fe75553a Add mpty field to ofono_call
A field 'mpty' is added to ofono_call so that we can know
whether the call belongs to multiparty call or not. According
to 27.007 7.18, it is a defined return value of AT+CLCC.
2009-11-23 09:04:48 +01:00
Denis Kenzior 91dfc2ddb9 Support returning settings from context activation 2009-11-17 18:54:21 -06:00
Martin Xu 26413141be Add ofono_gprs_context_get_modem 2009-11-17 15:56:31 -06:00
Denis Kenzior 5e8583f1b7 Update some internal documentation 2009-11-13 15:34:20 -06:00
Denis Kenzior 9afdf1a35b Add SMS history capability 2009-11-05 16:46:43 -06:00
Denis Kenzior cbc1f998f2 Update the netreg driver to use mcc/mnc
Don't use the ofono_network_operator structure anymore
2009-10-29 15:29:12 -05:00
Denis Kenzior 24d8a5722b Refactor: replace netreg get_operator with mcc/mnc
The full operator information is useless as only mcc/mnc are really
required.  The internal structures will be changing soon
2009-10-27 19:47:52 -05:00
Denis Kenzior bc72cca91b Fix: notify_attached was only used when detached
The standard only specifies that the context might have been detached by
the network / mobile equipment.  Not attached.
2009-10-26 16:55:03 -05:00
Denis Kenzior 722204ae6c Fix: Connect up gprs and gprs_context 2009-10-23 17:05:56 -05:00
Denis Kenzior a3b736afe5 Add implementation of GPRS context atom 2009-10-23 17:05:56 -05:00
Denis Kenzior 08eda615c5 Refactor/Implement basic activate logic
Not yet tested
2009-10-23 17:05:55 -05:00
Denis Kenzior 0b45287dbd Fix: Typos 2009-10-23 17:05:55 -05:00
Denis Kenzior 65f77b2b3a Add CID range function 2009-10-23 17:05:54 -05:00
Denis Kenzior bb7945d6aa Refactor: Split up GPRS into two atoms
Split up GPRS into two atoms: GPRS and GPRS Context.  GPRS will handle
the areas of GPRS network registration, basic GPRS capability detection
and attach / detach.

GPRS Context will handle setting up / activating / deactivating the
indicidual contexts.

This will allow us to use the generic GPRS atom for most devices while
customizing the GPRS context accordingly.
2009-10-23 17:05:54 -05:00
Denis Kenzior 88c0f77a58 Refactor: First round of renaming 2009-10-23 17:05:53 -05:00
Denis Kenzior b2fd75014a Refactor: rename data-connection to gprs
Keep the name specific to GSM, other implementations will probably
require their own interfaces
2009-10-23 17:05:53 -05:00
Andrzej Zaborowski f43efa8a5f Add GPRS support
This commit implements the GPRS context setup and teardown according to
doc/dataconnectionmanager-api.txt

One issue with the AT implementation of the api is that "Powered" (a
read-write property) can be set independently of "Attached" (read-only
property) and remain set when "Attached" is clear.  The semantics would
be that the network doesn't have resources to let the modem attach,
but the modem waits for the resources to become available and then
attaches.  On AT the modem is in this state only when executing +CGATT,
so currently the code will rerun +CGATT as soon as the previous one
returns with error, probably starving other commands.  A possible
workaround would be for "Powered" to flip back to False after the modem
fails to attach once, or give up on having separate properties.
Alternatively we could re-try to attach periodically but on one modem
I've tried +CGATT fails after about 1 minute (that's the Calypso) and
on another only about 0.5s (Nokia phones with AT emulation).

When "Powered"  is set and "RoamingAllowed" is clear and we manage to
attach and find that we're roaming, ofono resets "Powered".

We may want to catch the user trying to dial *99***1# which is the
backwards compatibility quirk for old modems (same way ofono parses
USSD strings).
2009-10-23 17:05:53 -05:00
Denis Kenzior be55ba4ab3 Refactor: Move elementary file type checking
Every single EF read callback checks the file type reported out of the
SIM is what it expects.  Instead this should be done in one place and
the errors reported accordingly
2009-10-02 18:25:56 -05:00
Denis Kenzior 853bd2d6da Add Muted property to CallVolume atom 2009-09-29 14:56:22 -05:00
Denis Kenzior 6a271dd258 Refactor: Break up call volume notify 2009-09-29 14:56:22 -05:00
Denis Kenzior d76f674794 Cleanup: Do not expose DBus details to drivers 2009-09-29 14:56:21 -05:00
Zhenhua Zhang f5e24369ca Add call volume interface to adjust speaker and mic volume 2009-09-29 14:56:21 -05:00
Andrzej Zaborowski 2a02f45c79 Add plugin interface for getting PIN lock state.
It may be useful to have the information of whether card is currently
locked and emit events when this changes but if we want to have it as a
property, we would need properties for all types of locks and it wouldn't
be all that useful.
2009-09-23 14:27:52 -05:00
Denis Kenzior 5fd083f6f4 Refactor: Do not use int instead of enum
27.007 does not define an enumeration for SIM PIN/PUK values.  This
should be handled by ofono enum instead
2009-09-22 00:07:07 -05:00
Denis Kenzior 63416e2851 Rearrange sim password enum 2009-09-22 00:07:06 -05:00
Denis Kenzior 9f27be58bc Move some stuff around 2009-09-22 00:07:06 -05:00
Andrzej Zaborowski ee02b14836 Do PIN authentication
This adds checking whether PIN is required during SIM initialisation and
delaying the sim ready notifications until after correct PIN is given.
2009-09-22 00:07:06 -05:00
Denis Kenzior 0698fc2788 Split populate modem driver method
Introduce two new methods
	- pre_sim - SIM is not inserted or locked.  This should populate
	  the modem with atoms that can be used without the SIM.
	  Generally this is the devinfo atom, the sim atom and the voice
	  call atom (emergency calls only)
	- post_sim - SIM is ready.  This method should populate the
	  modem with the remaining atoms
2009-09-17 10:14:02 -05:00
Denis Kenzior 27cfc00eba Add netreg getter functions
- Get Location, CellID
- Current Operator
- Registration Status
- Technology
2009-09-10 18:19:48 -05:00
Denis Kenzior 40bc569024 Fix cut-paste error 2009-09-10 18:13:11 -05:00
Denis Kenzior 78b853a97d Add initial Cell Broadcast atom implementation 2009-09-10 16:13:16 -05:00
Marcel Holtmann 154102e873 Add modem properties for booleans 2009-09-08 09:12:19 +02:00
Denis Kenzior 7a95c41fab Get rid of node argument in ofono_modem_create 2009-09-02 17:39:23 -05:00
Denis Kenzior 8e62522575 Add modem property capability
Add ofono_modem_set_string & ofono_modem_get_string
Add ofono_modem_set_integer & ofono_modem_get_integer
2009-09-02 17:39:23 -05:00
Denis Kenzior 7ff85d9737 populate should return void 2009-09-01 22:29:02 -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 4064f4ba73 Add vendor flag capability to voicecalls 2009-09-01 18:14:59 -05:00
Denis Kenzior e5577046f0 Add vendor flag capability to ussd 2009-09-01 18:14:58 -05:00
Denis Kenzior afb0e2b854 Add vendor flag capability to ssn 2009-09-01 18:14:58 -05:00
Denis Kenzior 8d380f8fa0 Add vendor flag capability for sms 2009-09-01 18:14:58 -05:00
Denis Kenzior aecf42646e Add vendor flag capability to sim 2009-09-01 18:14:58 -05:00
Denis Kenzior 1fb9ecca46 Add vendor flag capability to phonebook 2009-09-01 18:14:58 -05:00
Denis Kenzior 271b042488 Add vendor flag capability to netreg 2009-09-01 18:14:58 -05:00
Denis Kenzior c7d35dd039 Add vendor flag capability to devinfo 2009-09-01 18:14:58 -05:00
Denis Kenzior 933f803967 Add vendor flag to call-settings 2009-09-01 18:14:58 -05:00
Denis Kenzior 390bd82109 Add vendor parameter to call-meter 2009-09-01 18:14:57 -05:00
Denis Kenzior 7ee954b28a Add vendor flag to call-forwarding 2009-09-01 18:14:57 -05:00
Denis Kenzior 15b1a733b0 Introduce vendor parameter to call-barring 2009-09-01 18:14:57 -05:00
Andrzej Zaborowski 7ecebc9a31 Expose service dialling numbers stored on SIM through SimManager. 2009-08-31 15:12:37 -05:00
Denis Kenzior 9967c407fa Reformat comments a little 2009-08-30 15:32:08 -05:00
Andres Salomon 34b73ace78 driver callback naming
On Sun, 30 Aug 2009 13:45:45 -0500
Denis Kenzior <denkenz@gmail.com> wrote:

> Hi Andres,
>
> > static struct ofono_modem_driver g1_driver = {
> >         .name = "HTC G1",
> >         .probe = g1_probe,
> >         .enable = g1_enable,
> >         .disable = g1_disable,
> >         .remove = g1_remove,
> >         .populate = g1_populate,
> > };
> >
>
> So the current intention:
> .probe - Detect whether device is really supported by the plugin,
> initialize any data structures specific to the device
> .remove - Destroy data structures
> .enable - Perform power up
> .disable - Perform power down
> .populate - Populate the atoms supported by this device (e.g. netreg,
> voicecall, etc)  This is called by the core after every power cycle,
> when the device is brought up.
>

Thanks!  See patch below.

> >
> > Of course, I'm also wondering why there needs to be two separate
> > layers of calls in the first place.  Why not have drivers register
> > everything from within probe, call ofono_set_powered(modem, TRUE)
> > once the device is ready, and be done with it?
>
> The reason for this is e.g. airplane mode, where you physically want
> to turn off the device.  Another case is for battery / power reasons,
> e.g. a netbook with a USB modem that is not being used.
>

Fair enough.  In the kernel, we have callbacks named suspend/resume
to handle that.

> > The only reason why this doesn't blow up in the generic_at plugin is
> > because the driver_data is leaked.  If one were to free it from
> > generic_at_exit in the wrong place (since it's allocated from
> > generic_at_init, it would make sense to free it in generic_at_exit),
> > one would see the same SEGV/SIGBUS/SIGILL errors upon ctrl-c.
>
> So the leak has now been fixed.
>
> I think you're being unnecessarily harsh here.  To be fair, the
> generic_at driver does something like this at init:

My criticism is simply w/ the naming.  'enable'/'disable' doesn't imply
anything about power.  powerup/powerdown, poweron/poweroff,
suspend/resume would all imply power state changes (at least the latter
would be familiar to those who do kernel stuff).  Having comments that
describe what the callbacks do would also work, though.

>From 80a7b54d52201dfd7d8b590457450ae0a4f72888 Mon Sep 17 00:00:00 2001
From: Andres Salomon <dilinger@collabora.co.uk>
Date: Sun, 30 Aug 2009 15:56:16 -0400
Subject: [PATCH] Add comments to ofono_modem_driver struct

Document what all the callbacks do.
2009-08-30 15:29:59 -05:00
Marcel Holtmann 70aab2a826 Convert to fully non-recursive build system 2009-08-24 23:49:40 -07:00
Rémi Denis-Courmont 484af7eec2 Fix broken dependency on include/ofono/*.h files
The fact that the directory exists does not prove that (all of) the
header file symbolic links have been created. This is particularly
annoying when a new header file gets added.
2009-08-24 13:35:54 +03:00
Denis Kenzior 038251eac5 Introduce the Modem driver API 2009-08-21 19:25:51 -05:00
Denis Kenzior e0ff90e6da Rename ofono_modem_*_userdata
Rename ofono_modem_get_userdata to ofono_modem_get_data
Rename ofono_modem_set_userdata to ofono_modem_set_data

For consistency with other drivers
2009-08-20 18:19:21 -05:00
Denis Kenzior e711b0e62a Break out device info into a separate driver
The modem info ops (Serial, Manufacturer, etc) are broken into a
separate oFono atom.  This is mainly to support a proper modem device
driver infrastructure.  As a result the data structures have been
tweaked a little.

driver.h is now empty and has been removed.
2009-08-20 12:48:29 -05:00
Denis Kenzior 04c12038ba Evolve the voicecall driver 2009-08-19 18:35:08 -05:00
Denis Kenzior 5b1f5ba084 Evolve the netreg driver 2009-08-19 18:35:07 -05:00
Denis Kenzior a5617250a1 Move mcc & mnc defines to types.h 2009-08-19 18:35:07 -05:00
Denis Kenzior 5999b418e8 Evolve message waiting low level API 2009-08-19 18:35:07 -05:00
Denis Kenzior 5e72405120 Evolve SIM driver 2009-08-19 18:35:06 -05:00
Denis Kenzior 3b043e9b1a Move ofono_destroy_fun to types.h 2009-08-19 18:35:06 -05:00
Denis Kenzior c4a349fdf9 Evolve SMS driver API 2009-08-19 18:35:06 -05:00