summaryrefslogtreecommitdiffstats
path: root/libsmartcols
Commit message (Collapse)AuthorAgeFilesLines
* libsmartcols: keep JSON field names lower-caseKarel Zak2015-06-051-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: add --jsonKarel Zak2015-06-051-6/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add JSON output formatKarel Zak2015-06-046-24/+242
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: fix gtk-docs related warningsKarel Zak2015-05-281-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/colors: use libtinfo to check terminal capabilityKarel Zak2015-02-271-2/+3
| | | | | | | | | | | | | | | The current implementation assumes that all terminals supports colors and users are forcet to use terminal-colors.d/ to disable colors for some terminals. This patch checks for maximal supported colors for the current terminal and colors are automatically disabled for terminals like vt100. The patch moves lib/colors.c from libcommon.la to libtcolors.la to avoid collisions with another utils. Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: remove assert(arg) from public functionsKarel Zak2015-02-165-103/+3Star
| | | | | Reported-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: remove unnecessary check [coverity scan]Karel Zak2015-01-291-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: fix two "maybe be" duplications in program commentsBenno Schulenberg2015-01-261-16/+14Star
| | | | | | Also improve the grammar of the comments and some neighbours. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* libsmartcols: (docs) improve section descriptionsKarel Zak2015-01-136-6/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update API docs yearsKarel Zak2015-01-131-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: cleanup gtk-docs warningsKarel Zak2015-01-131-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: use ASCII art for trees rather than paddingKarel Zak2015-01-071-35/+97
| | | | | | | Based on patch from Roman Odaisky. References: https://launchpad.net/bugs/1406133 Signed-off-by: Karel Zak <kzak@redhat.com>
* maint: fix shadow declarationSami Kerola2015-01-071-3/+3
| | | | | | | | | | | | | | | | This change fixes all shadow declarations. The worth while to mention fix is with libfdisk sun geometry. It comes from bitops.h cpu_to_be16 macro that further expands from include/bits/byteswap.h that has the shadowing. libfdisk/src/sun.c:961:173: warning: declaration of '__v' shadows a previous local [-Wshadow] libfdisk/src/sun.c:961:69: warning: shadowed declaration is here [-Wshadow] libfdisk/src/sun.c:961:178: warning: declaration of '__x' shadows a previous local [-Wshadow] libfdisk/src/sun.c:961:74: warning: shadowed declaration is here [-Wshadow] That could have caused earlier some unexpected results. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* libsmartcols: fix docs namespaceKarel Zak2014-11-261-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: cleanup library symbol filesKarel Zak2014-11-201-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: clean up debug, add help debug maskKarel Zak2014-11-032-10/+20
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* textual: fix couple typos in commentsSami Kerola2014-10-011-1/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* libs/debug: accept human readable names for _DEBUG=Ondrej Oprala2014-08-131-0/+9
| | | | | | | | | | For example $ LIBMOUNT_DEBUG=tab,cache findmnt to debug only TAB and CACHE subsystem. Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: avoid variable dereference after releaseSami Kerola2014-07-131-1/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* textual: fix some typosSami Kerola2014-07-131-1/+1
| | | | | | | Found with misspell-check version 2.0d. Reference: https://github.com/lyda/misspell-check Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* libsmartcols: add note about deallocationsKarel Zak2014-06-303-3/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: move libsmartcols.so to /lib if they existsKarel Zak2014-06-161-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add debug messagesKarel Zak2014-06-066-19/+124
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: fix docsKarel Zak2014-06-031-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: rename libs xml/version.xml to xml/version-utils.xmlKarel Zak2014-06-033-3/+3
| | | | | | | It seems that gtk-docs stuff is confused when we use version.xml (package version) and xml/version.xml (library version functions). Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: clean up test.c exampleKarel Zak2014-05-301-56/+28Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add scols_sort_table()Karel Zak2014-05-208-2/+179
| | | | | | | | | | | | | | | | | | | * add pointer to column cmp() function [scols_column_set_cmpfunc()] * allow to store per-cell application private data (to make it possible to sort tables on data independent on cell output data) [scols_cell_set_userdata() ...] * make it possible to access line cell by column [scols_line_get_column_cell()] Sort and cmp() stuff based on patches from Shakur Shams Mullick. Co-Author: Shakur Shams Mullick <shakursmullick@gmail.com> Signed-off-by: Shakur Shams Mullick <shakursmullick@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: use new colors APIKarel Zak2014-05-133-8/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: (docs) reorder functions in version sectionKarel Zak2014-05-071-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: check recount_widths() return valueKarel Zak2014-05-061-1/+5
| | | | | Reported-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: fix buffer usageKarel Zak2014-04-181-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: don't colorize tree ascii artKarel Zak2014-04-151-8/+40
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: don't mix width (in cells) and size (in bytes)Karel Zak2014-04-151-7/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: resuse buffer for encoded dataKarel Zak2014-04-151-9/+30
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: fix paddingKarel Zak2014-04-141-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: use buffer struct in table_print.cKarel Zak2014-04-141-110/+208
| | | | | | | | * consolidate code in table_print.c * make the code easy to extend * use return codes everywhere Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: improve line and cell separatorsKarel Zak2014-04-143-17/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add separator getters/settersOndrej Oprala2014-04-147-9/+125
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* libsmartcols: rewrite test code to tree(1)-like utilKarel Zak2014-04-081-114/+190
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: improve docsKarel Zak2014-04-078-11/+33
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add debug and version functionsKarel Zak2014-04-079-4/+146
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add missing COPYING fileKarel Zak2014-04-041-0/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: fix testKarel Zak2014-04-041-9/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: small fixes to libsmartcolsKarel Zak2014-04-041-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: clean up flags usageKarel Zak2014-04-037-151/+139Star
| | | | | | | | | * rename flags functions to scols_table_enable_* * rename *_no_foo() functions to _nofoo() * output formats are mutually exclusive, so don't use flags there * don't assume symbols in scols_new_table(), use scols_table_set_symbols() Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: init symbols when necessaryKarel Zak2014-04-032-2/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: clean up flagsKarel Zak2014-04-031-5/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: always deallocate in scols_reset_cell()Karel Zak2014-04-032-14/+8Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: include stdioOndrej Oprala2014-04-039-8/+9
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* libsmartcols: add scols_table_is_empty()Ondrej Oprala2014-04-034-0/+14
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>