control: define and export control_buildall(), control_cleanupall() to factorize
commit5b9c2b0653b8768cef6017da1ba6a2a51261f3ea
authorG.raud <graud@gmx.com>
Tue, 11 Jun 2013 15:04:34 +0000 (11 17:04 +0200)
committerG.raud <graud@gmx.com>
Sun, 7 Jul 2013 06:45:57 +0000 (7 08:45 +0200)
tree906b031911a5aedba8d66c6fedec4069227db93b
parent4c10f89f7bcd311a93e6117eb2f4d69766a7311a
control: define and export control_buildall(), control_cleanupall() to factorize

control.c: put the definitions (from jackspa-cli.c) there:
- some changes, notably less pointer indirection

controls.h: define a controls_t type as control_t** and not as an array to make
it compatible with C++ as extern "C" (arguments that point to unbounded arrays
are invalid C++)

jackspa-cli.c: delete the definitions of build_controls() and
cleanup_controls() and use the new names

njackspa.c: rename build_controls(), cleanup_controls() to init_window(),
cleanup_windows() and call the new functions
control.c
control.h
jackspa-cli.c
njackspa.c