Re: [Nut-upsdev] nutdrv_qx interface change proposal item_t::preprocess

2015-05-22 Thread Nick Ma.
Hi and thank you for your effort. You are very close to what I want to achieve, but I was already aware of the impossibility of querying direct from a command. I wanted the following (both would be covered by your changes): 1. preprocess an item_t in the direction: NUT-DEVICE in order to be

Re: [Nut-upsdev] nutdrv_qx interface change proposal item_t::preprocess

2015-05-18 Thread hyo...@gmail.com
mmh.. At the moment there are 3 distinct preprocess functions that operate on 2 different types: - info_rw_t - preprocess(); - item_t - preprocess(); - item_t - preprocess_answer(). For info_rw_t: range/enum values are preprocessed just to see if that specific value is to be used or not