MediaProcessors
Main Page
Related Pages
Classes
Files
File List
File Members
utils
src
stat_codes.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2017 Rafael Antoniello
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions
7
* are met:
8
* 1. Redistributions of source code must retain the above copyright
9
* notice, this list of conditions and the following disclaimer.
10
* 2. Redistributions in binary form must reproduce the above copyright
11
* notice, this list of conditions and the following disclaimer in the
12
* documentation and/or other materials provided with the distribution.
13
* 3. Neither the name of copyright holders nor the names of its
14
* contributors may be used to endorse or promote products derived
15
* from this software without specific prior written permission.
16
*
17
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18
* “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
19
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS
21
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
* POSSIBILITY OF SUCH DAMAGE.
28
*/
29
36
#ifndef UTILS_SRC_STAT_CODES_H_
37
#define UTILS_SRC_STAT_CODES_H_
38
39
typedef
enum
stat_codes_ctx_s
{
40
STAT_SUCCESS= 0,
41
STAT_NOTMODIFIED,
//< Resource requested found but not modified
42
STAT_ERROR,
43
STAT_ENOTFOUND,
//< Resource requested not found
44
STAT_EAGAIN,
//< Resource temporarily unavailable (call again)
45
STAT_EOF,
//< End of file
46
STAT_ENOMEM,
//< Not enough space
47
STAT_EINVAL,
//< Invalid argument
48
STAT_ECONFLICT,
//< Conflict with the current state of the target resource
49
STAT_EBAVFORMAT,
//< Bad or not supported audio/video format
50
STAT_EBMUXFORMAT,
//< Bad or not supported multiplex format
51
STAT_ETIMEDOUT,
//< Operation timed out
52
STAT_EINTR,
//< Operation interrupted
53
STAT_ENOPROTOOPT,
//< Bad protocol option
54
STAT_EAFNOSUPPORT,
//< Address family not supported
56
STAT_EAFNOSUPPORT_HOSTNAME
,
58
STAT_EAFNOSUPPORT_PORT
,
59
STAT_ENODATA,
//< Valid request, no data record of requested type
60
STAT_CODES_MAX
61
} stat_codes_ctx_t;
62
63
const
char
* stat_codes_get_description(stat_codes_ctx_t code);
64
65
#endif
/* UTILS_SRC_STAT_CODES_H_ */
STAT_EAFNOSUPPORT_HOSTNAME
Definition:
stat_codes.h:56
stat_codes_ctx_s
stat_codes_ctx_s
Definition:
stat_codes.h:39
STAT_EAFNOSUPPORT_PORT
Definition:
stat_codes.h:58
Generated by
1.8.11