Sure. There's already odp_version.h which specifies the API version (combination of three digits). Send a patch which adds those version check macros.
-Petri > -----Original Message----- > From: [email protected] [mailto:lng-odp- > [email protected]] On Behalf Of ext Taras Kondratiuk > Sent: Friday, September 05, 2014 11:29 AM > To: [email protected] > Subject: [lng-odp] Exposing ODP API version to application > > Hi > > API and header names will evolve and change continuously. Some changes > may be not backward compatible. Application will need some mechanism to > support at least a few recent revisions of ODP API. For this we can use > simple versioning. > > #include <odp_version.h> > > #if ODP_VERSION <= 100 > > /* Call ODP v1.0 API */ > odp_queue_enq(queue, buf); > > #else > > /* Call a new API */ > odp_queue_enq(queue, buf, sync_flag); > > #endif > > > What are you thoughts on this? > > _______________________________________________ > lng-odp mailing list > [email protected] > http://lists.linaro.org/mailman/listinfo/lng-odp _______________________________________________ lng-odp mailing list [email protected] http://lists.linaro.org/mailman/listinfo/lng-odp
