---
include/openobex/obex.h | 2 ++
lib/obex_incl.h | 4 ++++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/include/openobex/obex.h b/include/openobex/obex.h
index 096d5a2..e773c12 100644
--- a/include/openobex/obex.h
+++ b/include/openobex/obex.h
@@ -65,6 +65,7 @@ typedef struct obex_object obex_object_t;
/*
* OBEX API (deprecated)
*/
+#if defined(OPENOBEX_DEPRECATED)
/** The user event callback.
* \deprecated Use #obex_event_cb_t and its functions instead.
* \param handle the obex handle
@@ -85,6 +86,7 @@ OPENOBEX_SYMBOL(void) OBEX_SetUserCallBack(obex_t *self,
OPENOBEX_SYMBOL(obex_t *) OBEX_ServerAccept(obex_t *server,
obex_event_t eventcb, void * data);
#define OBEX_HandleInput(self, timeout) OBEX_Work((self), ((timeout)*1000L))
+#endif
/*
* OBEX API
diff --git a/lib/obex_incl.h b/lib/obex_incl.h
index ae95e59..dbca28e 100644
--- a/lib/obex_incl.h
+++ b/lib/obex_incl.h
@@ -6,6 +6,10 @@
/* This overides the define in openobex/obex.h */
#define OPENOBEX_SYMBOL(retval) LIB_SYMBOL retval CALLAPI
+
+/* This add the deprecated API items */
+#define OPENOBEX_DEPRECATED 1
+
#include <openobex/obex.h>
#endif
--
1.7.5.4
------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Openobex-users mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/openobex-users