aboutsummaryrefslogtreecommitdiffstats
path: root/include/samsung-ipc.h
Commit message (Collapse)AuthorAgeFilesLines
* samsung-ipc/utils: Add file_data_sizeDenis 'GNUtoo' Carikli2020-11-031-0/+1
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* includes: samsung-ipc.h: switch to Linux code styleDenis 'GNUtoo' Carikli2020-06-271-44/+56
| | | | | | | This contains no functional changes. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> Reviewed-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* devices: gprs activate/deactivate handlers: pass the ipc_client structDenis 'GNUtoo' Carikli2020-02-281-2/+2
| | | | | | | | | This enables to use logging inside the callbacks. At this point the ipc_client struct is already available, so it is safe to do that. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* devices: transport: pass the ipc_client structDenis 'GNUtoo' Carikli2020-02-211-5/+5
| | | | | | | | | This enables to use logging inside the callbacks. At this point the ipc_client struct is already available, so it is safe to do that. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* device boot handlers: pass it the ipc_client structDenis 'GNUtoo' Carikli2020-02-211-1/+2
| | | | | | | | | | | This enables to use logging inside the handlers: ipc_client_log needs access to the ipc_client struct to work. At this point the ipc_client struct is already available, so it is safe to do that. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* samsung-ipc.h: fix include for timeval structDenis 'GNUtoo' Carikli2020-02-081-1/+1
| | | | | | | | | | When creating a new file which only includes samsung-ipc.h, with -Werror, we have a compilation error: error: ‘struct timeval’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* file_data_{read,write}: Add loggingDenis 'GNUtoo' Carikli2020-01-301-4/+5
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Add IPC_CLIENT_TYPE_DUMMYDenis 'GNUtoo' Carikli2020-01-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | The libsamsung-ipc logging system depends on having a valid ipc_client struct which is created by ipc_client_create. This enable libsamsung-ipc to be reused accross software stacks that use different logging systems. For instance the libsamsung-ipc can be used by libsamsung-ril which integrates libsamsung-ipc logging to the Android logging system. However this has several side effects: - Standalone tools like nv_data-md5 that may not necessarily run on a device with a compatible modem and driver end up not printing many of the information it should be printing. - As ipc_client_create tries to autodetect hardware and software configurations, and that logging is only available after it succeed, the early intialisation prints are not forwarded to the logging system. This can be an issue on Android as users and developers expect the logging to go to 'logcat' and getting the early logs require more extesive modification of the system. This enables to create a dummy ipc_client with working logging. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* External fds polling supportPaul Kocialkowski2014-08-071-2/+7
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* GPRS cid count is unsigned integerPaul Kocialkowski2014-07-281-6/+6
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Offset is unsigned intPaul Kocialkowski2014-07-261-2/+2
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* utils: Dedicated function for length/sizePaul Kocialkowski2014-07-261-1/+3
|
* utils: Shared libraries don't allow for internal functionsPaul Kocialkowski2014-07-261-0/+13
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Data dump function replacementPaul Kocialkowski2014-07-261-1/+1
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* ipc_utils: Utility to check whether a seq is validPaul Kocialkowski2014-07-041-0/+2
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* ipc_utils: Enumerate send first, then recvPaul Kocialkowski2014-02-241-2/+2
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* ipc: Consistent coding style and major cleanupPaul Kocialkowski2014-02-151-44/+42
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* rfs: Proper type for size definitionsPaul Kocialkowski2014-02-131-2/+2
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* rfs: Proper IPC functions for nv_data specs, without generic fallback valuesPaul Kocialkowski2014-02-111-0/+8
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Correct enumeration of files and devicesPaul Kocialkowski2014-02-081-1/+1
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Good-looking copyright blocks, with the right order in copyright linesPaul Kocialkowski2014-01-251-2/+1
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* svc: Relevant messages and structures definitionsPaul Kocialkowski2013-08-251-0/+1
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Rename ipc_header to ipc_fmt_header, add ipc_rfs_header and utility functionsPaul Kocialkowski2013-07-031-3/+7
| | | | | Change-Id: I4559319bd4c56a5994f2966fa3b853429ccc921a Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* New utilities (not exposed by the API) for various I/O and ipc fill functionsPaul Kocialkowski2013-06-281-10/+7
| | | | | Change-Id: I0bd1d7781971f217903f307b5ac418180afc0d50 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Rework handlers and ipc functions for better consistencyPaul Kocialkowski2013-06-271-35/+40
| | | | | | | | | | | | | | | | | | | | Detailed list of the changes introduced by this commit: * Rename ipc_client_bootstrap_modem to ipc_client_bootstrap * Rename ipc_client_new/free to ipc_client_create/destroy * Rename log_handler to log_callback and change arguments order * Remove handlers common data and fd mechanisms * Set transport, power and gprs common data for handlers * Add data_create and data_destroy handlers * Rework arguments order for handlers * Add poll transport handler * Remove functions types typedefs * Remove dumb ipc_client_send_* functions * Remove ipc_client_gprs_handlers_available * Adapt device files for the new API changes * Adapt modemctrl for the new API changes Change-Id: Ia9ba1045dbbf9f5e31a201aa8629b49019158972 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* ipc_client_send: Single function with return codePaul Kocialkowski2013-06-261-7/+2
| | | | | Change-Id: I480b2496dabfada37e1ce60ab20401adf02b2e01 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Add newline and indentation on long functions namesPaul Kocialkowski2013-06-251-14/+28
| | | | | Change-Id: Ie393301a04523816e7aa674e57a4c3a2eb93247e Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Moved radio.h and types.h to samsung-ipc.h (API) and protocol.h (IPC protocol).Paul Kocialkowski2013-06-251-1/+106
| | | | | | | Also some minor headers cosmetics. Change-Id: Id2b988b118d956e91827b9b840e3f384424593ae Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Drop support for the (incomplete) old protocol implementation used on H1.Paul Kocialkowski2013-06-251-3/+3
| | | | | | | Also refactor headers: values aligned to 16x4 spaces and other cosmetics Change-Id: I5a6f2c2471599c88c4be74591117d0ab2dfaaddf Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* switch to GPLv2+ as license as decided by all authors per mailSimon Busch2012-09-211-1/+1
|
* Add identifiable named header file which should be the only one used by clientsSimon Busch2012-08-241-0/+28