On 11/08/2011 11:23 AM, Radek Novacek wrote:
Both run_uri and run_string commands should return string in this
format:
OK\n<data>
or
FAILED\n<code>\n<data>
Where<data> is arbitrary optional data per backend and<code> is
error code from the backend.
Wouldn't it be better to return some kind of
struct? String isn't good
to handle multiple various data types.
Something like:
{
int code // 0 = ok, >1 failed
string data
}
Is it possible?
RR