aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/basetypes/MCLibetpan.h
diff options
context:
space:
mode:
authorGravatar George Nachman <georgen@google.com>2014-07-24 12:04:10 -0700
committerGravatar George Nachman <georgen@google.com>2014-07-24 12:04:10 -0700
commit108bb69dab1a0e6fcc17115c0e94feadaf820216 (patch)
tree26ac82f97fb499ae8624047b2643f11b6bbde0dd /src/core/basetypes/MCLibetpan.h
parent1f243bb124f03e2b8710dc70f31010ab42cdf964 (diff)
parentdfc73dd7ad39d13e2cb06b2a308dbab38105c786 (diff)
Merge branch 'master' of https://github.com/MailCore/mailcore2 into iOS8AndLibCpp
Diffstat (limited to 'src/core/basetypes/MCLibetpan.h')
-rw-r--r--src/core/basetypes/MCLibetpan.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/core/basetypes/MCLibetpan.h b/src/core/basetypes/MCLibetpan.h
index 9670a47b..41024137 100644
--- a/src/core/basetypes/MCLibetpan.h
+++ b/src/core/basetypes/MCLibetpan.h
@@ -10,6 +10,16 @@
#define MAILCORE_MCLIBETPAN_H
-// No API in this file.
+#include <time.h>
+#include <libetpan/libetpan.h>
+
+namespace mailcore {
+
+ time_t timestampFromDate(struct mailimf_date_time * date_time);
+ time_t timestampFromIMAPDate(struct mailimap_date_time * date_time);
+ struct mailimf_date_time * dateFromTimestamp(time_t timeval);
+ struct mailimap_date_time * imapDateFromTimestamp(time_t timeval);
+
+}
#endif