Logo Search packages:      
Sourcecode: katoob version File versions  Download package

lderrno.h

/* lderrno.h
 * sdyoung@well.com
 *
 * This is where the declarations for ld_errno go.  ld_errno
 * is almost always set to the numeric code of the server return
 * message, however it may also be set to LDERRNO which tells the
 * client to look in regular errno. 
 *
 *   Copyright (c) 2001, 2002 Steven Young
 *
 *   Permission is hereby granted, free of charge, to any person obtaining
 *   a copy of this software and associated documentation files (the
 *   "Software"), to deal in the Software without restriction, including
 *   without limitation the rights to use, copy, modify, merge, publish,
 *   distribute, sublicense, and/or sell copies of the Software, and to
 *   permit persons to whom the Software is furnished to do so, subject to
 *   the following conditions:
 *
 *   The above copyright notice and this permission notice shall be
 *   included in all copies or substantial portions of the Software.
 *
 *   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 *   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 *   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 *   IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 *   CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 *   TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 *   SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 *
 * $Header: /home/arabeyes/cvs/projects/katoob/src/libdict/include/lderrno.h,v 1.1 2003/09/12 08:32:13 sameer Exp $
 * $Log: lderrno.h,v $
 * Revision 1.1  2003/09/12 08:32:13  sameer
 * libdict-0.9: initial import
 *
 * Revision 1.4  2002/03/15 18:41:23  sdyoung
 * Added license info to comment header.
 *
 * Revision 1.3  2002/03/13 21:06:29  sdyoung
 * Removed global ld_errno variable.  It's in dictconn now.
 *
 * Revision 1.2  2001/10/18 00:52:03  sdyoung
 * Added support for LDTIMEOUT.
 *
 * Revision 1.1  2001/03/03 10:08:36  sdyoung
 * Initial revision
 *
 */
#ifndef _LDERRNO_H
#define _LDERRNO_H

/* only two #defines here */
#define LDOK 0                /* nothing wrong */
#define LDERRNO 1       /* see errno */
#define LDBADARG 2            /* function was passed a bad argument */
#define LDNOMATCH 3           /* no matches for query */
#define LDBADPROTO 4    /* something strange happened with the protocol */
#define LDTIMEOUT 5           /* operation timed out */
#define LDERRMAX 5            /* maximum value for ld_errno */

/* protos */
char *ld_strerror(int errnum);

#endif /* !_LDERRNO_H */

Generated by  Doxygen 1.6.0   Back to index