diff options
author | Mattias Andrée <maandree@kth.se> | 2021-04-04 23:48:03 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-04-04 23:48:03 +0200 |
commit | 4e07377ba62a1877a150faf196c8a9d3ac3fdcd7 (patch) | |
tree | 2e7434adcc7bf4d2f05ea0551ecda414a18e8ce4 /common.h | |
parent | m (diff) | |
download | contacts-4e07377ba62a1877a150faf196c8a9d3ac3fdcd7.tar.gz contacts-4e07377ba62a1877a150faf196c8a9d3ac3fdcd7.tar.bz2 contacts-4e07377ba62a1877a150faf196c8a9d3ac3fdcd7.tar.xz |
Add find-contact-by-address and get-contact-addresses
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | common.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -7,6 +7,8 @@ #include <libsimple.h> #include <libsimple-arg.h> +#include <math.h> + #ifndef BUFSIZ # define BUFSIZ 4096 @@ -20,3 +22,6 @@ __attribute__((__pure__)) int get_age(struct libcontacts_birthday *bday, const struct tm *now); void print_birthdate(struct libcontacts_birthday *bday, const struct tm *now); void print_birthday(struct libcontacts_birthday *bday, const struct tm *now); + +/* common-address.c */ +int parse_coord(char *s, double *lat_min, double *lat_max, double *lon_min, double *lon_max); |