From: Marcel H. <ma...@ho...> - 2007-01-25 08:41:48
|
Hi Bea, > Yes, it would definitely be much easier to ask the library instead of > working it out yourself. I do have an updated patch that I have > included below. It will return the appropriate flags for Put-Delete > and Create-Empty operations. (I don't really see the point of the > Create operation, but I have included it since it's defined in the > spec, and anyway it would be odd to have only one possible flag.) > > Unfortunately the OBEX_ObjectGetPutFlags() will return the "wrong" > value if called before the body headers are processed (e.g. in the > OBEX_EV_REQHINT), but since that's how the operations are defined in > the spec, there's not much that can be done about it. The programmer > will just have to deal with the possibility that when you get a Put > command at the OBEX_EV_REQHINT, it might actually turn out to be a > Delete at the OBEX_EV_REQ. I am fine with an API extension. Please work out the best patch and have Hendrik and Johan agree on it. Regards Marcel |