summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_job/Ecore_Job.h
blob: 28af30794e3e545a9dd26b7d81570b3c2052bc75 (plain) (blame)
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
#ifndef _ECORE_JOB_H
#define _ECORE_JOB_H

#ifdef EAPI
#undef EAPI
#endif
#ifdef _MSC_VER
# ifdef BUILDING_DLL
#  define EAPI __declspec(dllexport)
# else
#  define EAPI __declspec(dllimport)
# endif
#else
# ifdef __GNUC__
#  if __GNUC__ >= 4
#   define EAPI __attribute__ ((visibility("default")))
#  else
#   define EAPI
#  endif
# else
#  define EAPI
# endif
#endif

/**
 * @file
 * @brief Functions for dealing with Ecore jobs.
 */

#ifdef __cplusplus
extern "C" {
#endif
   
#ifndef _ECORE_JOB_PRIVATE_H
typedef void Ecore_Job; /**< A job handle */
#endif

EAPI int        ecore_job_init();
EAPI int        ecore_job_shutdown();
EAPI Ecore_Job *ecore_job_add(void (*func) (void *data), const void *data);    
EAPI void      *ecore_job_del(Ecore_Job *job);

#ifdef __cplusplus
}
#endif

#endif