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

CORBA_long _Test2_P_SR_to_I__clientstub (Test2_P _handle, CORBA_float i, ILU_C_ENVIRONMENT *_status)
{
  CORBA_long _retvalue;
  _ILU_C_ParmDesc __parmsBlock[2];
  __parmsBlock[0].parm_in  = 0;
  __parmsBlock[0].parm_out = 1;
  __parmsBlock[0].parm_needs_assignment   = 0;
  __parmsBlock[0].parm_needs_dereference  = 0;
  __parmsBlock[0].parm_type = TC_CORBA_long;
  __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_float;
  __parmsBlock[1].parm_val  = (void *) &i;
  _ILU_C_VectorCall (_Test2_P__ILUType, &_Test2_P__ILUType->cl_methods[0],
                     ILU_NIL, _handle, _status, 2, __parmsBlock);
  return _retvalue;
}

static ILU_C_Class _Test2_P__SurrogateClass = 0;
Test2_P Test2_P__CreateFromSBH (char *sbh, ILU_C_ENVIRONMENT * env)
{
  return (Test2_P) (ILU_C_SBHToObject(sbh, _Test2_P__ILUType, env));
}

void Test2__Initialize(void)
{
  extern void _Test2__GeneralInitialization(void);

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

  Test1__Initialize();
  _Test2__GeneralInitialization();
  _Test2_P__SurrogateClass = Test2_P__MakeClass(
    _Test2_P_SR_to_I__clientstub,
    0 /* no finalization */
    );
  _ILU_C_RegisterSurrogateCType (_Test2_P__ILUType,
	_Test2_P__SurrogateClass);
  return;
}
