~vcs-imports/nut:tracking

Last commit made on 2019-02-11
Get this branch:
git clone -b tracking https://git.launchpad.net/~vcs-imports/nut

Branch merges

Branch information

Name:
tracking
Repository:
lp:~vcs-imports/nut

Recent commits

663dd9f... by Daniele Pezzini <email address hidden>

libupsclient: bump version as per recent changes

- addition of upscli_{read,send}line_timeout(),
- upscli_cleanup() -> upcli_cleanup(void)

Note: only increase 'current' and not 'age', because the upscli_cleanup() change could (potentially) make it not compatible with previous versions.

a31e5e4... by Daniele Pezzini <email address hidden>

libupsclient: generate manpages for upscli_{read,send}line_timeout()

To keep things simple, at least for now, only generate manpages and not html pages (and, as such, don't even think of using our linkman AsciiDoc macro with those functions, to avoid dead links).

787d584... by Daniele Pezzini <email address hidden>

upsd: ignore case of UUID4 in tracking API

Also, remove some nesting in tracking_del().

de0deb3... by Daniele Pezzini <email address hidden>

common: massage default timeouts

Rename the default timeout used in network operations by upsclient and nut-scanner to be more specific: from DEFAULT_TIMEOUT to DEFAULT_NETWORK_TIMEOUT.
Plus, make the default timeout used when retrieving the result of an INSTCMD/SET VAR with TRACKING enabled a common #define'd value (DEFAULT_TRACKING_TIMEOUT), and use it also to publish the default value of the -t option in the help messages of upscmd and upsrw.

As suggested by Charles Lepple.

7c7bc13... by Daniele Pezzini <email address hidden>

net-protocol: also return TRACKING between OK and <id>, for INSTCMD/SET VAR

5a5c8c8... by Daniele Pezzini <email address hidden>

upsd: refine the tracking API

Add a couple of functions to change in a predictable way the value of the general enablement of tracking and make it visible only inside upsd.c.
Also, move the tracking type (tracking_t) and the list of items inside upsd.c.

496d2c6... by Daniele Pezzini <email address hidden>

Move from CMDSET_STATUS / STATUS_ID to TRACKING

This is just a big, big rename, no code changes.

0fdc984... by Daniele Pezzini <email address hidden>

dstate: *really* fix handling of INSTCMD's optional parameters

Erroring out on `INSTCMD <cmdname>` doesn't seem like a good idea...

e14c739... by Daniele Pezzini <email address hidden>

upsd: move sanity checks of cmdset_status_get() after declaration of vars

Also, drop some nesting in that function.

57de34f... by Daniele Pezzini <email address hidden>

upsd: drop unnecessary/unused global