summaryrefslogtreecommitdiff
path: root/src/lib/esoap_model/Esoap_Model.h
blob: 22be6a811b22bb233863b17106703dafabcbc0a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef ESOAP_MODEL_H
#define ESOAP_MODEL_H

#include <Ecore.h>
#include <Efl.h>
#include <Efl_Config.h>

#ifdef EAPI
# undef EAPI
#endif

#ifdef _WIN32
# ifdef EFL_ESOAP_MODEL_BUILD
#  ifdef DLL_EXPORT
#   define EAPI __declspec(dllexport)
#  else
#   define EAPI
#  endif /* ! DLL_EXPORT */
# else
#  define EAPI __declspec(dllimport)
# endif /* ! EFL_ESOAP_MODEL_BUILD */
#else
# ifdef __GNUC__
#  if __GNUC__ >= 4
#   define EAPI __attribute__ ((visibility("default")))
#  else
#   define EAPI
#  endif
# else
#  define EAPI
# endif
#endif /* ! _WIN32 */

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @brief Initialize esoap_model.
 *
 * @return 1 or greater on success, 0 otherwise
 */
EAPI int esoap_model_init(void);

/**
 * @brief Shutdown esoap_model.
 *
 * @return 0 if esoap_model shuts down, greater than 0 otherwise.
 */
EAPI int esoap_model_shutdown(void);

#ifdef EFL_EO_API_SUPPORT
# include <esoap_model.eo.h>
#endif

#ifdef __cplusplus
}
#endif

#undef EAPI
#define EAPI

#endif