diff options
author | mvglasow <michael@vonglasow.com> | 2018-02-18 23:01:34 +0100 |
---|---|---|
committer | jkoan <jkoan@users.noreply.github.com> | 2018-02-18 23:01:34 +0100 |
commit | e40aa32594b0cac44f543f03335c8c8473d1561c (patch) | |
tree | d889eb1627b6e23afdb031b02fe4cdaa0891a4ef /navit | |
parent | cd580e002ccc4e4eb97afcf684147f474987fca7 (diff) | |
download | navit-e40aa32594b0cac44f543f03335c8c8473d1561c.tar.gz |
Refactor:core:Some doxygen additions and corrections (#406)v0.5.1-rc2
Signed-off-by: mvglasow <michael -at- vonglasow.com>
Diffstat (limited to 'navit')
-rw-r--r-- | navit/attr.c | 13 | ||||
-rw-r--r-- | navit/binding/dbus/binding_dbus.c | 13 |
2 files changed, 20 insertions, 6 deletions
diff --git a/navit/attr.c b/navit/attr.c index 24b6cbe6a..86bc29489 100644 --- a/navit/attr.c +++ b/navit/attr.c @@ -689,6 +689,19 @@ attr_generic_prepend_attr(struct attr **attrs, struct attr *attr) return curr; } +/** + * @brief Removes an attribute from an attribute list. + * + * If `attrs` contains `attr`, a new attribute list is created (which contains all attributes, except + * for `attr`) and both `attrs` (the original attribute list) and `attr` are freed. + * + * If `attrs` does not contain `attr`, this function is a no-op. + * + * @param attrs The attribute list + * @param attr The attribute to remove from the list + * + * @return The new attribute list + */ struct attr ** attr_generic_remove_attr(struct attr **attrs, struct attr *attr) { diff --git a/navit/binding/dbus/binding_dbus.c b/navit/binding/dbus/binding_dbus.c index 97b48f9c4..86f4cb869 100644 --- a/navit/binding/dbus/binding_dbus.c +++ b/navit/binding/dbus/binding_dbus.c @@ -1350,12 +1350,6 @@ request_navit_zoom(DBusConnection *connection, DBusMessage *message) } -/** - * @brief Exports the current route as a GPX file - * @param connection The DBusConnection object through which a message arrived - * @param message The DBusMessage including the 'filename' parameter - * @returns An empty reply if everything went right, otherwise DBUS_HANDLER_RESULT_NOT_YET_HANDLED - */ static DBusHandlerResult request_navit_zoom_to_route(DBusConnection *connection, DBusMessage *message) { @@ -1375,6 +1369,13 @@ request_navit_zoom_to_route(DBusConnection *connection, DBusMessage *message) } +/** + * @brief Exports the current route as a GPX file. + * + * @param connection The DBusConnection object through which a message arrived + * @param message The DBusMessage including the `filename` parameter + * @returns An empty reply if everything went right, otherwise `DBUS_HANDLER_RESULT_NOT_YET_HANDLED` + */ static DBusHandlerResult request_navit_route_export_gpx(DBusConnection *connection, DBusMessage *message) { |