c5184e9eeb0fd0bc4749677d2f74256515199b46 |
|
18-Jun-2015 |
Pavel Březina <pbrezina@redhat.com> |
SBUS: Use default GetAll invoker if none is set
It is alright for an interface to not have any GetAll invoker set
if it doesn't have any properties, but we still want to return
an empty message.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
16cf65323a41b3de4a98f309cdf900f3b0d9ec25 |
|
17-Feb-2015 |
Pavel Březina <pbrezina@redhat.com> |
sbus: remove unused 'reply as' functions
These functions became unused after previous patch.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
df4e1db5d41c903ae57fd880acc76a0ad84aa7b2 |
|
17-Feb-2015 |
Pavel Březina <pbrezina@redhat.com> |
sbus: use hard coded getters instead of generated
Properties are single value of a small number of predefined D-Bus
types. There is no need to generate them with codegen. Actually,
the source generator for property getters is already quite mess
with branching for array, strings and object paths. Adding any
more complex type in the future (such as dictionary) would require
even more branching or creating a separate path for it.
Hard coding the getters will simplify creating new ones for more
complex types. This patch also reduces lots of code duplication
and creates a simple function for GetAll.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
66277b21179d95f6e96abed01a20ccbccf27ce99 |
|
23-Jan-2015 |
Pavel Březina <pbrezina@redhat.com> |
sbus: unify naming of handler data variable
We used three different names to express handler data:
- pvt
- instace_data
- handler_data
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
b742179ac0790068380618ab72a06af18544f09c |
|
23-Jan-2015 |
Pavel Březina <pbrezina@redhat.com> |
sbus: support org.freedesktop.DBus.Properties
Bring back org.freedesktop.DBus.Properties with support of
multiple interfaces on single object path.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
a2ac7f081721cae6a6c4671fee3dfd9fe7d7da48 |
|
01-Jul-2014 |
Pavel Březina <pbrezina@redhat.com> |
sbus_request: fix potential NULL dereference
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
4f7f714e118e95896fac5239c7a8b529c39a4758 |
|
27-May-2014 |
Jakub Hrozek <jhrozek@redhat.com> |
SBUS: Implement org.freedesktop.DBus.Properties.GetAll for primitive types
This patch implements the GetAll method of the
org.freedesktop.DBus.Properties interface by iterating over the
available getters and putting all the results into a single getter.
The patch includes a unit test that exercies all currently supported
array types.
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
2965f42fed62b77a5b0e7f6cd01c4be1072484f5 |
|
27-May-2014 |
Pavel Březina <pbrezina@redhat.com> |
SBUS: Add utility function sbus_add_array_as_variant_to_dict
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
c43ed56bc5d29e189e529235a3ba4bc17cd1a95f |
|
27-May-2014 |
Jakub Hrozek <jhrozek@redhat.com> |
SBUS: Add utility function sbus_add_variant_to_dict
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
90e04eae7e54ec892a6f239783df94dab5d1ed9a |
|
22-May-2014 |
Jakub Hrozek <jhrozek@redhat.com> |
SBUS: Implement org.freedesktop.DBus.Properties.Get for primitive types
This patch implements type-safe getters for primitive types and their
arrays. The patch includes unit tests of all supported types and arrays
of these types.
All getter are synchronous. The getters never fail, instead, they return
a default or 'not defined' value. Making the getters synchronous and
always returning a value will make it significantly easier to implement
the GetAll method.
Reviewed-by: Stef Walter <stefw@redhat.com>
Reviewed-by: Pavel Březina <pbrezina@redhat.com> |
1319e71fd1680ca4864afe0b1aca2b8c8e4a1ee4 |
|
22-May-2014 |
Stef Walter <stefw@redhat.com> |
SBUS: Start implementing property access
This patch adds the basis of SBUS getters and setters. A new module,
sssd_dbus_properties.c would contain handlers for the property methods
like Get, Set and GetAll.
Type-safe property access works in a similar fashion like type-safe
method calls - the invoker calls the getter which returns the primitive
type, which is in turn marshalled into variant by the invoker.
This patch does not contain the complete functionality, see later
patches that continue implementing the getters and setters.
Reviewed-by: Stef Walter <stefw@redhat.com>
Reviewed-by: Pavel Březina <pbrezina@redhat.com> |