diff options
author | lains <lains@caramail.com> | 2019-09-22 17:33:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-22 17:33:56 +0200 |
commit | bb680f70f18f1200bdc25b45031e26ac07c71979 (patch) | |
tree | ade0e3a07b26f4aae2f4e64be5fe35afc828fe6b /navit/attr.h | |
parent | deccb6c4379e135ae45513a7bfef3b4998f24e94 (diff) | |
download | navit-bb680f70f18f1200bdc25b45031e26ac07c71979.tar.gz |
Add/Android: Provide geo coordinates for clicked position in contextual menu (#794)
* Adding unescape string utility and unescaping alls values in textfile attributes
* Moving coordinates_geo out of internal use in gui_internal_command.c (to coord.c)
* Moving gui_internal_escape() into generic str_escape() function in util.c
* Moving strncpy_unescape() into generic function in util.c
* Using geo coords as item name in Android contextual menu "Route Here"
* Using string escaping (for double quotes) when writing former destinations to file
* Adding new type DEGREES_MINUTES_SECONDS_BRIEF to factorize coordinates_geo()
And fixing the example strings to match what is actually output by the function
* Adding support for DEGREES_MINUTES_SECONDS_BRIEF format into coord_format
And add internal coord_format_with_sep() to specify the separator
* Fixing doxygen doc for coord_format_with_sep()
* Making coord_format() inline
* Using new factorized generic function coord_geo_format_short() instead of coordinates_geo()
* Changing single contextual window title with GPS coords on Android
* Adding string bytes length for each coord to string format, using short format in pcoord_format_short() and coord_geo_format_short()
* Using pcoord_format_short() in android
Diffstat (limited to 'navit/attr.h')
-rw-r--r-- | navit/attr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/attr.h b/navit/attr.h index a9e4d9467..ab4283394 100644 --- a/navit/attr.h +++ b/navit/attr.h @@ -243,7 +243,7 @@ struct attr *attr_dup(struct attr *attr); void attr_list_free(struct attr **attrs); struct attr **attr_list_dup(struct attr **attrs); struct attr **attr_list_append(struct attr **attrs, struct attr *attr); -int attr_from_line(char *line, char *name, int *pos, char *val_ret, char *name_ret); +int attr_from_line(const char *line, const char *name, int *pos, char *val_ret, char *name_ret); int attr_types_contains(enum attr_type *types, enum attr_type type); int attr_types_contains_default(enum attr_type *types, enum attr_type type, int deflt); int attr_rel2real(int attrval, int whole, int treat_neg_as_rel); |