diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-12-15 22:47:58 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-12-15 22:47:58 +0000 |
commit | 39b2b37e6417d77aa457dd568d45f7649fe78e74 (patch) | |
tree | cf9da41822bdb918eec5b259a996ef0f859f2e2d /navit/binding | |
parent | b13621b3a5451393523afccd503fef0aa57594f2 (diff) | |
download | navit-svn-39b2b37e6417d77aa457dd568d45f7649fe78e74.tar.gz |
Add:binding_dbus:Implemented attribute iter for roadprofile
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5295 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/binding')
-rw-r--r-- | navit/binding/dbus/binding_dbus.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/navit/binding/dbus/binding_dbus.c b/navit/binding/dbus/binding_dbus.c index 5e1ef4db..01b2e362 100644 --- a/navit/binding/dbus/binding_dbus.c +++ b/navit/binding/dbus/binding_dbus.c @@ -988,6 +988,18 @@ request_roadprofile_set_attr(DBusConnection *connection, DBusMessage *message) return request_set_add_remove_attr(connection, message, "roadprofile", NULL, (int (*)(void *, struct attr *))roadprofile_set_attr); } +static DBusHandlerResult +request_roadprofile_attr_iter(DBusConnection *connection, DBusMessage *message) +{ + return request_attr_iter(connection, message, "roadprofile", (struct attr_iter * (*)(void))roadprofile_attr_iter_new); +} + +static DBusHandlerResult +request_roadprofile_attr_iter_destroy(DBusConnection *connection, DBusMessage *message) +{ + return request_attr_iter_destroy(connection, message, "roadprofile", (void (*)(struct attr_iter *))roadprofile_attr_iter_destroy); +} + /* route */ static DBusHandlerResult @@ -1662,7 +1674,10 @@ struct dbus_method { {".osd", "get_attr", "s", "attribute", "sv", "attrname,value", request_osd_get_attr}, {".osd", "set_attr", "sv", "attribute,value", "", "", request_osd_set_attr}, {".roadprofile", "get_attr", "s", "attribute", "sv", "attrname,value", request_roadprofile_get_attr}, + {".roadprofile", "get_attr_wi", "so", "attribute,attr_iter", "", "", request_roadprofile_get_attr}, {".roadprofile", "set_attr", "sv", "attribute,value", "", "", request_roadprofile_set_attr}, + {".roadprofile", "attr_iter", "", "", "o", "attr_iter", request_roadprofile_attr_iter}, + {".roadprofile", "attr_iter_destroy","o", "attr_iter", "", "", request_roadprofile_attr_iter_destroy}, {".route", "get_attr", "s", "attribute", "sv", "attrname,value", request_route_get_attr}, {".route", "set_attr", "sv", "attribute,value", "", "", request_route_set_attr}, {".route", "add_attr", "sv", "attribute,value", "", "", request_route_add_attr}, |