From: Hendrik Sattler <sattler2000@gm...> - 2006-10-15 15:38:21
You deliver stream events where cmd is set to OBEX_CMD_CONNECT. It should be
the current cmd though.
Why is this a problem? I find it easier to first parse the cmd and then handle
the event (less code jumping).
However, in lib/obex_object.c, object->opcode is not defined for the stream
Can this be fixed somehow?
Currently, I use a work-around:
static int last_obex_cmd = 0;
if (event == OBEX_EV_STREAMAVAIL)
obex_cmd = last_obex_cmd;
last_obex_cmd = obex_cmd;
But I would rather avoid that...
Get latest updates about Open Source Projects, Conferences and News.