summaryrefslogtreecommitdiff
path: root/src/shared/format-table.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #13216 from poettering/busctl-format-tableLennart Poettering2019-07-291-0/+7
|\ | | | | port "busctl list" to format-table.h
| * format-table: add TABLE_PID cell typeLennart Poettering2019-07-291-0/+4
| |
| * format-table: add table_fill_empty() to fill in empty cells until the ↵Lennart Poettering2019-07-291-0/+2
| | | | | | | | specified column is reached
| * format-table: optionally show a specific string in empty cellsLennart Poettering2019-07-291-0/+1
| | | | | | | | | | For some cases it might make sense to show "-" instead of just spaces for empty cells.
* | table: add TABLE_UINT8 or friendsYu Watanabe2019-07-291-0/+4
| |
* | table: add TABLE_IN_ADDR and TABLE_IN6_ADDRYu Watanabe2019-07-291-0/+2
|/
* Merge pull request #13074 from poettering/format-tree-manyLennart Poettering2019-07-161-1/+13
|\ | | | | table_add_many() improvements
| * format-table: add ability to set cell attributes within table_add_many()Lennart Poettering2019-07-161-0/+12
| | | | | | | | | | | | | | table_add_many() is so much shorter and easier to read than table_add_cell() with its accessors. Let's teach table_add_many() more tricks, so that reverting to table_add_cell() is not needed that often anymore.
| * format-table: fix parameter nameLennart Poettering2019-07-161-1/+1
| |
* | format-table: add TABLE_TIMESTAMP_UTC and _RELATIVEYu Watanabe2019-07-161-0/+2
| |
* | format-table: add TABLE_TIMESPAN_MSECYu Watanabe2019-07-161-0/+1
|/
* table: introduce FORMAT_BPS typeYu Watanabe2019-06-191-0/+1
|
* table: add TABLE_IFINDEX typeYu Watanabe2019-05-291-0/+1
|
* table: add more basic typesYu Watanabe2019-05-291-0/+4
|
* table: add teble_add_string_cell()Yu Watanabe2019-05-291-0/+1
|
* format-table: correct prototypeLennart Poettering2019-05-081-1/+1
|
* format-table: add option to uppercase cells on displayLennart Poettering2018-12-031-0/+1
| | | | | | | | | | | This adds a per-cell option for uppercasing displayed strings. Implicitly turn this on for the header row. The fact that we format the table header in uppercase is a formatting thing after all, hence should be applied by the formatter, i.e. the table display code. Moreover, this provides us with the benefit that we can more nicely reuse the specified table headers as JSON field names, like we already do: json field names are usually not uppercase.
* format-table: optionally covert/output table to JSONLennart Poettering2018-12-031-0/+4
|
* format-table: add calls to query the data in a specific cellLennart Poettering2018-11-301-0/+3
|
* format-table: add an API for getting the cell at a specific row/columnLennart Poettering2018-11-301-0/+2
|
* format-table: add table_update() to update existing entriesLennart Poettering2018-11-301-0/+2
|
* format-table: optionally allow reversing the sort order for a columnLennart Poettering2018-11-301-0/+1
|
* format-table: add option to store/format percent and uint64_t values in cellsLennart Poettering2018-11-301-0/+2
|
* format-table: optionally make specific cells clickable linksLennart Poettering2018-11-301-0/+1
|
* Move various files that don't need to be in basic/ to shared/Zbigniew Jędrzejewski-Szmek2018-11-201-0/+62
This doesn't have much effect on the final build, because we link libbasic.a into libsystemd-shared.so, so in the end, all the object built from basic/ end up in libsystemd-shared. And when the static library is linked into binaries, any objects that are included in it but are not used are trimmed. Hence, the size of output artifacts doesn't change: $ du -sb /var/tmp/inst* 54181861 /var/tmp/inst1 (old) 54207441 /var/tmp/inst1s (old split-usr) 54182477 /var/tmp/inst2 (new) 54208041 /var/tmp/inst2s (new split-usr) (The negligible change in size is because libsystemd-shared.so is bigger by a few hundred bytes. I guess it's because symbols are named differently or something like that.) The effect is on the build process, in particular partial builds. This change effectively moves the requirements on some build steps toward the leaves of the dependency tree. Two effects: - when building items that do not depend on libsystemd-shared, we build less stuff for libbasic.a (which wouldn't be used anyway, so it's a net win). - when building items that do depend on libshared, we reduce libbasic.a as a synchronization point, possibly allowing better parallelism. Method: 1. copy list of .h files from src/basic/meson.build to /tmp/basic 2. $ for i in $(grep '.h$' /tmp/basic); do echo $i; git --no-pager grep "include \"$i\"" src/basic/ 'src/lib*' 'src/nss-*' 'src/journal/sd-journal.c' |grep -v "${i%.h}.c";echo ;done | less