Hi, > >> Would it be possible to simultaneously release a new version of > >> ObexFTP that builds with pkg-config instead of openobex-config? > > > > The next ObexFTP release will be together with OpenOBEX 1.1, yes. > > Have you made any changes to the way that the configure script checks > for USB support? > http://sourceforge.net/mailarchive/forum.php?thread_id=8789178&forum_id=9713 > included a patch that uses OPENOBEX_CFLAGS in case the libopenobex is in > a non-standard location. However, I don't think that the test is > correct because it is only checking to see if the header file includes a > struct which is related to USB which will be true regardless of whether > or not libopenobex was compiled with or without USB support. > > I understand that when OpenFTP uses pkg-config it will automatically > know whether or not to link with libusb, but won't there still have to > be some kind of test to determine whether or not to define HAVE_USB? > Should ObexFTP use the same USB test as ObenOBEX?
you don't need this. If OBEX_InterfaceConnect() and OBEX_TRANS_USB are present than it supports USB. However this is not really that important, because the OBEX_TRANS_USB can be defined in a compat file like this: #ifndef OBEX_TRANS_USB #define OBEX_TRANS_USB 6 #endif So you check for OBEX_InterfaceConnect() and if it is not there you implement you own function in a compat file that returns an error. With this method you avoid stupid ifdefs all around your code and don't have to worry about anything. However you need to check the errors correctly of course. Regards Marcel ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Openobex-users mailing list [email protected] http://lists.sourceforge.net/lists/listinfo/openobex-users
