Commit Graph

18 Commits

Author SHA1 Message Date
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 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 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
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
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 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 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
Aki Niemi 8698a0d4f2 gisi: Fix copyright and license boilerplate 2010-10-14 15:29:58 +03:00
Aki Niemi 22103491a4 gisi: move g_isi_modem_by_name to separate file
This fixes build warnings that resulted from conflicts between
linux/if.h and net/if.h.
2010-04-21 10:48:29 +03:00