Commit Graph

19 Commits

Author SHA1 Message Date
Marcel Holtmann 91d3c4479f gisi: Update copyright information 2011-10-10 13:40:08 -07:00
Antti Paila a55a136a04 gisi: M6 coding style violation corrections 2011-03-04 13:31:54 +02:00
Antti Paila 1a97158e04 gisi: Consumer functions for ISI message iterator 2011-03-03 18:56:05 +02:00
Aki Niemi 4ca9022358 gisi: Minor style fixes 2010-12-22 17:47:11 +02:00
Aki Niemi 7d6e163184 gisi: Explicit compare to NULL 2010-12-22 17:13:48 +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 42ff2b6d17 gisi: Add convenience API for structs 2010-12-22 17:13:46 +02:00
Aki Niemi 4f14a6c179 gisi: Make subblock iterator use new message API 2010-12-22 17:13:46 +02:00
Lucas De Marchi 86aae128d3 gisi: 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 11:53:14 -06:00
Aki Niemi 8698a0d4f2 gisi: Fix copyright and license boilerplate 2010-10-14 15:29:58 +03:00
Pekka Pessi a97a97147d Eliminated bool, true and false from gisi 2010-05-27 13:07:15 -05:00
Aki Niemi 19d9b37c58 gisi: fix pointer checking 2010-04-20 14:10:38 +03:00
Aki Niemi 876943e2b4 gisi: Add getter for sub-block data
Also fix indentation and change int->unsigned in the API.
2009-10-14 22:46:26 +03:00
Pekka Pessi d1d870ba7a Refactor subblock iterators.
Always initialize iterators.

Try to avoid pointer arithmetics on NULL; in other words, move all pointer
arithmetics inside g_isi_sb_iter_init().

There are 4 different ways for representing sub blocks in ISI message:
- 8-bit sub_blocks count, 8-bit sub_block_id/sub_block_len
- 16-bit sub_blocks count, 8-bit sub_block_id/sub_block_len
- 8-bit sub_blocks count, 16-bit sub_block_id/sub_block_len
- 16-bit sub_blocks count, 16-bit sub_block_id/sub_block_len

The compact form g_isi_sb_iter_init() supports 8-bit sub_block count before
start of the sub blocks themselves and 8-bit sub_block_id and sub_block_len.
The full form g_isi_sb_iter_init_full() with explicit longhdr and sub_block
count supports all other cases.
2009-10-09 12:54:04 +03:00
Pekka Pessi bc8031e2d7 gisi: use const and restrict in iter 2009-10-07 23:21:15 +03:00
Aki Niemi a34849599b Fix restrict keyword usage 2009-09-16 09:05:53 +03:00
Aki Niemi 3cec9ac67b Add support for long sub-block header 2009-09-14 23:43:17 +03:00
Aki Niemi a1ca8a9afa Add and modify string getters
Add a getter for latin ASCII only tags, and change the alpha tag
getter. Turns out not all alpha tags in ISI are of the length-value
variety.
2009-09-14 16:21:06 +03:00
Aki Niemi dec66954b6 gisi: Add ISI sub-block iterator 2009-09-14 14:34:00 +03:00