Bug 47040

Summary: Add macros to check which API we are using
Product: Telepathy Reporter: Guillaume Desmottes <guillaume.desmottes>
Component: tp-glibAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED DUPLICATE QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 31668    

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.