Bug 47040 - Add macros to check which API we are using
Summary: Add macros to check which API we are using
Status: RESOLVED DUPLICATE of bug 49400
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-glib (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tp-glib-1.0
  Show dependency treegraph
 
Reported: 2012-03-07 02:07 UTC by Guillaume Desmottes
Modified: 2012-05-08 00:32 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Guillaume Desmottes 2012-03-07 02:07:29 UTC
I'm a huge fan of GLib/Gtk's new macros warning you when using API which is older than a specific version or newer than another version. See for example:
AC_DEFINE(GDK_VERSION_MIN_REQUIRED, GDK_VERSION_3_0, [Ignore post 3.0 deprecations])
AC_DEFINE(GDK_VERSION_MAX_REQUIRED, GDK_VERSION_3_0, [Prevent post 3.0 APIs])

Would be ace to have the same magic in tp-glib!
Comment 1 Guillaume Desmottes 2012-04-10 06:07:11 UTC
(That's actually GDK_VERSION_MAX_ALLOWED)

We should probably introduce those macros in 'next' directly as we are about to break the API.
Comment 2 Guillaume Desmottes 2012-05-03 00:27:32 UTC
Simon proposed a patch in bug #49400

*** This bug has been marked as a duplicate of bug 49400 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.