/*
 * This file was automatically generated with ILU (version 2.0beta1) tools
 * at Tue Sep 21 10:58:28 1999 by `nobody'
 * running "c:/iluwin/bin/c-stubber.exe" of Tue Sep 21 10:50:33 1999
 * on "C:/iluwin/examples/ngtest/ngform.isl" of Mon Sep 20 15:54:11 1999,
 * and "ngbasic.isl" of Mon Sep 20 15:54:11 1999,
 * and "ianacharsets.isl" of Mon Sep 20 15:54:10 1999,
 * and "ngcache.isl" of Mon Sep 20 15:54:11 1999,
 * and "ngrendering.isl" of Mon Sep 20 15:54:12 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 "NgFormProcessor.h"

NgRendering_Rendering* _NgFormProcessor_FormProcessor_ProcessForm__clientstub (NgFormProcessor_FormProcessor _handle, NgFormProcessor_FormInputElementSequence* formEntries, NgCache_OptionalResponseCacheControl* responseCacheInfo, ILU_C_ENVIRONMENT *_status)
{
  NgRendering_Rendering* _retvalue;
  static struct _ILU_C_ExceptionDescription_s _evec[] = {
    { sizeof(NgBasic_NameSequence), ILU_NIL, 0, 0, (ILU_C_InputFn) _NgBasic_NameSequence__Input, (ILU_C_FreeFn) NgBasic_NameSequence__Free },
    { sizeof(NgBasic_ExceptionInformation), ILU_NIL, 0, 0, (ILU_C_InputFn) _NgBasic_ExceptionInformation__Input, (ILU_C_FreeFn) NgBasic_ExceptionInformation__Free },
    { sizeof(NgBasic_ExceptionInformation), ILU_NIL, 0, 0, (ILU_C_InputFn) _NgBasic_ExceptionInformation__Input, (ILU_C_FreeFn) NgBasic_ExceptionInformation__Free },
    { sizeof(NgBasic_ExceptionInformation), ILU_NIL, 0, 0, (ILU_C_InputFn) _NgBasic_ExceptionInformation__Input, (ILU_C_FreeFn) NgBasic_ExceptionInformation__Free }};

  _ILU_C_ParmDesc __parmsBlock[3];
  __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_NgRendering_Rendering;
  __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_NgFormProcessor_FormInputElementSequence;
  __parmsBlock[1].parm_val  = (void *) formEntries;
  __parmsBlock[2].parm_in  = 0;
  __parmsBlock[2].parm_out = 1;
  __parmsBlock[2].parm_needs_assignment   = 0;
  __parmsBlock[2].parm_needs_dereference  = 0;
  __parmsBlock[2].parm_type = TC_NgCache_OptionalResponseCacheControl;
  __parmsBlock[2].parm_val  = (void *) responseCacheInfo;
  _ILU_C_VectorCall (_NgFormProcessor_FormProcessor__ILUType, &_NgFormProcessor_FormProcessor__ILUType->cl_methods[0],
                     _evec, _handle, _status, 3, __parmsBlock);
  return _retvalue;
}

void _NgFormProcessor_FormProcessor_SendFormReply__clientstub (NgFormProcessor_FormProcessor _handle, NgFormProcessor_FormInputElementSequence* formEntries, NgFormProcessor_ProcessedFormSink formSink, ILU_C_ENVIRONMENT *_status)
{
  _ILU_C_ParmDesc __parmsBlock[2];
  __parmsBlock[0].parm_in  = 1;
  __parmsBlock[0].parm_out = 0;
  __parmsBlock[0].parm_needs_assignment   = 0;
  __parmsBlock[0].parm_needs_dereference  = 0;
  __parmsBlock[0].parm_type = TC_NgFormProcessor_FormInputElementSequence;
  __parmsBlock[0].parm_val  = (void *) formEntries;
  __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_NgFormProcessor_ProcessedFormSink;
  __parmsBlock[1].parm_val  = (void *) formSink;
  _ILU_C_VectorCall (_NgFormProcessor_FormProcessor__ILUType, &_NgFormProcessor_FormProcessor__ILUType->cl_methods[1],
                     ILU_NIL, _handle, _status, 2, __parmsBlock);
  return;
}

void _NgFormProcessor_FormProcessor_SendFormReplySynched__clientstub (NgFormProcessor_FormProcessor _handle, NgFormProcessor_FormInputElementSequence* formEntries, NgFormProcessor_ProcessedFormSink formSink, ILU_C_ENVIRONMENT *_status)
{
  _ILU_C_ParmDesc __parmsBlock[2];
  __parmsBlock[0].parm_in  = 1;
  __parmsBlock[0].parm_out = 0;
  __parmsBlock[0].parm_needs_assignment   = 0;
  __parmsBlock[0].parm_needs_dereference  = 0;
  __parmsBlock[0].parm_type = TC_NgFormProcessor_FormInputElementSequence;
  __parmsBlock[0].parm_val  = (void *) formEntries;
  __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_NgFormProcessor_ProcessedFormSink;
  __parmsBlock[1].parm_val  = (void *) formSink;
  _ILU_C_VectorCall (_NgFormProcessor_FormProcessor__ILUType, &_NgFormProcessor_FormProcessor__ILUType->cl_methods[2],
                     ILU_NIL, _handle, _status, 2, __parmsBlock);
  return;
}

static ILU_C_Class _NgFormProcessor_FormProcessor__SurrogateClass = 0;
NgFormProcessor_FormProcessor NgFormProcessor_FormProcessor__CreateFromSBH (char *sbh, ILU_C_ENVIRONMENT * env)
{
  return (NgFormProcessor_FormProcessor) (ILU_C_SBHToObject(sbh, _NgFormProcessor_FormProcessor__ILUType, env));
}

void _NgFormProcessor_ProcessedFormSink_FormProblem__clientstub (NgFormProcessor_ProcessedFormSink _handle, NgFormProcessor_FormProblemReport* report, ILU_C_ENVIRONMENT *_status)
{
  _ILU_C_ParmDesc __parmsBlock[1];
  __parmsBlock[0].parm_in  = 1;
  __parmsBlock[0].parm_out = 0;
  __parmsBlock[0].parm_needs_assignment   = 0;
  __parmsBlock[0].parm_needs_dereference  = 0;
  __parmsBlock[0].parm_type = TC_NgFormProcessor_FormProblemReport;
  __parmsBlock[0].parm_val  = (void *) report;
  _ILU_C_VectorCall (_NgFormProcessor_ProcessedFormSink__ILUType, &_NgFormProcessor_ProcessedFormSink__ILUType->cl_methods[0],
                     ILU_NIL, _handle, _status, 1, __parmsBlock);
  return;
}

static ILU_C_Class _NgFormProcessor_ProcessedFormSink__SurrogateClass = 0;
NgFormProcessor_ProcessedFormSink NgFormProcessor_ProcessedFormSink__CreateFromSBH (char *sbh, ILU_C_ENVIRONMENT * env)
{
  return (NgFormProcessor_ProcessedFormSink) (ILU_C_SBHToObject(sbh, _NgFormProcessor_ProcessedFormSink__ILUType, env));
}

void NgFormProcessor__Initialize(void)
{
  extern void _NgFormProcessor__GeneralInitialization(void);

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

  NgBasic__Initialize();
  IANA_Charsets_Registry__Initialize();
  NgCache__Initialize();
  NgRendering__Initialize();
  _NgFormProcessor__GeneralInitialization();
  _NgFormProcessor_FormProcessor__SurrogateClass = NgFormProcessor_FormProcessor__MakeClass(
    _NgFormProcessor_FormProcessor_ProcessForm__clientstub,
    _NgFormProcessor_FormProcessor_SendFormReply__clientstub,
    _NgFormProcessor_FormProcessor_SendFormReplySynched__clientstub,
    _NgBasic_NgObject_GetInterfaceDefinitionSource__clientstub,
    0 /* no finalization */
    );
  _ILU_C_RegisterSurrogateCType (_NgFormProcessor_FormProcessor__ILUType,
	_NgFormProcessor_FormProcessor__SurrogateClass);
  _NgFormProcessor_ProcessedFormSink__SurrogateClass = NgFormProcessor_ProcessedFormSink__MakeClass(
    _NgFormProcessor_ProcessedFormSink_FormProblem__clientstub,
    _NgRendering_RenderingSink_RegisterResponseCacheControl__clientstub,
    _NgRendering_RenderingSink_RenderingProblem__clientstub,
    _NgRendering_RenderingSink_ReceiveRendering__clientstub,
    _NgRendering_RenderingSink_ReceiveRenderingChunk__clientstub,
    _NgRendering_RenderingSink_Resynchronize__clientstub,
    _NgStream_DataSink_RegisterSourceControl__clientstub,
    _NgStream_DataSink_Done__clientstub,
    _NgBasic_NgObject_GetInterfaceDefinitionSource__clientstub,
    0 /* no finalization */
    );
  _ILU_C_RegisterSurrogateCType (_NgFormProcessor_ProcessedFormSink__ILUType,
	_NgFormProcessor_ProcessedFormSink__SurrogateClass);
  return;
}
