chore, hygiene, rename pop_q() off sub.c to make_qqq() which is more intuitive

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, provide subq_flush_cb()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, upon shutdown (reco_cb() with NULL w) close twsc's socket and call the callback manually

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, refactor clean up work into twsc_conn_clos()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, free sdefs from the subq upon twsc_conn_clos()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
chore, hygiene, don't call fini_tws() in main function

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, soften the return code contract upon cont_cb() in twsxml deserialiser, anything but 0 indicates we don't want the instrument

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
cosmetics, discard unreferenced local variable in ev_io_shut()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'fix/memleaks' into next

* fix/memleaks:
  cosmetics, discard unreferenced local variable in ev_io_shut()
  minor, soften the return code contract upon cont_cb() in twsxml deserialiser, anything but 0 indicates we don't want the instrument
  chore, hygiene, don't call fini_tws() in main function
  minor, free sdefs from the subq upon twsc_conn_clos()
  minor, refactor clean up work into twsc_conn_clos()
  minor, upon shutdown (reco_cb() with NULL w) close twsc's socket and call the callback manually
  minor, provide subq_flush_cb()
  chore, hygiene, rename pop_q() off sub.c to make_qqq() which is more intuitive
minor, use EV_CUSTOM to propagate hangups in twsc_cb() and EV_CLEANUP also along with NULL object to notify reco_cb()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, implement SIGHUP reconnection in terms of reco_cb()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'feat/sighup' into next

* feat/sighup:
  minor, implement SIGHUP reconnection in terms of reco_cb()
  minor, use EV_CUSTOM to propagate hangups in twsc_cb() and EV_CLEANUP also along with NULL object to notify reco_cb()
minor, register main name spaces only once

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, change logging/debugging output of xml ns assignment, adhering to our 4 letter codes

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
cosmetics, adhere to 4 letter codes in __sub_sdef() too

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'code/hygiene' into next

* code/hygiene:
  cosmetics, adhere to 4 letter codes in __sub_sdef() too
  minor, change logging/debugging output of xml ns assignment, adhering to our 4 letter codes
  minor, register main name spaces only once
minor, refactor log opening, all logging related stuff is in logger.c now

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, rotate the logfile upon sighup

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, open log files in append mode

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, return code (and preserve errno) upon open_logerr() to conditionalise on that

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>