Commit Graph

148 Commits

Author SHA1 Message Date
Jonas Bonn 3beeff758d treewide: Remove superfluous use of _GNU_SOURCE
There are a large number of files in the tree that define _GNU_SOURCE
despite not actually using features hidden behind this flag.  This patch
removes all these definitions in one fell swoop...
2018-10-17 10:01:57 -05:00
Marcel Holtmann dc41204950 gisi: Remove includes of <glib/gtypes.h> 2012-03-19 16:12:12 -07:00
Marcel Holtmann 91d3c4479f gisi: Update copyright information 2011-10-10 13:40:08 -07:00
Marcel Holtmann 4c11468094 gisi: Remove unused code for PN netlink address handling 2011-05-27 10:06:10 -07:00
Pekka Pessi 847a09dc47 gisi: log normal responses in a less confusing way 2011-04-28 09:29:26 -05:00
Aki Niemi 9871da333a gisi: Fix PN_SIM reachability check decoding 2011-03-18 09:19:04 +02:00
Antti Paila a55a136a04 gisi: M6 coding style violation corrections 2011-03-04 13:31:54 +02:00
Aki Niemi 073f3d252f gisi: Make cursor a 16bit unsigned
This is to match subblock length when long header format is in use.
2011-03-03 19:05:10 +02:00
Antti Paila 1a97158e04 gisi: Consumer functions for ISI message iterator 2011-03-03 18:56:05 +02:00
Aki Niemi 090dc92b68 gisi: Refactor indication subscriptions
Handle different message types for IND subscriptions based on the
presence of the GISI_MODEM_FLAG_USE_LEGACY_SUBSCRIBE flag. This
enables building modem plugins for modems that only support one or the
other available IND types.

Based on patches from:
Jessica Nilsson <jessica.j.nilsson@stericsson.com>
2011-02-07 09:51:35 +02:00
Aki Niemi d957dbece5 gisi: Minor style fixes 2011-02-07 09:51:35 +02:00
Aki Niemi 66dab3227d gisi: Refactor modem to use remote device 2011-02-07 09:51:35 +02:00
Aki Niemi 4eedacac20 gisi: Add new API for setting modem remote device 2011-02-07 09:51:35 +02:00
Aki Niemi 5b3a43a17c gisi: Add new PhoNet device ID for STE 2011-02-07 09:51:35 +02:00
Aki Niemi f6f6b1f8ac gisi: Add checks for NULL 2011-02-07 09:51:35 +02:00
Aki Niemi ab0df92d97 gisi: Add API for setting modem flags 2011-02-07 09:51:34 +02:00
Aki Niemi 6ac4d143a9 gisi: Refactor netlink
Don't use typedefs for enum types, and move PhoNet device enum over to
common.h.
2011-02-07 09:51:34 +02:00
Pekka Pessi 1100838037 gisi: remove g_isi_pending_from_msg() 2011-01-18 23:34:31 +02:00
Pekka Pessi e72e5444af gisi: simplify pending management
Client or server mark their pending objects with
the function g_isi_pending_set_owner().

When client or server get destroyed or reset the pending objects are
removed with the function g_isi_remove_pending_by_owner(). As a client
or server always uses only a particular resource, all the pending
objects are conveniently stored into a single list.
2011-01-18 23:31:47 +02:00
Pekka Pessi 6238c27ba5 gisi: remove before notify
Just in case, remove pending operations before calling notifys.
The notify function can remove client, service or modem.
2011-01-18 22:29:24 +02:00
Aki Niemi b78ccac4ec gisi: Style fixes
Lines were over 80 chars.
2011-01-07 13:43:45 +02:00
Pekka Pessi 593e74f793 gisi: Simplify client interface.
Use send functions without explicit timeout. Return booleans instead
of pointers - nobody really used GIsiPending but relied on client
doing the cleanup.

Add g_isi_client_set_timeout(), g_isi_client_(v)send_with_timeout().
2011-01-07 13:38:55 +02:00
Aki Niemi ef4b7fbeaf gisi: Add API for one-shot sending of messages 2011-01-07 13:29:22 +02:00
Denis Kenzior b106db583a gisi: Don't go over 80 characters 2010-12-23 18:24:34 -06:00
Andrzej Zaborowski d9aeef28d3 gisi: fix use of unitialised variable
Set no msg.version if it's not available.
2010-12-23 18:23:50 -06:00
Aki Niemi 4ca9022358 gisi: Minor style fixes 2010-12-22 17:47:11 +02:00
Aki Niemi 19306a1e00 gisi: Minor style fix in pipe.c 2010-12-22 17:13:48 +02:00
Aki Niemi a1b20ae1da gisi: Add message tracing and debugging support 2010-12-22 17:13:48 +02:00
Aki Niemi 7d6e163184 gisi: Explicit compare to NULL 2010-12-22 17:13:48 +02:00
Aki Niemi 0bfc0ea487 gisi: Remove forward declaration 2010-12-22 17:13:48 +02:00
Aki Niemi 1f238413cb gisi: Add utility for error strings 2010-12-22 17:13:48 +02:00
Aki Niemi 0f0532eb6f gisi: Add getter for 16bit fields 2010-12-22 17:13:48 +02:00
Mika Liljeberg 8ea0c03a76 gisi: check pipe handle 2010-12-22 17:13:48 +02:00
Mika Liljeberg 3652340b1b gisi: modify reachability check
Always cache server object ID and ISI version.
2010-12-22 17:13:47 +02:00
Mika Liljeberg 38f49a769a gisi: store user data in GIsiModem 2010-12-22 17:13:47 +02:00
Aki Niemi ca3f646f8f gisi: Add constructor for sub-iterators
This is needed for decoding messages that include sub-blocks within
sub-blocks.
2010-12-22 17:13:47 +02:00
Aki Niemi 188bbc5d3b gisi: Add client API to reset instance
Calling this method will cancel any pending requests, and unsubscribe
from any pending subscriptions.
2010-12-22 17:13:47 +02:00
Pekka Pessi edd0b327e0 gisi: Remove forward reference 2010-12-22 17:13:47 +02:00
Pekka Pessi 5c4645b2f4 gisi: Use direct hashing from resource ID
Do not call modem_subs_update() after modem has already been
destroyed, but do it earlier, already after destroying all services.
2010-12-22 17:13:47 +02:00
Aki Niemi a2e434393d gisi: Fix type mismatch 2010-12-22 17:13:47 +02:00
Aki Niemi f2bcea8c4e gisi: Refactor netlink destroy function 2010-12-22 17:13:47 +02:00
Aki Niemi 50f6b06105 gisi: Split indication to use separate socket
Some resources send INDs with non-zero unique transaction ID, which
can conflict with pending RESPs. To fix this, we use two sockets, one
dedicated for INDs, and one dedicated to REQs, NTFs and RESPs.
2010-12-22 17:13:47 +02:00
Aki Niemi 0cc1bbd865 gisi: Adapt and refactor socket module
Clean up and fix naming.
2010-12-22 17:13:46 +02:00
Aki Niemi 59e61fdd6a gisi: Add include guards to pep module 2010-12-22 17:13:46 +02:00
Aki Niemi 068233c370 gisi: Adapt and refactor pipe module
Make use of the new client API and refactor the code.
2010-12-22 17:13:46 +02:00
Aki Niemi 7cd90666be gisi: Adapt and refactor netlink module
Adapt to using new modem API and clean up naming and coding
conventions.
2010-12-22 17:13:46 +02:00
Aki Niemi ee2a8bbc69 gisi: Refactor the server API
The new server API is a convenience wrapper on the modem API for
servers.
2010-12-22 17:13:46 +02:00
Aki Niemi 325e555092 gisi: Refactor the client API
The new client API is a convenience wrapper on the modem API for
clients.
2010-12-22 17:13:46 +02:00
Aki Niemi 0ccb96f9ab gisi: Remove defunct file
Resource reachability verification is now handled in the modem module.
2010-12-22 17:13:46 +02:00
Aki Niemi b8e30c153e gisi: Redesign ISI message processing
This new modem API supercedes the old client and server APIs.  It
properly queues resource subscriptions and version queries, as well as
caches reachability status for a given resource.

Also, this is a complete redesign of ISI message handling, adding
another layer of abstraction to multiplexing operations to a given
modem resource.
2010-12-22 17:13:46 +02:00