summaryrefslogtreecommitdiff
path: root/src/mcd-dbusprop.c
Commit message (Collapse)AuthorAgeFilesLines
* McdAccount: add a way to tell property setters that storage has already been ↵Simon McVittie2012-09-121-1/+2
| | | | | | | | | | | updated This lets us get AccountPropertyChanged signals for more attributes changed via McpAccountStorage::altered-one, which would previously be suppressed because altered-one's API is that the storage plugin has already updated the McdStorage before emitting the signal. The property setter would then notice that the value was the same as in McdStorage, and assume that that meant it hadn't actually changed.
* Use G_VALUE_INIT instead of { 0 }Simon McVittie2012-09-071-1/+1
| | | | | | | | We already depend on GLib 2.30, which is new enough. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54633
* mcd-dbusprop: remove support for filtering property setting through an ACLSimon McVittie2012-09-071-106/+0
| | | | | | | | | | This provided an asynchronous API for getting and setting properties, which nothing actually calls into, and nothing in MC supports setting properties asynchronously anyway. Into the bin it goes! Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54633
* Use telepathy-glib meta-headersSimon McVittie2012-05-141-2/+2
| | | | | | Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Jonny Lamb <jonny.lamb@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49753
* Consistently include config.h in every .c fileSimon McVittie2012-05-081-0/+2
| | | | | | This is best-practice, and in particular it stops us from accidentally redefining GLIB_VERSION_MIN_REQUIRED, GLIB_VERSION_MAX_ALLOWED by including glib.h before (something that includes) config.h.
* Use TP_ERROR instead of long-deprecated TP_ERRORSSimon McVittie2012-05-081-5/+5
|
* Use _unref instead of _free _destroy when possible.unrefXavier 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/
* Remove libmcclientWill Thompson2011-09-011-3/+0
| | | | | | | This entails doing a little more code generation for the daemon: some bits depended on generated code from libmcclient, and there was an error enum used in exactly one place. But broadly speaking this just deletes a tonne of code and documentation.
* Make it possible to optionally implement interfaces on a MC objectDanielle Madeley2011-02-221-0/+67
| | | | | | | | | | | Defining an interface as MCD_IMPLEMENT_OPTIONAL_IFACE() indicates it should not be included in an object's Interface property by default. Instead the interface is activated by calling mcd_dbus_activate_optional_interface() on an individual object instance. This makes it possible to implement interfaces such as Acct.I.ExternalPasswordStorage only on accounts whose Connection Manager supports it.
* McdDBusProp: remove get_asyncWill Thompson2010-12-151-53/+14
| | | | | | The only property that was implemented in an async fashion was Account.Parameters. Since that's now synchronous, we can bin this code for getting properties asynchronously.
* Provide ACL wrapped DBus property get/set/get_all helpersVivek Dasmohapatra2010-05-241-4/+117
|
* mcd-dbusprop: implement getting dbus properties asynchronouslyJonny Lamb2009-08-261-37/+108
| | | | | | | Getting the Parameters property is still broken because the Parameters property hasn't implemented an async get function. Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* mcd-dbusprop: move the McdDBusProp struct getting code into another functionJonny Lamb2009-08-261-42/+47
| | | | Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
* fd.o #22585: src: stop generating interfaces and GTypes, fixing static linkingSimon McVittie2009-07-011-4/+3
| | | | | | | | | | | | | | All the interfaces and GTypes we need are already in libmcclient, with the same names and auto-generated implementations, so it's useless to generate them in libmissioncontrol-server. When configured with --enable-static --disable-shared (which is what we want in Debian, I suspect), it becomes actively harmful to have two implementations: shared library linking can survive colliding symbols (at least on Linux), but static linking can't. (If we ever want Mission Control to be independent of libmcclient, then it should generate its own quark/type functions in the Mcd namespace.)
* Catch up with copyright updates on src/Simon McVittie2009-05-081-1/+2
|
* fd.o #21544: change signature of mcd_setprop so it can raise an errorSimon McVittie2009-05-051-2/+1
| | | | | | | The new implementation of set_avatar() looks suspicious: it changes the interpretation of _mcd_account_set_avatar's boolean return value from "changed" to "no error". However, _mcd_account_set_avatar either returns FALSE with a GError, or TRUE, in all cases, so this is actually OK.
* mcd-dbusprop: make mcd_dbusprop_set_property, get_property return a booleanSimon McVittie2009-05-051-8/+10
| | | | | | | It's generally bad practice for the only indication of error or not to be whether a GError was written through a GError** - you're meant to be able to pass NULL if you don't care which error it was, and still see whether it's success or failure.
* Remove G_STRFUNC from DEBUG() parametersAlberto Mardegan2009-02-261-4/+4
|
* Change all g_debug into DEBUGAlberto Mardegan2009-02-261-4/+5
|
* Server-side implementation of the account Stats interfaceAlberto Mardegan2008-12-191-0/+2
|
* _gen/interfaces-body.h was not linked inAlberto Mardegan2008-12-011-0/+2
|
* Add vim and emacs modelinesAlberto Mardegan2008-10-081-1/+2
| | | | Add vim and emacs modelines to avoid using tabs in newly-written code.
* Make derived objects workAlberto Mardegan2008-08-261-21/+26
| | | | git-svn-id: https://mission-control.svn.sourceforge.net/svnroot/mission-control/trunk@523 d91c8aed-3f2b-0410-a83d-924a1c20a0ba
* Lots of cleanup, most made by smcv.Alberto Mardegan2008-08-181-2/+2
| | | | git-svn-id: https://mission-control.svn.sourceforge.net/svnroot/mission-control/trunk@513 d91c8aed-3f2b-0410-a83d-924a1c20a0ba
* Add API to internally set a property.Alberto Mardegan2008-06-261-15/+28
| | | | git-svn-id: https://mission-control.svn.sourceforge.net/svnroot/mission-control/trunk@457 d91c8aed-3f2b-0410-a83d-924a1c20a0ba
* Automatically compute the value of the ``Interfaces'' DBus property.Alberto Mardegan2008-05-201-0/+28
| | | | git-svn-id: https://mission-control.svn.sourceforge.net/svnroot/mission-control/trunk@402 d91c8aed-3f2b-0410-a83d-924a1c20a0ba
* Rewrite the interface registration mechanism. Implement the Alberto Mardegan2008-04-111-14/+63
| | | | | | | | ''Interfaces'' property for the Account class. git-svn-id: https://mission-control.svn.sourceforge.net/svnroot/mission-control/trunk@362 d91c8aed-3f2b-0410-a83d-924a1c20a0ba
* Implement a DBus independent function for getting interfaceAlberto Mardegan2008-04-101-16/+29
| | | | | | | | properties. git-svn-id: https://mission-control.svn.sourceforge.net/svnroot/mission-control/trunk@352 d91c8aed-3f2b-0410-a83d-924a1c20a0ba
* Start implementing new McdAccount and McdAccountManager object as per theAlberto Mardegan2008-03-281-0/+183
specifications. git-svn-id: https://mission-control.svn.sourceforge.net/svnroot/mission-control/trunk@314 d91c8aed-3f2b-0410-a83d-924a1c20a0ba