Uwe Hermann
b1f8310376
Don't check g_free() arguments for NULL.
...
The g_free() call is guaranteed to not segfault when NULL is passed.
2015-04-01 00:23:25 +02:00
Uwe Hermann
0c5f2abc66
Random whitespace and other minor fixes.
2015-03-22 02:15:30 +01:00
Uwe Hermann
329733d92c
Constify a few arrays and variables.
2015-03-21 20:30:53 +01:00
Martin Ling
5e23fcab88
Simplify channel creation.
...
We always follow sr_channel_new() with a call to add the channel to the sdi.
Tidy up a bit by adding this functionality to sr_channel_new() instead.
2015-03-19 21:37:33 +00:00
Joel Holdsworth
c7bc82ffa1
input: Added preferred file extension field
...
This fixes parts of bug #541 .
2015-01-27 18:05:25 +01:00
Uwe Hermann
aac29cc192
Eliminate sr_dev_inst_new().
2014-11-21 02:01:36 +01:00
Uwe Hermann
0af636bed9
Change sr_dev_inst_new() to take no parameters.
...
Change all callers to set the fields manually as needed.
2014-11-12 17:18:46 +01:00
Jens Steinhauser
160691b900
input/csv: Skip header line.
2014-10-19 23:23:58 +02:00
Bert Vermeulen
4ab01c3564
input/csv: Fix size_t printing.
2014-10-04 10:39:11 +02:00
Bert Vermeulen
18078d0532
input/csv: Code cleanup.
...
This cleans up a warning generated by clang's static analyzer.
2014-10-02 13:59:44 +02:00
Bert Vermeulen
60107497fe
input: Use SR_ERR_NA instead of SR_OK_CONTINUE.
2014-09-30 01:49:58 +02:00
Bert Vermeulen
d5cc282ff8
input: sr_input_free() is now a void function.
...
Its backend, input_module.cleanup(), is now also a void function.
2014-09-30 01:49:58 +02:00
Bert Vermeulen
7066fd4660
input: Add sr_input_end().
...
This signifies to the module instance no more input will come. This
will cause the module to process any data it may have buffered. The
SR_DF_END packet will also typically be sent at this time.
2014-09-30 01:49:58 +02:00
Bert Vermeulen
89da5b3b54
input: Free instance-private storage at instance free.
2014-09-30 01:49:58 +02:00
Bert Vermeulen
d018181331
input: Add sdi_ready flag to struct sr_input.
...
When an input module instance has received enough input to fully
populate the struct sr_dev_inst, sdi_ready is set to TRUE and its
receive() method returns immediately. Any remaining received data
is buffered until the next time the function is called.
2014-09-30 01:49:58 +02:00
Soeren Apel
f220936473
Removal of sdi->index, step 3: sr_dev_inst_new() calls for input mods
2014-09-30 01:42:58 +02:00
Bert Vermeulen
6e8d95a50c
input/csv: Use uint64 for samplerate option.
2014-08-30 20:16:45 +02:00
Bert Vermeulen
4f979115a4
input: sr_input_scan_*() now return a status code.
...
SR_OK: a match was found.
SR_ERR: no match.
SR_ERR_DATA: a match was found but the module cannot handle the input.
SR_OK_CONTINUE: some module didn't have enough data to be sure.
2014-08-28 00:22:13 +02:00
Bert Vermeulen
06ad20bebf
input: Avoid warnings on all-zero static struct entries.
2014-08-26 12:38:41 +02:00
Bert Vermeulen
41d214f61a
input: Convert CSV module.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
17bfaca62a
input: Introduce new input module API.
...
This is a work in progress.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
d4c937749a
input: s/format/module in all naming.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
b866fc095d
input/csv: Match format on .csv extension in filename.
2014-08-01 12:03:42 +02:00
Bert Vermeulen
155b680da4
Reorganize project tree.
2014-07-22 18:19:29 +02:00