Bug 26313 - return_from functions should verify that they are called for the right method
Summary: return_from functions should verify that they are called for the right method
Status: RESOLVED WONTFIX
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-glib (show other bugs)
Version: git master
Hardware: Other All
: medium enhancement
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-28 23:39 UTC by Olivier Crête
Modified: 2010-01-29 05:27 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Olivier Crête 2010-01-28 23:39:44 UTC
I just found a bug where I used the wrong "return_from" generated function. There should be g_return_if_fail() code that makes sure that the right one is called. Otherwise the type safety is useless.
Comment 1 Simon McVittie 2010-01-29 05:27:22 UTC
Can't be fixed, sorry. These functions can't find out which method implementation they're being called from.

(More precisely, fixing this isn't possible within dbus-glib; we'd have to add a parallel API as a layer over dbus-glib.)


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.