[PATCH 04/10] libctrl: Add macros to help define commands