po_hi_returns.h 1.91 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.
 *
jhugues's avatar
jhugues committed
6
 * For more informations, please visit http://assert-project.net/taste
7
 *
jhugues's avatar
jhugues committed
8
 * Copyright (C) 2007-2009 Telecom ParisTech, 2010-2012 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 42 43 44
#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
45 46 47 48
#define __PO_HI_ERROR_MUTEX_LOCK          -60
#define __PO_HI_ERROR_MUTEX_UNLOCK        -61
#define __PO_HI_ERROR_MUTEX_CREATE        -62

49 50 51 52 53 54 55
/* 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
56 57 58
#define __PO_HI_ERROR_EXISTS              -80
#define __PO_HI_ERROR_NOEXISTS            -81

59
#endif /* __RETURNS_H__ */