/*
 * This file was automatically generated with ILU (version 2.0beta1) tools
 * at Tue Sep 21 11:46:00 1999 by `nobody'
 * running "c:/iluwin/bin/c-stubber.exe" of Tue Sep 21 10:50:33 1999
 * on "C:/iluwin/examples/httest/iluhttp.isl" of Mon Sep 20 15:51:46 1999,
 * and "c:/iluwin/interfaces/ilu.isl" of Mon Sep 20 15:51:47 1999.
 *
 * ILU is Copyright 1991-1999 Xerox Corporation, All Rights Reserved.
 * ILU information:  ftp://ftp.parc.xerox.com/pub/ilu/ilu.html.
 */

#include "iluhttp.h"

iluhttp_Response* _iluhttp_Resource_GET__clientstub (iluhttp_Resource _handle, iluhttp_Request* request, ILU_C_ENVIRONMENT *_status)
{
  iluhttp_Response* _retvalue;
  _ILU_C_ParmDesc __parmsBlock[2];
  __parmsBlock[0].parm_in  = 0;
  __parmsBlock[0].parm_out = 1;
  __parmsBlock[0].parm_needs_assignment   = 1;
  __parmsBlock[0].parm_needs_dereference  = 0;
  __parmsBlock[0].parm_type = TC_iluhttp_Response;
  __parmsBlock[0].parm_val  = (void *) &_retvalue;
  __parmsBlock[1].parm_in  = 1;
  __parmsBlock[1].parm_out = 0;
  __parmsBlock[1].parm_needs_assignment   = 0;
  __parmsBlock[1].parm_needs_dereference  = 0;
  __parmsBlock[1].parm_type = TC_iluhttp_Request;
  __parmsBlock[1].parm_val  = (void *) request;
  _ILU_C_VectorCall (_iluhttp_Resource__ILUType, &_iluhttp_Resource__ILUType->cl_methods[0],
                     ILU_NIL, _handle, _status, 2, __parmsBlock);
  return _retvalue;
}

iluhttp_Response* _iluhttp_Resource_HEAD__clientstub (iluhttp_Resource _handle, iluhttp_Request* request, ILU_C_ENVIRONMENT *_status)
{
  iluhttp_Response* _retvalue;
  _ILU_C_ParmDesc __parmsBlock[2];
  __parmsBlock[0].parm_in  = 0;
  __parmsBlock[0].parm_out = 1;
  __parmsBlock[0].parm_needs_assignment   = 1;
  __parmsBlock[0].parm_needs_dereference  = 0;
  __parmsBlock[0].parm_type = TC_iluhttp_Response;
  __parmsBlock[0].parm_val  = (void *) &_retvalue;
  __parmsBlock[1].parm_in  = 1;
  __parmsBlock[1].parm_out = 0;
  __parmsBlock[1].parm_needs_assignment   = 0;
  __parmsBlock[1].parm_needs_dereference  = 0;
  __parmsBlock[1].parm_type = TC_iluhttp_Request;
  __parmsBlock[1].parm_val  = (void *) request;
  _ILU_C_VectorCall (_iluhttp_Resource__ILUType, &_iluhttp_Resource__ILUType->cl_methods[1],
                     ILU_NIL, _handle, _status, 2, __parmsBlock);
  return _retvalue;
}

iluhttp_Response* _iluhttp_Resource_POST__clientstub (iluhttp_Resource _handle, iluhttp_Request* request, ILU_C_ENVIRONMENT *_status)
{
  iluhttp_Response* _retvalue;
  _ILU_C_ParmDesc __parmsBlock[2];
  __parmsBlock[0].parm_in  = 0;
  __parmsBlock[0].parm_out = 1;
  __parmsBlock[0].parm_needs_assignment   = 1;
  __parmsBlock[0].parm_needs_dereference  = 0;
  __parmsBlock[0].parm_type = TC_iluhttp_Response;
  __parmsBlock[0].parm_val  = (void *) &_retvalue;
  __parmsBlock[1].parm_in  = 1;
  __parmsBlock[1].parm_out = 0;
  __parmsBlock[1].parm_needs_assignment   = 0;
  __parmsBlock[1].parm_needs_dereference  = 0;
  __parmsBlock[1].parm_type = TC_iluhttp_Request;
  __parmsBlock[1].parm_val  = (void *) request;
  _ILU_C_VectorCall (_iluhttp_Resource__ILUType, &_iluhttp_Resource__ILUType->cl_methods[2],
                     ILU_NIL, _handle, _status, 2, __parmsBlock);
  return _retvalue;
}

static ILU_C_Class _iluhttp_Resource__SurrogateClass = 0;
iluhttp_Resource iluhttp_Resource__CreateFromSBH (char *sbh, ILU_C_ENVIRONMENT * env)
{
  return (iluhttp_Resource) (ILU_C_SBHToObject(sbh, _iluhttp_Resource__ILUType, env));
}

void iluhttp__Initialize(void)
{
  extern void _iluhttp__GeneralInitialization(void);

  static ilu_boolean initialized = ilu_FALSE;
  if (initialized) return;
  initialized = ilu_TRUE;

  _iluhttp__GeneralInitialization();
  _iluhttp_Resource__SurrogateClass = iluhttp_Resource__MakeClass(
    _iluhttp_Resource_GET__clientstub,
    _iluhttp_Resource_HEAD__clientstub,
    _iluhttp_Resource_POST__clientstub,
    0 /* no finalization */
    );
  _ILU_C_RegisterSurrogateCType (_iluhttp_Resource__ILUType,
	_iluhttp_Resource__SurrogateClass);
  return;
}
