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 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Openobex-users mailing list [email protected] http://lists.sourceforge.net/lists/listinfo/openobex-users
