summaryrefslogtreecommitdiffstats
path: root/lib/libUPnP/Neptune/Source/Core/NptResults.cpp
blob: cf87793daecbee629d3fd39df2efae670c486f98 (plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/*****************************************************************
|
|   Neptune - Result Code Map
|
|   This file is automatically generated by a script, do not edit!
|
| Copyright (c) 2002-2010, Axiomatic Systems, LLC.
| All rights reserved.
|
| Redistribution and use in source and binary forms, with or without
| modification, are permitted provided that the following conditions are met:
|     * Redistributions of source code must retain the above copyright
|       notice, this list of conditions and the following disclaimer.
|     * Redistributions in binary form must reproduce the above copyright
|       notice, this list of conditions and the following disclaimer in the
|       documentation and/or other materials provided with the distribution.
|     * Neither the name of Axiomatic Systems nor the
|       names of its contributors may be used to endorse or promote products
|       derived from this software without specific prior written permission.
|
| THIS SOFTWARE IS PROVIDED BY AXIOMATIC SYSTEMS ''AS IS'' AND ANY
| EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
| WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
| DISCLAIMED. IN NO EVENT SHALL AXIOMATIC SYSTEMS BE LIABLE FOR ANY
| DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
| (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
| LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
| ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
| SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
 ****************************************************************/

/*----------------------------------------------------------------------
|   includes
+---------------------------------------------------------------------*/
#include "Neptune.h"

/*----------------------------------------------------------------------
|   NPT_ResultText
+---------------------------------------------------------------------*/
const char*
NPT_ResultText(NPT_Result result)
{
    switch (result) {
        case NPT_SUCCESS: return "SUCCESS";
        case NPT_FAILURE: return "FAILURE";

        case NPT_ERROR_INVALID_PARAMETERS: return "NPT_ERROR_INVALID_PARAMETERS";
        case NPT_ERROR_PERMISSION_DENIED: return "NPT_ERROR_PERMISSION_DENIED";
        case NPT_ERROR_OUT_OF_MEMORY: return "NPT_ERROR_OUT_OF_MEMORY";
        case NPT_ERROR_NO_SUCH_NAME: return "NPT_ERROR_NO_SUCH_NAME";
        case NPT_ERROR_NO_SUCH_PROPERTY: return "NPT_ERROR_NO_SUCH_PROPERTY";
        case NPT_ERROR_NO_SUCH_ITEM: return "NPT_ERROR_NO_SUCH_ITEM";
        case NPT_ERROR_NO_SUCH_CLASS: return "NPT_ERROR_NO_SUCH_CLASS";
        case NPT_ERROR_OVERFLOW: return "NPT_ERROR_OVERFLOW";
        case NPT_ERROR_INTERNAL: return "NPT_ERROR_INTERNAL";
        case NPT_ERROR_INVALID_STATE: return "NPT_ERROR_INVALID_STATE";
        case NPT_ERROR_INVALID_FORMAT: return "NPT_ERROR_INVALID_FORMAT";
        case NPT_ERROR_INVALID_SYNTAX: return "NPT_ERROR_INVALID_SYNTAX";
        case NPT_ERROR_NOT_IMPLEMENTED: return "NPT_ERROR_NOT_IMPLEMENTED";
        case NPT_ERROR_NOT_SUPPORTED: return "NPT_ERROR_NOT_SUPPORTED";
        case NPT_ERROR_TIMEOUT: return "NPT_ERROR_TIMEOUT";
        case NPT_ERROR_WOULD_BLOCK: return "NPT_ERROR_WOULD_BLOCK";
        case NPT_ERROR_TERMINATED: return "NPT_ERROR_TERMINATED";
        case NPT_ERROR_OUT_OF_RANGE: return "NPT_ERROR_OUT_OF_RANGE";
        case NPT_ERROR_OUT_OF_RESOURCES: return "NPT_ERROR_OUT_OF_RESOURCES";
        case NPT_ERROR_NOT_ENOUGH_SPACE: return "NPT_ERROR_NOT_ENOUGH_SPACE";
        case NPT_ERROR_INTERRUPTED: return "NPT_ERROR_INTERRUPTED";
        case NPT_ERROR_CANCELLED: return "NPT_ERROR_CANCELLED";
        case NPT_ERROR_LIST_EMPTY: return "NPT_ERROR_LIST_EMPTY";
        case NPT_ERROR_LIST_OPERATION_ABORTED: return "NPT_ERROR_LIST_OPERATION_ABORTED";
        case NPT_ERROR_LIST_OPERATION_CONTINUE: return "NPT_ERROR_LIST_OPERATION_CONTINUE";
        case NPT_ERROR_NO_SUCH_FILE: return "NPT_ERROR_NO_SUCH_FILE";
        case NPT_ERROR_FILE_NOT_OPEN: return "NPT_ERROR_FILE_NOT_OPEN";
        case NPT_ERROR_FILE_BUSY: return "NPT_ERROR_FILE_BUSY";
        case NPT_ERROR_FILE_ALREADY_OPEN: return "NPT_ERROR_FILE_ALREADY_OPEN";
        case NPT_ERROR_FILE_NOT_READABLE: return "NPT_ERROR_FILE_NOT_READABLE";
        case NPT_ERROR_FILE_NOT_WRITABLE: return "NPT_ERROR_FILE_NOT_WRITABLE";
        case NPT_ERROR_FILE_NOT_DIRECTORY: return "NPT_ERROR_FILE_NOT_DIRECTORY";
        case NPT_ERROR_FILE_ALREADY_EXISTS: return "NPT_ERROR_FILE_ALREADY_EXISTS";
        case NPT_ERROR_FILE_NOT_ENOUGH_SPACE: return "NPT_ERROR_FILE_NOT_ENOUGH_SPACE";
        case NPT_ERROR_DIRECTORY_NOT_EMPTY: return "NPT_ERROR_DIRECTORY_NOT_EMPTY";
        case NPT_ERROR_READ_FAILED: return "NPT_ERROR_READ_FAILED";
        case NPT_ERROR_WRITE_FAILED: return "NPT_ERROR_WRITE_FAILED";
        case NPT_ERROR_EOS: return "NPT_ERROR_EOS";
        case NPT_ERROR_CONNECTION_RESET: return "NPT_ERROR_CONNECTION_RESET";
        case NPT_ERROR_CONNECTION_ABORTED: return "NPT_ERROR_CONNECTION_ABORTED";
        case NPT_ERROR_CONNECTION_REFUSED: return "NPT_ERROR_CONNECTION_REFUSED";
        case NPT_ERROR_CONNECTION_FAILED: return "NPT_ERROR_CONNECTION_FAILED";
        case NPT_ERROR_HOST_UNKNOWN: return "NPT_ERROR_HOST_UNKNOWN";
        case NPT_ERROR_SOCKET_FAILED: return "NPT_ERROR_SOCKET_FAILED";
        case NPT_ERROR_GETSOCKOPT_FAILED: return "NPT_ERROR_GETSOCKOPT_FAILED";
        case NPT_ERROR_SETSOCKOPT_FAILED: return "NPT_ERROR_SETSOCKOPT_FAILED";
        case NPT_ERROR_SOCKET_CONTROL_FAILED: return "NPT_ERROR_SOCKET_CONTROL_FAILED";
        case NPT_ERROR_BIND_FAILED: return "NPT_ERROR_BIND_FAILED";
        case NPT_ERROR_LISTEN_FAILED: return "NPT_ERROR_LISTEN_FAILED";
        case NPT_ERROR_ACCEPT_FAILED: return "NPT_ERROR_ACCEPT_FAILED";
        case NPT_ERROR_ADDRESS_IN_USE: return "NPT_ERROR_ADDRESS_IN_USE";
        case NPT_ERROR_NETWORK_DOWN: return "NPT_ERROR_NETWORK_DOWN";
        case NPT_ERROR_NETWORK_UNREACHABLE: return "NPT_ERROR_NETWORK_UNREACHABLE";
        case NPT_ERROR_HOST_UNREACHABLE: return "NPT_ERROR_HOST_UNREACHABLE";
        case NPT_ERROR_NO_SUCH_INTERFACE: return "NPT_ERROR_NO_SUCH_INTERFACE";
        case NPT_ERROR_XML_INVALID_NESTING: return "NPT_ERROR_XML_INVALID_NESTING";
        case NPT_ERROR_XML_TAG_MISMATCH: return "NPT_ERROR_XML_TAG_MISMATCH";
        case NPT_ERROR_HTTP_INVALID_RESPONSE_LINE: return "NPT_ERROR_HTTP_INVALID_RESPONSE_LINE";
        case NPT_ERROR_HTTP_INVALID_REQUEST_LINE: return "NPT_ERROR_HTTP_INVALID_REQUEST_LINE";
        case NPT_ERROR_HTTP_NO_PROXY: return "NPT_ERROR_HTTP_NO_PROXY";
        case NPT_ERROR_HTTP_INVALID_REQUEST: return "NPT_ERROR_HTTP_INVALID_REQUEST";
        case NPT_ERROR_HTTP_METHOD_NOT_SUPPORTED: return "NPT_ERROR_HTTP_METHOD_NOT_SUPPORTED";
        case NPT_ERROR_HTTP_TOO_MANY_REDIRECTS: return "NPT_ERROR_HTTP_TOO_MANY_REDIRECTS";
        case NPT_ERROR_HTTP_TOO_MANY_RECONNECTS: return "NPT_ERROR_HTTP_TOO_MANY_RECONNECTS";
        case NPT_ERROR_HTTP_CANNOT_RESEND_BODY: return "NPT_ERROR_HTTP_CANNOT_RESEND_BODY";
        case NPT_ERROR_CALLBACK_HANDLER_SHUTDOWN: return "NPT_ERROR_CALLBACK_HANDLER_SHUTDOWN";
        case NPT_ERROR_CALLBACK_NOTHING_PENDING: return "NPT_ERROR_CALLBACK_NOTHING_PENDING";
        case NPT_ERROR_NO_SUCH_SERIAL_PORT: return "NPT_ERROR_NO_SUCH_SERIAL_PORT";
        case NPT_ERROR_SERIAL_PORT_NOT_OPEN: return "NPT_ERROR_SERIAL_PORT_NOT_OPEN";
        case NPT_ERROR_SERIAL_PORT_ALREADY_OPEN: return "NPT_ERROR_SERIAL_PORT_ALREADY_OPEN";
        case NPT_ERROR_SERIAL_PORT_BUSY: return "NPT_ERROR_SERIAL_PORT_BUSY";
        case NPT_ERROR_INVALID_PASSWORD: return "NPT_ERROR_INVALID_PASSWORD";
        case NPT_ERROR_TLS_INVALID_HANDSHAKE: return "NPT_ERROR_TLS_INVALID_HANDSHAKE";
        case NPT_ERROR_TLS_INVALID_PROTOCOL_MESSAGE: return "NPT_ERROR_TLS_INVALID_PROTOCOL_MESSAGE";
        case NPT_ERROR_TLS_INVALID_HMAC: return "NPT_ERROR_TLS_INVALID_HMAC";
        case NPT_ERROR_TLS_INVALID_VERSION: return "NPT_ERROR_TLS_INVALID_VERSION";
        case NPT_ERROR_TLS_INVALID_SESSION: return "NPT_ERROR_TLS_INVALID_SESSION";
        case NPT_ERROR_TLS_NO_CIPHER: return "NPT_ERROR_TLS_NO_CIPHER";
        case NPT_ERROR_TLS_BAD_CERTIFICATE: return "NPT_ERROR_TLS_BAD_CERTIFICATE";
        case NPT_ERROR_TLS_INVALID_KEY: return "NPT_ERROR_TLS_INVALID_KEY";
        case NPT_ERROR_TLS_NO_CLIENT_RENEGOTIATION: return "NPT_ERROR_TLS_NO_CLIENT_RENEGOTIATION";
        case NPT_ERROR_TLS_INVALID_FINISHED_MESSAGE: return "NPT_ERROR_TLS_INVALID_FINISHED_MESSAGE";
        case NPT_ERROR_TLS_NO_CERTIFICATE_DEFINED: return "NPT_ERROR_TLS_NO_CERTIFICATE_DEFINED";
        case NPT_ERROR_TLS_ALERT_HANDSHAKE_FAILED: return "NPT_ERROR_TLS_ALERT_HANDSHAKE_FAILED";
        case NPT_ERROR_TLS_ALERT_BAD_CERTIFICATE: return "NPT_ERROR_TLS_ALERT_BAD_CERTIFICATE";
        case NPT_ERROR_TLS_ALERT_INVALID_VERSION: return "NPT_ERROR_TLS_ALERT_INVALID_VERSION";
        case NPT_ERROR_TLS_ALERT_BAD_RECORD_MAC: return "NPT_ERROR_TLS_ALERT_BAD_RECORD_MAC";
        case NPT_ERROR_TLS_ALERT_DECODE_ERROR: return "NPT_ERROR_TLS_ALERT_DECODE_ERROR";
        case NPT_ERROR_TLS_ALERT_DECRYPT_ERROR: return "NPT_ERROR_TLS_ALERT_DECRYPT_ERROR";
        case NPT_ERROR_TLS_ALERT_ILLEGAL_PARAMETER: return "NPT_ERROR_TLS_ALERT_ILLEGAL_PARAMETER";
        case NPT_ERROR_TLS_ALERT_UNEXPECTED_MESSAGE: return "NPT_ERROR_TLS_ALERT_UNEXPECTED_MESSAGE";
        case NPT_ERROR_TLS_CERTIFICATE_FAILURE: return "NPT_ERROR_TLS_CERTIFICATE_FAILURE";
        case NPT_ERROR_TLS_CERTIFICATE_NO_TRUST_ANCHOR: return "NPT_ERROR_TLS_CERTIFICATE_NO_TRUST_ANCHOR";
        case NPT_ERROR_TLS_CERTIFICATE_BAD_SIGNATURE: return "NPT_ERROR_TLS_CERTIFICATE_BAD_SIGNATURE";
        case NPT_ERROR_TLS_CERTIFICATE_NOT_YET_VALID: return "NPT_ERROR_TLS_CERTIFICATE_NOT_YET_VALID";
        case NPT_ERROR_TLS_CERTIFICATE_EXPIRED: return "NPT_ERROR_TLS_CERTIFICATE_EXPIRED";
        case NPT_ERROR_TLS_CERTIFICATE_SELF_SIGNED: return "NPT_ERROR_TLS_CERTIFICATE_SELF_SIGNED";
        case NPT_ERROR_TLS_CERTIFICATE_INVALID_CHAIN: return "NPT_ERROR_TLS_CERTIFICATE_INVALID_CHAIN";
        case NPT_ERROR_TLS_CERTIFICATE_UNSUPPORTED_DIGEST: return "NPT_ERROR_TLS_CERTIFICATE_UNSUPPORTED_DIGEST";
        case NPT_ERROR_TLS_CERTIFICATE_INVALID_PRIVATE_KEY: return "NPT_ERROR_TLS_CERTIFICATE_INVALID_PRIVATE_KEY";
        case NPT_ERROR_TLS_DNS_NAME_MISMATCH: return "NPT_ERROR_TLS_DNS_NAME_MISMATCH";

        default: return "UNKNOWN";
    }
}