po_hi_returns.h 1.61 KB
Newer Older
1
2
3
4
5
6
7
8
/*
 * 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.
 *
 * For more informations, please visit http://ocarina.enst.fr
 *
 * Copyright (C) 2007-2009, GET-Telecom Paris.
julien.delange's avatar
julien.delange committed
9
 * Copyright (C) 2007-2010, European Space Agency
10
11
12
13
14
15
16
 */

#ifndef __PO_HI_RETURNS_H__
#define __PO_HI_RETURNS_H__

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

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

27
28
#define __PO_HI_ERROR_UNKNOWN             -30

29
30
31
32
33
34
35
36
37
/* 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

38
39
40
41
#define __PO_HI_ERROR_PROTECTED_LOCK      -60
#define __PO_HI_ERROR_PROTECTED_UNLOCK    -61
#define __PO_HI_ERROR_PROTECTED_CREATE    -62

42
43
44
45
46
47
48
49
/* 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

#endif /* __RETURNS_H__ */