/*
** xiperr.c for  in 
** 
** Made by 
** Login   <vianney@epita.fr>
** 
** Started on  Wed Sep  1 08:27:12 1999 
** Last update Thu Oct 28 20:24:06 1999 
*/
#include "xiperr.h"

char		*err_xip_list[] = 
{
  "Error 0",					/* 0 */
  "Can't reply",				/* 1 */
  "Internal error",				/* 2 */
  "Packet is in use",				/* 3 */
  "Syntax error",				/* 4 */
  "Error occured in a subroutine",		/* 5 */
  "Syscall error",				/* 6 */
  "No method",					/* 7 */
  "Open error",					/* 8 */
  "Missing variable",				/* 9 */
  "Can't handle",				/* 10 */
  "No such variable",				/* 11 */
  "No entry",					/* 12 */
  "Write error",				/* 13 */
  "Read error",					/* 14 */
  "Bad X event",				/* 15 */
  "Not implemented",				/* 16 */
  "Error occured in a child process",		/* 17 */
  "Need at least one argument",			/* 18 */
  "Bad message length",				/* 19 */
  "Too many arguments",				/* 20 */
  "No choices",					/* 21 */
  "Bad socket length",				/* 22 */
  "Bad socket family",				/* 23 */
  "Bad socket member",				/* 24 */ 
  "Socket feature not implemented",		/* 25 */
  "No method get choices",			/* 26 */
};

t_status	err_xip_init(VOID_DECL)
{
  t_status	status;
  int		i;

  assert(err_id);
  i = 0;
  while (i < ARRAY_COUNT(err_xip_list))
    {
      if ((status = id_add(err_id,
			   (VOID_PTR)(ERR_XIP_START + i),
			   err_xip_list[i])) != 0)
	return (status);
      i++;
    }
  return (0);
}	
