aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-04 23:48:03 +0200
committerMattias Andrée <maandree@kth.se>2021-04-04 23:48:03 +0200
commit4e07377ba62a1877a150faf196c8a9d3ac3fdcd7 (patch)
tree2e7434adcc7bf4d2f05ea0551ecda414a18e8ce4 /common.h
parentm (diff)
downloadcontacts-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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/common.h b/common.h
index 7abe91a..6993070 100644
--- a/common.h
+++ b/common.h
@@ -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);