aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-04 13:52:47 +0200
committerMattias Andrée <maandree@kth.se>2021-04-04 13:52:47 +0200
commit08ac19b665fceed3be23739075390a41b5dbfcfb (patch)
tree6776e45948cb8a15b4e89490cdc6a7c42d8cf2b7 /common.h
parentm + add list-birthdays and set-contact-birthday (diff)
downloadcontacts-08ac19b665fceed3be23739075390a41b5dbfcfb.tar.gz
contacts-08ac19b665fceed3be23739075390a41b5dbfcfb.tar.bz2
contacts-08ac19b665fceed3be23739075390a41b5dbfcfb.tar.xz
m + move common code from get-contact-birthday.c and list-birthdays.c to common-birthday.c
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.h')
-rw-r--r--common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common.h b/common.h
index 3fcd407..6f38731 100644
--- a/common.h
+++ b/common.h
@@ -11,3 +11,9 @@
#ifndef BUFSIZ
# define BUFSIZ 4096
#endif
+
+
+/* common-birthday.c */
+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);