Christian W. Zuckschwerdt
af043b9089
minor: Change data_prepend to type-safe
2025-01-07 18:04:26 +01:00
Christian W. Zuckschwerdt
41146586a5
minor: Cleanup some decoder hex formatting
2024-10-28 23:47:20 +01:00
Christian W. Zuckschwerdt
5ff470d229
Refactor to type-safe data_append alternative ( #2667 )
2024-06-06 13:10:03 +02:00
Christian W. Zuckschwerdt
354ffde7dc
minor: Change data_t to align optimal
2023-03-19 16:27:05 +01:00
Christian W. Zuckschwerdt
a7c1d0c6a6
minor: Fix unaligned address, heap overflow in data array print
2023-03-18 21:15:51 +01:00
obones
88ae8f8473
Change literals to string const for strict discarded-qualifiers warnings ( #2379 )
...
- Change hard coded strings are "const" so any variable pointing to them must also have the const specifier to avoid a warning (from -Wdiscarded-qualifiers)
- Change local variables manipulating constant strings must also have the const qualifier
- Change hostport_param, fix remaining hostport_param args
Co-authored-by: Christian W. Zuckschwerdt <christian@zuckschwerdt.org >
2023-02-15 22:12:18 +01:00
Christian W. Zuckschwerdt
0ff7247336
Add output log level options ( #2282 )
2022-12-19 18:44:29 +01:00
Christian W. Zuckschwerdt
18f180252b
minor: Change data output flush to print wrapper
2022-12-04 21:19:56 +01:00
Christian W. Zuckschwerdt
f7e4d18436
minor: Fix and update Windows build
2022-04-22 15:59:38 +02:00
Christian W. Zuckschwerdt
eda74c17db
minor: Add visibility to dynamic lib exports ( closes #2010 )
...
Co-authored-by: "Rick Farina (Zero_Chaos)" <zerochaos@gentoo.org >
2022-03-18 08:15:48 +01:00
Christian W. Zuckschwerdt
305edc44f9
Refactor file outputs from data
2021-12-08 12:00:42 +01:00
Christian W. Zuckschwerdt
a26cffa81d
minor: Refactor file handle into each output
2021-12-08 10:50:05 +01:00
Christian W. Zuckschwerdt
3dd7dd02b7
minor: Add flush callback to file outputs
2021-12-08 10:25:05 +01:00
Christian W. Zuckschwerdt
acc891b28f
minor: fix msvc const** warning
2021-05-08 16:49:47 +02:00
Christian W. Zuckschwerdt
a608928446
minor: punctuation in license texts
2021-02-10 09:11:07 +01:00
Christian W. Zuckschwerdt
c33ee8ff29
Refactor output poll to mg_mgr
2020-10-25 11:50:46 +01:00
Christian W. Zuckschwerdt
ed7a743b40
Add conditional to data_make ( #1432 )
2020-07-15 16:19:06 +02:00
Christian W. Zuckschwerdt
192553d439
Update Doxygen
2019-11-09 15:27:58 +01:00
Christian W. Zuckschwerdt
4c335231a1
Clean up doc comments
2019-11-09 11:16:28 +01:00
Christian W. Zuckschwerdt
e4b061498d
Add const to some char ptrs
2019-10-17 18:06:42 +02:00
Christian W. Zuckschwerdt
313fdfe241
Add unboxed types for data
2019-10-17 15:37:25 +02:00
Christian W. Zuckschwerdt
7e2223cfda
Add atoiv helper, print shorter json floats, check syslog length
2019-03-26 11:36:51 +01:00
Christian W. Zuckschwerdt
ed2e8f1d32
Refactor data output json print for syslog
2019-03-21 15:40:08 +01:00
Christian W. Zuckschwerdt
b896da1f11
Allow // in device and output host params
2019-03-20 11:22:20 +01:00
Christian W. Zuckschwerdt
46aaa6fd89
Fix remove trailing spaces
2019-02-15 17:04:27 +01:00
Christian W. Zuckschwerdt
baace97a5a
Harmonize Doxygen comments; enable Autobrief
2019-02-13 16:36:32 +01:00
Christian W. Zuckschwerdt
1bed1426b4
Refactor csv_init to output_start
2018-12-19 11:56:34 +01:00
Christian W. Zuckschwerdt
ca844db7e1
Refactor abuf string builder
2018-12-16 19:11:45 +01:00
Christian W. Zuckschwerdt
b85a465cf4
Add data output poll callback
2018-12-16 18:19:01 +01:00
Christian W. Zuckschwerdt
a468f24f95
Make data_output_t public
2018-12-16 17:27:55 +01:00
Christian W. Zuckschwerdt
be1aa8c830
Change MSC to __restrict
2018-12-16 16:03:17 +01:00
Christian W. Zuckschwerdt
dfc1d79479
Add option for output tagging
2018-11-23 09:49:51 +01:00
Christian W. Zuckschwerdt
4e16269734
Fix csv output by initializing the fields after protocol options
2018-11-20 13:24:22 +01:00
Christian W. Zuckschwerdt
7362c80af2
Add data_retain reference counting
2018-11-18 11:00:42 +01:00
Christian W. Zuckschwerdt
b6d52dcd3b
Add data_add() function ( #787 )
2018-08-27 09:06:55 +02:00
Gisle Vanem
f997c5efd1
[MSVC] patch include/data.h ( #753 )
...
The rationale behind these patches are pretty much in the source comments. MSVC issues with:
*) "Variable Length Arrays"
*) 'restrict` keyword.
*) And '<strings.h>'.
2018-06-30 17:48:43 +02:00
Ryan Jarvis
8e8d5505be
Fix typos/misspellings
2018-05-01 12:11:00 +02:00
Christian W. Zuckschwerdt
74b8092240
allow ipv6 for syslog
2018-01-29 10:55:35 +01:00
Christian W. Zuckschwerdt
64c3177a7f
remove output_hander_t, printer_ctx indirection
2018-01-28 13:19:21 +01:00
Christian W. Zuckschwerdt
c30a2a66bf
adds a remote syslog output
2018-01-27 16:08:38 +01:00
Stanisław Pitucha
414ed77ac9
Include stdio for FILE
2016-01-18 11:25:44 +11:00
Erkki Seppälä
a3f7561a61
data: added CSV support
...
This requires the client code to first collect the permitted CSV fields
and use data_csv_init to pass them to the CSV builder.
2015-11-23 23:47:54 +02:00
Erkki Seppälä
06c4d39c4a
data: introduce auxiliary data as an argument
2015-11-23 23:47:54 +02:00
Erkki Seppälä
c7673f7cee
data: added formatting support
2015-11-23 23:47:54 +02:00
Erkki Seppälä
17eb918cde
data: provide a key-value-printer
2015-11-23 23:47:54 +02:00
Erkki Seppälä
44d0740a8c
General structural data support for generating (ie.) JSON
...
Adds a new interface for constructing, printing and releasing data_t*
structures. The data structure describes typed hierarchical data (much like
json) and then provides a function for dumping it to a file descriptor.
It comes with a small test.
2015-11-22 12:25:58 +02:00