From e0797d84fa7445f5039bc0ced2e6c585b970252f Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Tue, 20 Jul 2010 20:32:45 +0100 Subject: [PATCH] Start making things sane... a header file for the "library" routine... --- ews2ical.c | 2 ++ ews_autodiscover.c | 2 ++ ews_syncfolder.c | 3 +++ libews.h | 29 +++++++++++++++++++++++++++++ 4 files changed, 36 insertions(+) create mode 100644 libews.h diff --git a/ews2ical.c b/ews2ical.c index 047e0b1..a7d3e3e 100644 --- a/ews2ical.c +++ b/ews2ical.c @@ -17,6 +17,8 @@ #include #include +#include "libews.h" + FILE *calfile; extern icalcomponent *ews_calitem_to_ical(xmlNode *xml_node); diff --git a/ews_autodiscover.c b/ews_autodiscover.c index b578355..bc1aac2 100644 --- a/ews_autodiscover.c +++ b/ews_autodiscover.c @@ -5,6 +5,8 @@ #include #include +#include "libews.h" + struct ews_auth { const char *username; const char *password; diff --git a/ews_syncfolder.c b/ews_syncfolder.c index b671945..d0e6fb5 100644 --- a/ews_syncfolder.c +++ b/ews_syncfolder.c @@ -6,6 +6,9 @@ #include #include #include + +#include "libews.h" + #define ITEM_CREATE 1 #define ITEM_DELETE 2 #define ITEM_UPDATE 3 diff --git a/libews.h b/libews.h new file mode 100644 index 0000000..97e4349 --- /dev/null +++ b/libews.h @@ -0,0 +1,29 @@ +/* + * libews.h -- Exchange Web Services + * + * Copyright © 2010 Intel Corporation + * + * Author: David Woodhouse + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of version 2 of the GNU General Public + * License as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifndef __LIBEWS_H__ +#define __LIBEWS_H__ + +#include + +icalcomponent *ews_calitem_to_ical(xmlNode *xml_node); + +#endif -- 2.49.0