[Bug 30422] Provide GVariant-based access to all a{sv} things

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Apr 12 19:53:52 CEST 2012


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

Simon McVittie <simon.mcvittie at collabora.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Keywords|                            |patch

--- Comment #20 from Simon McVittie <simon.mcvittie at collabora.co.uk> 2012-04-12 10:53:52 PDT ---
Here are some more.

I think we should be a little more careful than adding these indiscriminately:
it would sometimes be better to have higher-level objects (like
TpCapabilities), particularly when the keys are D-Bus property names.

However, I think these three cases do make sense as a plain a{sv}. We could
always add accessors to the TpConnection later; for instance, for the keys
currently defined in telepathy-spec we could have

    /* Might be NULL */
    gchar *tp_connection_dup_error_server_message (TpConnection *);

    /* true if TP_CONNECTION_STATUS_REASON_REQUESTED or
       { user-requested: True } */
    gboolean tp_connection_get_error_user_requested (TpConnection *);

    /* hopefully non-NULL if
       TP_CONNECTION_STATUS_REASON_CERT_HOSTNAME_MISMATCH */
    gchar *tp_connection_get_error_expected_hostname (TpConnection *);
    gchar *tp_connection_get_error_certificate_hostname (TpConnection *);

(The debug-message is already represented in the GError.)

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



More information about the telepathy-bugs mailing list