ArDrone SDK 1.8 added
[mardrone] / mardrone / ARDrone_SDK_Version_1_8_20110726 / ARDroneLib / VP_SDK / VP_Api / vp_api_error.h
1 /**
2  *  \brief    VP Api. Error management
3  *  \author   Thomas Landais <thomas.landais@parrot.fr>
4  *  \version  2.0
5  *  \date     first release 16/12/2006
6  *  \date     modification  19/03/2007
7  */
8
9 #ifndef _VP_API_ERROR_H_
10 #define _VP_API_ERROR_H_
11
12
13 #include <VP_Os/vp_os_error_handling.h>
14
15
16 /**
17  * \enum List of error state message
18  */
19 enum {
20   VP_API_OK = (VP_API_SDK_SIGNATURE << 16),
21   VP_API_UNKNOW_ERROR,
22   VP_API_INPUT_ERROR,
23   VP_API_INPUT_CAMIF_SELECTION,
24   VP_API_INPUT_CAMIF_ERROR,
25   VP_API_INPUT_FILE_SELECTION,
26   VP_API_INPUT_FILE_ERROR,
27   VP_API_INPUT_SOCKET_BLUETOOTH_BNEP,
28   VP_API_INPUT_SOCKET_BLUETOOTH_BNEP_ERROR,
29   VP_API_INPUT_SOCKET_BLUETOOTH_RFCOMM,
30   VP_API_INPUT_SOCKET_BLUETOOTH_RFCOMM_ERROR,
31   VP_API_INPUT_SOCKET_BLUETOOTH_FTP,
32   VP_API_INPUT_SOCKET_BLUETOOTH_FTP_ERROR,
33   VP_API_INPUT_SOCKET_BLUETOOTH_BIP,
34   VP_API_INPUT_SOCKET_BLUETOOTH_BIP_ERROR,
35   VP_API_OUTPUT_FILE_SELECTION,
36   VP_API_OUTPUT_SOCKET_SELECTION,
37   VP_API_OUTPUT_BUFFER_SELECTION,
38   VP_API_OUTPUT_ERROR,
39   VP_API_MAX_NUM_ERROR
40 };
41
42
43 /**
44  * @fn      error api message process
45  * @param   int errorCode : error message in the list of error state message
46  * @param   char **errorMessage : string of the message
47  * @return  return the error Message
48  */
49 const char* vp_api_format_message(uint32_t error_code);
50
51
52
53 #endif // _VP_API_ERROR_H_