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
|
/*
* libmsn
*
* Copyright (C) 1999, Shane P. Brady <shane@jxie.com>
*
* This program 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
*
*/
#ifndef __ERRORS__
#define __ERRORS__
#define ERR_SYNTAX_ERROR 200
#define ERR_INVALID_PARAMETER 201
#define ERR_INVALID_USER 205
#define ERR_FQDN_MISSING 206
#define ERR_ALREADY_LOGIN 207
#define ERR_INVALID_USERNAME 208
#define ERR_INVALID_FRIENDLY_NAME 209
#define ERR_LIST_FULL 210
#define ERR_ALREADY_THERE 215
#define ERR_NOT_ON_LIST 216
#define ERR_ALREADY_IN_THE_MODE 218
#define ERR_ALREADY_IN_OPPOSITE_LIST 219
#define ERR_SWITCHBOARD_FAILED 280
#define ERR_NOTIFY_XFR_FAILED 281
#define ERR_REQUIRED_FIELDS_MISSING 300
#define ERR_NOT_LOGGED_IN 302
#define ERR_INTERNAL_SERVER 500
#define ERR_DB_SERVER 501
#define ERR_FILE_OPERATION 510
#define ERR_MEMORY_ALLOC 520
#define ERR_SERVER_BUSY 600
#define ERR_SERVER_UNAVAILABLE 601
#define ERR_PEER_NS_DOWN 602
#define ERR_DB_CONNECT 603
#define ERR_SERVER_GOING_DOWN 604
#define ERR_CREATE_CONNECTION 707
#define ERR_BLOCKING_WRITE 711
#define ERR_SESSION_OVERLOAD 712
#define ERR_USER_TOO_ACTIVE 713
#define ERR_TOO_MANY_SESSIONS 714
#define ERR_NOT_EXPECTED 715
#define ERR_BAD_FRIEND_FILE 717
#define ERR_AUTHENTICATION_FAILED 911
#define ERR_NOT_ALLOWED_WHEN_OFFLINE 913
#define ERR_NOT_ACCEPTING_NEW_USERS 920
/*
** Name: MSN_ErrorString
** Purpose: This function returns the error string associated with a particular
** code
** Input: buffer - where to store message
** code - error code
** Output: 0 if code found, -1 if not
*/
int MSN_ErrorString(char *buffer, int code);
#endif
|