OpenAB  1.0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
OpenAB_eds_global.h
Go to the documentation of this file.
1 /*
2  * This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5  */
6 
11 #ifndef OPENAB_EDS_GLOBAL_H_
12 #define OPENAB_EDS_GLOBAL_H_
13 
14 #include <libebook/libebook.h>
15 #include <libecal/libecal.h>
16 #include <libedata-book/libedata-book.h>
17 #include <libebook-contacts/libebook-contacts.h>
19 
20 #define FREE_CONTACTS(__contacts_p) \
21  if (NULL != __contacts_p) { \
22  g_slist_free_full(__contacts_p, (GDestroyNotify) g_object_unref); \
23  __contacts_p = NULL; \
24  }
25 
26 #endif // OpenAB_EDS_GLOBAL_H_