/*
 * This file was automatically generated with ILU (version 2.0beta1) tools
 * at Tue Sep 21 11:44:19 1999 by `nobody'
 * running "c:/iluwin/bin/c-stubber.exe" of Tue Sep 21 10:50:33 1999
 * on "C:/iluwin/examples/test1/Test3.isl" of Mon Sep 20 15:53:46 1999,
 * and "C:/iluwin/examples/test1/Test1.isl" of Mon Sep 20 15:53:47 1999,
 * and "C:/iluwin/examples/test1/Test2.isl" of Mon Sep 20 15:53:44 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 "Test3.h"

Test2_T1U* _Test3_O_I_to_Test1U__clientstub (Test3_O _handle, CORBA_long i, ILU_C_ENVIRONMENT *_status)
{
  Test2_T1U* _retvalue;
  static struct _ILU_C_ExceptionDescription_s _evec[] = {
    { sizeof(ilu_CString), ILU_NIL, 0, 0, (ILU_C_InputFn) _ilu_CString__Input, (ILU_C_FreeFn) ilu_CString__Free },
    { sizeof(Test1_TheU), ILU_NIL, 0, 0, (ILU_C_InputFn) _Test1_TheU__Input, (ILU_C_FreeFn) Test1_TheU__Free }};

  _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_Test2_T1U;
  __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_CORBA_long;
  __parmsBlock[1].parm_val  = (void *) &i;
  _ILU_C_VectorCall (_Test3_O__ILUType, &_Test3_O__ILUType->cl_methods[0],
                     _evec, _handle, _status, 2, __parmsBlock);
  return _retvalue;
}

static ILU_C_Class _Test3_O__SurrogateClass = 0;
Test3_O Test3_O__CreateFromSBH (char *sbh, ILU_C_ENVIRONMENT * env)
{
  return (Test3_O) (ILU_C_SBHToObject(sbh, _Test3_O__ILUType, env));
}

void Test3__Initialize(void)
{
  extern void _Test3__GeneralInitialization(void);

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

  Test1__Initialize();
  Test2__Initialize();
  _Test3__GeneralInitialization();
  _Test3_O__SurrogateClass = Test3_O__MakeClass(
    _Test3_O_I_to_Test1U__clientstub,
    _Test1_O3_RS_R_to_R_IS__clientstub,
    _Test1_O3_O1_U_to_U__clientstub,
    _Test1_O3_BS_to_I__clientstub,
    _Test2_P_SR_to_I__clientstub,
    0 /* no finalization */
    );
  _ILU_C_RegisterSurrogateCType (_Test3_O__ILUType,
	_Test3_O__SurrogateClass);
  return;
}
