summaryrefslogtreecommitdiffstats
path: root/stream/freesdp/errorlist.c
blob: 1fb6e93851fde6b170ce5641876c24e2b1919e2e (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
/*
  This file is part of FreeSDP
  Copyright (C) 2001, 2002 Federico Montesino Pouzols <fedemp@suidzer0.org>

  FreeSDP is free software; you can redistribute it and/or modify it
  under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

/**
 * @file errorlist.c
 *
 * @short Translation table for error numbers
 *
 */

#ifndef FSDP_ERRORLIST_C
#define FSDP_ERRORLIST_C

#include "common.h"

const char *fsdp_error_t_s[] = {
  "No error",/** FSDPE_OK **/
  "Illegal character detected",/** FSDPE_ILLEGAL_CHARACTER **/
  "Missing version item", /** FSDPE_MISSING_VERSION **/
  "Invalid version item", /** FSDPE_INVALID_VERSION **/
  "Owner item not present", /** FSDPE_MISSING_OWNER **/
  "Parse error in owner item", /** FSDPE_INVALID_OWNER **/
  "Session name not present", /** FSDPE_MISSING_NAME **/
  "Empty session name item", /** FSDPE_EMPTY_NAME **/
  "Syntax error in connection item", /** FSDPE_INVALID_CONNECTION **/
  "Unrecognized address type in connection item", /** FSDPE_INVALID_CONNECTION_ADDRTYPE **/
  "Unrecognized network type in connection item", /** FSDPE_INVALID_CONNECTION_NETTYPE **/
  "Parse error in bandwith item", /** FSDPE_INVALID_BANDWIDTH **/
  "No time period for the session", /** FSDPE_MISSING_TIME **/
  "Parse error in time item", /** FSDPE_INVALID_TIME **/
  "Parse error in repeat time item", /** FSDPE_INVALID_REPEAT **/
  "Parse error in timezone item", /** FSDPE_INVALID_TIMEZONE **/
  "Unknown encryption method", /** FSDPE_INVALID_ENCRYPTION_METHOD **/
  "Syntax error in an attribute item", /** FSDPE_INVALID_ATTRIBUTE **/
  "Syntax error in an rtpmap attribute item", /** FSDPE_INVALID_ATTRIBUTE_RTPMAP **/
  "Unknown session type in a session-level attribute", /** FSDPE_INVALID_SESSION_TYPE **/
  "Parse error in media item", /** FSDPE_INVALID_MEDIA **/
  "Unknown media type in media item", /** FSDPE_UNKNOWN_MEDIA_TYPE **/
  "Unknown media transport", /** FSDPE_UNKNOWN_MEDIA_TRANSPORT **/
  "Unknown extra lines in description item", /** FSDPE_OVERFILLED **/
  "Unknown line found",	/** FSDPE_INVALID_LINE **/
  "No connection information provided",	/** FSDPE_MISSING_CONNECTION_INFO **/
  "Description item does not fit in MAXSIZE", /** FSDPE_INVALID_INDEX **/
  "Internal error", /** FSDPE_INTERNAL_ERROR **/
  "Invalid function parameters", /** FSDPE_INVALID_PARAMETER **/
  "Buffer overflow" /** FSDPE_BUFFER_OVERFLOW **/
};


const char *
fsdp_strerror (fsdp_error_t err_no)
{
  return (fsdp_error_t_s[err_no]);
}

#endif /* FSDP_ERRORLIST_C */