summaryrefslogtreecommitdiff
path: root/telepathy-glib/dbus-properties-mixin.c
Commit message (Collapse)AuthorAgeFilesLines
* update UNRELEASEDGuillaume Desmottes2013-09-241-1/+1
|
* tp_dbus_properties_mixin_dup_all: make publicSimon McVittie2013-09-131-5/+5
| | | | | | | | | There's no real reason not to - anything that implements D-Bus properties is clearly going to have this method in some form. Also, my next commit needs it. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69283 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
* _tp_dbus_properties_mixin_get_all: expose to internal codeSimon McVittie2012-10-081-12/+34
| | | | | | | | | | The self-handle test can't exercise certain situations without this, except by pretending to be an obsolete CM, which means we don't test the non-obsolete code path properly. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55666 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
* Stop using TP_ERRORSSimon McVittie2012-05-021-9/+9
| | | | We deprecated this in 0.11.
* many fixes to documentation commentsJonny Lamb2012-04-061-1/+1
| | | | | | | | fd.o#48363 was opened which complains about lots of documentation problems (which g-ir-scanner finds). While I was at it I did some grepping to find yet more problems. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* Tell GI to skip tp_svc_interface_get_dbus_properties_infoWill Thompson2011-11-231-1/+1
| | | | | The DBus properties mixin is unusable from introspected code at the moment.
* Use _unref instead of _free _destroy when possible.Xavier Claessens2011-11-161-1/+1
| | | | | | | | | | | Replace g_(ptr_)array_free (foo, TRUE) and g_hash_table_destroy with respectively g_(ptr_)array_unref (foo) and g_hash_table_unref. I used this command to generate this patch: for f in `find -name "*.c"`; do sed -i $f -re 's/g_ptr_array_free \(([^ ,]+), TRUE\)/g_ptr_array_unref \(\1\)/'; done See Danielle's blog for explanation of possible bug _free can do: http://blogs.gnome.org/danni/2011/11/16/mistakes-with-g_value_set_boxed/
* Version 0.15.8telepathy-glib-0.15.8Will Thompson2011-10-111-2/+2
|
* Expose tp_dbus_properties_mixin_set()Will Thompson2011-10-111-38/+66
| | | | | | | This allows the application to set a property as if in response to a D-Bus call. This turned out to not actually be needed for this branch, but it is needed if we want MC to use TpDBusPropertiesMixin. (See also, fd.o#32416.)
* Expose tp_svc_interface_get_dbus_properties_infoWill Thompson2011-10-101-2/+14
| | | | | | I find myself wanting this while writing RoomConfig support. Admittedly once that code is in tp-glib it won't strictly need to be exported, but I think it's harmless enough.
* DBusProperties: document set_dbus_prop_info as nicheWill Thompson2011-10-101-0/+3
| | | | Almost no-one ever needs to call this.
* Version 0.15.6telepathy-glib-0.15.6Xavier Claessens2011-09-301-2/+2
|
* Add tp_dbus_properties_mixin_emit_properties_changed_varargs()Will Thompson2011-09-061-0/+35
|
* _emit_properties_changed(): use annotationsWill Thompson2011-09-061-62/+89
| | | | | | Given that we have necessary information in introspection XML to choose between including the property in Changed and in Invalidated, we may as well use it.
* DBusPropertiesMixin: add flags for Changed annotationWill Thompson2011-09-061-3/+26
|
* Add tp_dbus_properties_mixin_emit_properties_changedWill Thompson2011-09-061-3/+96
| | | | | It's a bit annoying to use because you have to define the two arrays ahead of time, but hey.
* Extract guts of tp_dbus_properties_mixin_getWill Thompson2011-09-061-36/+46
| | | | | This will be useful in implementing _emit_properties_changed without it having to repeatedly find the IfaceInfo structure.
* tp_dbus_properties_mixin_get: add parameter guardsWill Thompson2011-09-061-0/+5
| | | | These reflect conditions under which this function will currently crash.
* fill_properties_hash: make assertions more usefulWill Thompson2011-09-061-6/+15
| | | | | | | | | | | Previously if you messed up the arguments to this function (say, you passed a fully-qualified property name rather than a interface_name, property_name pair), you'd get an unhelpful assertion about G_IS_VALUE() failing. Now you get a nice critical about the specific property which couldn't be retrieved, listing the interface name and property name and giving the error.
* Fix set-but-not-used warnings with --disable-debugWill Thompson2011-06-231-9/+7
| | | | Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
* DBusPropertiesMixin: Improve undefined interface messageWill Thompson2010-10-041-1/+2
| | | | | | | | | I constantly forget to do this, and it takes me ages to figure out what I'm doing wrong. Typically I faff around checking the codegen stuff, make clean and rebuild a few times, grep for what's done for other interfaces, and then finally remember. Reviewed-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* Skip tp_dbus_properties_mixin_implement_interface from introspectionSimon McVittie2010-09-151-1/+3
| | | | | There's no way to describe the lifetime of the getter and setter in current g-i: in principle they should be (scope infinite).
* TpDBusPropertiesMixin: gracefully deal with omitted getter/setterSimon McVittie2010-09-101-1/+17
| | | | | | | | Strictly speaking this is a programming error, but this is consistent with how we deal with D-Bus methods. (TpTestsSimpleAccount doesn't have a setter yet, leading it to crash if a property is set.)
* Fix various broken cross-references in documentationSimon McVittie2010-08-231-1/+1
|
* Prepare version 0.11.11telepathy-glib-0.11.11Simon McVittie2010-07-261-1/+1
|
* tp_dbus_properties_mixin_fill_properties_hash: addSimon McVittie2010-06-291-37/+85
|
* Use G_STATIC_ASSERT instead of tp_verify()Simon McVittie2010-06-071-1/+1
|
* Prepare release 0.11.5telepathy-glib-0.11.5Simon McVittie2010-05-101-2/+2
|
* Include generated GEnum/GFlags types in documentationSimon McVittie2010-05-041-0/+11
|
* Use macros WARNING(), etc., consistently (within the library)Simon McVittie2010-04-301-5/+5
|
* Put various files into debug domainsSimon McVittie2010-04-301-0/+3
|
* Instead of guarding against callbacks and pointers being different sizes, ↵Simon McVittie2010-04-051-3/+7
| | | | | | | | | | | just compile-time-assert it In practice all sorts of code will fail if this compile-time assertion fails. Also, the union we previously used is picked up by gtk-doc 1.14, which complains that we haven't documented it... rather than trying to work around that, we can just get rid of it, and reinstate it in the unlikely event that we later care about a platform where callbacks are not the same size as pointers.
* tp_dbus_properties_mixin_make_properties_hash: add missing call to va_endSimon McVittie2009-12-011-0/+2
|
* TpDBusPropertiesMixin: rename @interface to @iface throughoutSimon McVittie2009-10-161-12/+12
| | | | | This partially works around the fact that some system header on Windows defines interface as a macro.
* dbus-properties-mixin.c: fixed error message on write-only propertiesPekka Pessi2009-10-061-1/+1
| | | | Signed-off-by: Will Thompson <will.thompson@collabora.co.uk>
* Document the allocation model for tp_dbus_properties_mixin_make_properties_hashSimon McVittie2009-07-281-0/+9
| | | | This makes it part of our ABI guarantee.
* Prepare version 0.7.15telepathy-glib-0.7.15Simon McVittie2008-09-181-1/+1
| | | | Signed-Off-By: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
* _make_properties_hash: Don't point property at garbage at the end of the loopWill Thompson2008-09-171-2/+18
| | | | | Also, add an assertion which should help catch off-by-one errors by the caller.
* Document tp_dbus_properties_mixin_make_properties_hashWill Thompson2008-09-151-0/+18
|
* Move tp_dbus_properties_mixin_make_properties_hash to the correct fileWill Thompson2008-09-151-0/+36
|
* DBusPropertiesMixin: no mixin class is treated as all fields being NULLWill Thompson2008-09-091-2/+3
|
* DBusPropertiesMixin: move mixin->interfaces != NULL checks out of loopsWill Thompson2008-09-091-8/+12
|
* dbus_properties_mixin_class_init: document offset=0Will Thompson2008-09-091-0/+6
|
* Allow DBusPropertiesMixinClass to be omitted from classes.Will Thompson2008-09-091-28/+33
| | | | | When it is missing, it is treated as if it were present but with no static interfaces listed.
* DbusPropertiesMixin: Cosmetic fix to a critical errorSjoerd Simons2008-08-191-1/+1
|
* Add tp_dbus_properties_mixin_get()Simon McVittie2008-07-231-26/+62
| | | | 20080723215925-53eee-dbd3c273d1fbf7de5a413f862f3dc101184624ea.gz
* Remove unnecessary argument from dbus-properties-mixin internal functionsSimon McVittie2008-07-231-9/+7
| | | | 20080723215825-53eee-61df7c9d4162c1510436b7197aa2ba1d532c3d85.gz
* Raise Telepathy errors from TpDBusPropertiesMixin for nowSimon McVittie2008-07-181-7/+8
| | | | | | | | I wanted to raise D-Bus core errors, since TpDBusPropertiesMixin isn't conceptually anything to do with Telepathy, but Jonny pointed out <https://bugs.freedesktop.org/show_bug.cgi?id=16776>. 20080718180710-53eee-2b8637a86344d64f04010af0a61aa7351c9756bb.gz
* TpDBusPropertiesMixin: on a successful Set(), return nothing, not the value ↵Simon McVittie2008-07-011-1/+1
| | | | | | that was set 20080701203044-53eee-1d594b7f83073a23136ba0c23bf1308fd354d726.gz
* TpDBusPropertiesMixin: use the transformed value if a property's type has to ↵Simon McVittie2008-07-011-0/+3
| | | | | | be transformed 20080701202935-53eee-95433f7d2b6935a410595a701935e6de642a55cb.gz