Back to index

lightning-sunbird  0.9+nobinonly
XIErrors.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is Mozilla Communicator client code, released
00016  * March 31, 1998.
00017  *
00018  * The Initial Developer of the Original Code is
00019  * Netscape Communications Corporation.
00020  * Portions created by the Initial Developer are Copyright (C) 1998
00021  * the Initial Developer. All Rights Reserved.
00022  *
00023  * Contributor(s):
00024  *   Samir Gehani <sgehani@netscape.com>
00025  *
00026  * Alternatively, the contents of this file may be used under the terms of
00027  * either the GNU General Public License Version 2 or later (the "GPL"), or
00028  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00029  * in which case the provisions of the GPL or the LGPL are applicable instead
00030  * of those above. If you wish to allow use of your version of this file only
00031  * under the terms of either the GPL or the LGPL, and not to allow others to
00032  * use your version of this file under the terms of the MPL, indicate your
00033  * decision by deleting the provisions above and replace them with the notice
00034  * and other provisions required by the GPL or the LGPL. If you do not delete
00035  * the provisions above, a recipient may use your version of this file under
00036  * the terms of any one of the MPL, the GPL or the LGPL.
00037  *
00038  * ***** END LICENSE BLOCK ***** */
00039 
00040 #ifndef _XI_ERRORS_H_
00041 #define _XI_ERRORS_H_
00042 
00043 #include <stdio.h>
00044 #include <string.h>
00045 #include <unistd.h>
00046 #include <stdlib.h>
00047 #include <sys/param.h>
00048 #include <gtk/gtk.h>
00049 
00050 /*------------------------------------------------------------------*
00051  *   X Installer Errors
00052  *------------------------------------------------------------------*/
00053     enum
00054     {
00055         OK              = 0,
00056         E_MEM           = -601,     /* out of memory */
00057         E_PARAM         = -602,     /* invalid param */
00058         E_NO_MEMBER     = -603,     /* invalid member variable */
00059         E_INVALID_PTR   = -604,     /* invalid pointer */
00060         E_INVALID_KEY   = -605,     /* parse key has no value */
00061         E_EMPTY_README  = -606,     /* failed to read readme */
00062         E_EMPTY_LICENSE = -607,     /* failed to read license */
00063         E_OUT_OF_BOUNDS = -608,     /* out of bounds of comp/st list */
00064         E_REF_COUNT     = -609,     /* mismatched ref counts: mem leak */
00065         E_NO_COMPONENTS = -610,     /* no components in the INI file */
00066         E_NO_SETUPTYPES = -611,     /* no setup types in the INI file */
00067         E_URL_ALREADY   = -612,     /* URL at this index already exists */
00068         E_DIR_CREATE    = -613,     /* couldn't create the directory (tmp) */
00069         E_BAD_FTP_URL   = -614,     /* ftp url malformed */
00070         E_NO_DOWNLOAD   = -615,     /* download failed  */
00071         E_EXTRACTION    = -616,     /* extraction of xpcom failed */
00072         E_FORK_FAILED   = -617,     /* failed to fork a process */
00073         E_LIB_OPEN      = -618,     /* couldn't open stub lib */
00074         E_LIB_SYM       = -619,     /* couldn't get symbol in lib */
00075         E_XPI_FAIL      = -620,     /* a xpistub call failed */
00076         E_INSTALL       = -621,     /* a .xpi failed to install */
00077         E_CP_FAIL       = -622,     /* copy of a xpi failed */
00078         E_NO_DEST       = -623,     /* destination dir doesn't exist */
00079         E_MKDIR_FAIL    = -624,     /* can't make destination dir */
00080         E_OLD_INST      = -625,     /* old instllation exists */
00081         E_NO_PERMS      = -626,     /* don't have rwx perms on selected dir */
00082         E_NO_DISK_SPACE = -627,     /* not eough disk space to install */
00083         E_CRC_FAILED    = -628,     /* CRC failed */
00084         E_USAGE_SHOWN   = -629      /* showed the usage message */
00085     };
00086 
00087 #endif /* _XI_ERRORS_H_ */