[Bug 19423] Generate stringification functions for enums

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon May 10 17:56:56 CEST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=19423

--- Comment #1 from Simon McVittie <simon.mcvittie at collabora.co.uk> 2010-05-10 08:56:56 PDT ---
For the record: the reason we can't have a GEnum or GFlags type for D-Bus
things is that putting unrecognised values in these is considered to be a
programming error, whereas our enum/flags annotations on D-Bus are merely
advisory and we have to be prepared to receive whatever the other end sends us.

At the D-Bus level, it's just an integer of the appropriate type - Telepathy
usually uses unsigned 32-bit, but Geoclue uses signed 32-bit, and the Telepathy
DTMF interface uses an unsigned byte.

In particular, the other end might be using a version of telepathy-python that
implements a newer spec than we do, so its in-range values might be
out-of-range from our perspective.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list