po_hi_returns.h 2.1 KB
Newer Older
1
2
3
4
5
/*
 * This is a part of PolyORB-HI-C distribution, a minimal
 * middleware written for generated code from AADL models.
 * You should use it with the Ocarina toolsuite.
 *
yoogx's avatar
yoogx committed
6
 * For more informations, please visit http://taste.tuxfamily.org/wiki
7
 *
8
 * Copyright (C) 2007-2009 Telecom ParisTech, 2010-2018 ESA & ISAE.
9
10
11
12
13
14
15
 */

#ifndef __PO_HI_RETURNS_H__
#define __PO_HI_RETURNS_H__

/* Success return code */
#define __PO_HI_SUCCESS                    1
16
#define __PO_HI_UNAVAILABLE                2
jdelange's avatar
jdelange committed
17
#define __PO_HI_INVALID                    5
jdelange's avatar
jdelange committed
18
#define __PO_HI_TOOMANY                    6
19

jdelange's avatar
jdelange committed
20
21
#define __PO_HI_NOTIMPLEMENTED             8

jdelange's avatar
jdelange committed
22
23
#define __PO_HI_NOTINITIALIZED             9

24
25
/* Errors from the API */
#define __PO_HI_ERROR_CREATE_TASK         -10
26
#define __PO_HI_ERROR_TASK_PERIOD         -11
27
28
29
#define __PO_HI_ERROR_CLOCK               -15
#define __PO_HI_ERROR_QUEUE_FULL          -20

30
31
#define __PO_HI_ERROR_UNKNOWN             -30

32
33
34
35
36
37
38
39
40
/* Errors related to the pthread library */
#define __PO_HI_ERROR_PTHREAD_COND        -50
#define __PO_HI_ERROR_PTHREAD_MUTEX       -51
#define __PO_HI_ERROR_PTHREAD_CREATE      -52
#define __PO_HI_ERROR_PTHREAD_ATTR        -53
#define __PO_HI_ERROR_PTHREAD_SCHED       -54
#define __PO_HI_ERROR_TRANSPORT_SEND      -55
#define __PO_HI_ERROR_PTHREAD_BARRIER     -56

41
/* Errors related to the protected and semaphore API */
42
43
44
45
#define __PO_HI_ERROR_PROTECTED_LOCK      -60
#define __PO_HI_ERROR_PROTECTED_UNLOCK    -61
#define __PO_HI_ERROR_PROTECTED_CREATE    -62

jdelange's avatar
jdelange committed
46
47
48
49
#define __PO_HI_ERROR_MUTEX_LOCK          -60
#define __PO_HI_ERROR_MUTEX_UNLOCK        -61
#define __PO_HI_ERROR_MUTEX_CREATE        -62

50
51
52
53
#define __PO_HI_ERROR_SEM_WAIT            -60
#define __PO_HI_ERROR_SEM_RELEASE         -61
#define __PO_HI_ERROR_SEM_CREATE          -62

54
55
56
57
58
59
60
/* GIOP error code */
#define __PO_HI_GIOP_INVALID_SIZE         -100
#define __PO_HI_GIOP_INVALID_VERSION      -120
#define __PO_HI_GIOP_INVALID_REQUEST_TYPE -150
#define __PO_HI_GIOP_INVALID_OPERATION    -180
#define __PO_HI_GIOP_UNSUPPORTED          -200

jdelange's avatar
jdelange committed
61
62
63
#define __PO_HI_ERROR_EXISTS              -80
#define __PO_HI_ERROR_NOEXISTS            -81

64
#endif /* __RETURNS_H__ */