Logo Search packages:      
Sourcecode: sanduhr version File versions  Download package

sanduhr-stubs.c

/*
 * This file was generated by orbit-idl - DO NOT EDIT!
 */

#include <string.h>
#include "sanduhr.h"

void
_ORBIT_SandUhr_AlarmAction_DeliveryFailed_demarshal(GIOPRecvBuffer *
                                        _ORBIT_recv_buffer,
                                        CORBA_Environment * ev)
{
   guchar *_ORBIT_curptr;
   register CORBA_unsigned_long _ORBIT_tmpvar_0;
   CORBA_unsigned_long _ORBIT_tmpvar_1;
   SandUhr_AlarmAction_DeliveryFailed *_ORBIT_exdata =
      SandUhr_AlarmAction_DeliveryFailed__alloc();
   _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
   if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
      _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
      (*((guint32 *) & (_ORBIT_tmpvar_1))) =
       GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
      _ORBIT_curptr += 4;
      (*_ORBIT_exdata).Reason = CORBA_string_alloc(_ORBIT_tmpvar_1);
      memcpy((*_ORBIT_exdata).Reason, _ORBIT_curptr,
           sizeof((*_ORBIT_exdata).Reason[_ORBIT_tmpvar_0]) *
           _ORBIT_tmpvar_1);
      _ORBIT_curptr +=
       sizeof((*_ORBIT_exdata).Reason[_ORBIT_tmpvar_0]) * _ORBIT_tmpvar_1;
   } else {
      _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
      _ORBIT_tmpvar_1 = *((CORBA_unsigned_long *) _ORBIT_curptr);
      _ORBIT_curptr += 4;
      (*_ORBIT_exdata).Reason = CORBA_string_alloc(_ORBIT_tmpvar_1);
      memcpy((*_ORBIT_exdata).Reason, _ORBIT_curptr,
           sizeof((*_ORBIT_exdata).Reason[_ORBIT_tmpvar_0]) *
           _ORBIT_tmpvar_1);
      _ORBIT_curptr +=
       sizeof((*_ORBIT_exdata).Reason[_ORBIT_tmpvar_0]) * _ORBIT_tmpvar_1;
   }
   CORBA_exception_set(ev, CORBA_USER_EXCEPTION,
                   TC_SandUhr_AlarmAction_DeliveryFailed_struct.repo_id,
                   _ORBIT_exdata);
}

CORBA_boolean
SandUhr_AlarmAction__get_NeedsPopup(SandUhr_AlarmAction _obj,
                            CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;
   CORBA_boolean _ORBIT_retval;

   if (_obj->servant && _obj->vepv && SandUhr_AlarmAction__classid) {
      _ORBIT_retval =
       ((POA_SandUhr_AlarmAction__epv *) _obj->
        vepv[SandUhr_AlarmAction__classid])->_get_NeedsPopup(_obj->servant,
                                                 ev);
      return _ORBIT_retval;
   }
   if (0)
      return *(&_ORBIT_retval);
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[16];
      }
      _ORBIT_operation_name_data =
      {
      16, "_get_NeedsPopup"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 20 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
       _ORBIT_retval = *((CORBA_boolean *) _ORBIT_curptr);
      } else {
       _ORBIT_retval = *((CORBA_boolean *) _ORBIT_curptr);
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return _ORBIT_retval;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return _ORBIT_retval;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return _ORBIT_retval;
      }
   }
}
void
SandUhr_AlarmAction_Attach(SandUhr_AlarmAction _obj, const SandUhr_Timer T,
                     CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;

   if (_obj->servant && _obj->vepv && SandUhr_AlarmAction__classid) {
      ((POA_SandUhr_AlarmAction__epv *) _obj->
       vepv[SandUhr_AlarmAction__classid])->Attach(_obj->servant, T, ev);
      return;
   }
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[7];
      }
      _ORBIT_operation_name_data =
      {
      7, "Attach"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 11 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      ORBit_marshal_object(_ORBIT_send_buffer, T);
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
      } else {
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return;
      }
   }
}
void
SandUhr_AlarmAction_Detach(SandUhr_AlarmAction _obj, const SandUhr_Timer T,
                     CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;

   if (_obj->servant && _obj->vepv && SandUhr_AlarmAction__classid) {
      ((POA_SandUhr_AlarmAction__epv *) _obj->
       vepv[SandUhr_AlarmAction__classid])->Detach(_obj->servant, T, ev);
      return;
   }
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[7];
      }
      _ORBIT_operation_name_data =
      {
      7, "Detach"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 11 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      ORBit_marshal_object(_ORBIT_send_buffer, T);
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
      } else {
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return;
      }
   }
}
void
SandUhr_AlarmAction_Deliver(SandUhr_AlarmAction _obj,
                      const CORBA_char * TimeSpec,
                      const CORBA_char * Message,
                      CORBA_Environment * ev)
{
   static const ORBit_exception_demarshal_info _ORBIT_user_exceptions[] =
      { {(const CORBA_TypeCode) &TC_SandUhr_AlarmAction_DeliveryFailed_struct,
       (gpointer) _ORBIT_SandUhr_AlarmAction_DeliveryFailed_demarshal},
      {CORBA_OBJECT_NIL, NULL} };
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;

   if (_obj->servant && _obj->vepv && SandUhr_AlarmAction__classid) {
      ((POA_SandUhr_AlarmAction__epv *) _obj->
       vepv[SandUhr_AlarmAction__classid])->Deliver(_obj->servant, TimeSpec,
                                        Message, ev);
      return;
   }
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[8];
      }
      _ORBIT_operation_name_data =
      {
      8, "Deliver"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 12 };
      register CORBA_unsigned_long _ORBIT_tmpvar_0;
      CORBA_unsigned_long _ORBIT_tmpvar_1;
      register CORBA_unsigned_long _ORBIT_tmpvar_2;
      CORBA_unsigned_long _ORBIT_tmpvar_3;

      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_tmpvar_1 = strlen(TimeSpec) + 1;
      giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
                               (_ORBIT_send_buffer), 4);
      {
       guchar *_ORBIT_t;

       _ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_1));
       memcpy(_ORBIT_t, &(_ORBIT_tmpvar_1), sizeof(_ORBIT_tmpvar_1));
       giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
                              (_ORBIT_send_buffer), (_ORBIT_t),
                              sizeof(_ORBIT_tmpvar_1));
      }
      giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer),
                             (TimeSpec),
                             sizeof(TimeSpec[_ORBIT_tmpvar_0]) *
                             _ORBIT_tmpvar_1);
      _ORBIT_tmpvar_3 = strlen(Message) + 1;
      giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
                               (_ORBIT_send_buffer), 4);
      {
       guchar *_ORBIT_t;

       _ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_3));
       memcpy(_ORBIT_t, &(_ORBIT_tmpvar_3), sizeof(_ORBIT_tmpvar_3));
       giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
                              (_ORBIT_send_buffer), (_ORBIT_t),
                              sizeof(_ORBIT_tmpvar_3));
      }
      giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer),
                             (Message),
                             sizeof(Message[_ORBIT_tmpvar_2]) *
                             _ORBIT_tmpvar_3);
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
      } else {
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev,
                        _ORBIT_user_exceptions, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return;
      }
   }
}
CORBA_unsigned_short
SandUhr_AlarmBeep__get_Count(SandUhr_AlarmBeep _obj, CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;
   CORBA_unsigned_short _ORBIT_retval;

   if (_obj->servant && _obj->vepv && SandUhr_AlarmBeep__classid) {
      _ORBIT_retval =
       ((POA_SandUhr_AlarmBeep__epv *) _obj->
        vepv[SandUhr_AlarmBeep__classid])->_get_Count(_obj->servant, ev);
      return _ORBIT_retval;
   }
   if (0)
      return *(&_ORBIT_retval);
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[11];
      }
      _ORBIT_operation_name_data =
      {
      11, "_get_Count"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 15 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
       _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 2);
       (*((guint16 *) & (_ORBIT_retval))) =
          GUINT16_SWAP_LE_BE(*((guint16 *) _ORBIT_curptr));
      } else {
       _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 2);
       _ORBIT_retval = *((CORBA_unsigned_short *) _ORBIT_curptr);
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return _ORBIT_retval;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return _ORBIT_retval;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return _ORBIT_retval;
      }
   }
}
void
SandUhr_AlarmBeep__set_Count(SandUhr_AlarmBeep _obj,
                       const CORBA_unsigned_short value,
                       CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;

   if (_obj->servant && _obj->vepv && SandUhr_AlarmBeep__classid) {
      ((POA_SandUhr_AlarmBeep__epv *) _obj->
       vepv[SandUhr_AlarmBeep__classid])->_set_Count(_obj->servant, value,
                                         ev);
      return;
   }
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[11];
      }
      _ORBIT_operation_name_data =
      {
      11, "_set_Count"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 15 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
                               (_ORBIT_send_buffer), 2);
      giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer),
                             &(value), sizeof(value));
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
      } else {
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return;
      }
   }
}
CORBA_char *
SandUhr_AlarmSound__get_SoundFile(SandUhr_AlarmSound _obj,
                          CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;
   CORBA_char *_ORBIT_retval;
   register CORBA_unsigned_long _ORBIT_tmpvar_2;
   CORBA_unsigned_long _ORBIT_tmpvar_3;

   if (_obj->servant && _obj->vepv && SandUhr_AlarmSound__classid) {
      _ORBIT_retval =
       ((POA_SandUhr_AlarmSound__epv *) _obj->
        vepv[SandUhr_AlarmSound__classid])->_get_SoundFile(_obj->servant,
                                               ev);
      return _ORBIT_retval;
   }
   if (0)
      return *(&_ORBIT_retval);
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[15];
      }
      _ORBIT_operation_name_data =
      {
      15, "_get_SoundFile"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 19 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
       _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
       (*((guint32 *) & (_ORBIT_tmpvar_3))) =
          GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
       _ORBIT_curptr += 4;
       _ORBIT_retval = CORBA_string_alloc(_ORBIT_tmpvar_3);
       memcpy(_ORBIT_retval, _ORBIT_curptr,
            sizeof(_ORBIT_retval[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3);
       _ORBIT_curptr +=
          sizeof(_ORBIT_retval[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3;
      } else {
       _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
       _ORBIT_tmpvar_3 = *((CORBA_unsigned_long *) _ORBIT_curptr);
       _ORBIT_curptr += 4;
       _ORBIT_retval = CORBA_string_alloc(_ORBIT_tmpvar_3);
       memcpy(_ORBIT_retval, _ORBIT_curptr,
            sizeof(_ORBIT_retval[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3);
       _ORBIT_curptr +=
          sizeof(_ORBIT_retval[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3;
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return _ORBIT_retval;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return _ORBIT_retval;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return _ORBIT_retval;
      }
   }
}
void
SandUhr_AlarmSound__set_SoundFile(SandUhr_AlarmSound _obj,
                          const CORBA_char * value,
                          CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;

   if (_obj->servant && _obj->vepv && SandUhr_AlarmSound__classid) {
      ((POA_SandUhr_AlarmSound__epv *) _obj->
       vepv[SandUhr_AlarmSound__classid])->_set_SoundFile(_obj->servant,
                                            value, ev);
      return;
   }
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[15];
      }
      _ORBIT_operation_name_data =
      {
      15, "_set_SoundFile"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 19 };
      register CORBA_unsigned_long _ORBIT_tmpvar_0;
      CORBA_unsigned_long _ORBIT_tmpvar_1;

      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_tmpvar_1 = strlen(value) + 1;
      giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
                               (_ORBIT_send_buffer), 4);
      {
       guchar *_ORBIT_t;

       _ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_1));
       memcpy(_ORBIT_t, &(_ORBIT_tmpvar_1), sizeof(_ORBIT_tmpvar_1));
       giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
                              (_ORBIT_send_buffer), (_ORBIT_t),
                              sizeof(_ORBIT_tmpvar_1));
      }
      giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer),
                             (value),
                             sizeof(value[_ORBIT_tmpvar_0]) *
                             _ORBIT_tmpvar_1);
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
      } else {
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return;
      }
   }
}
CORBA_char *
SandUhr_AlarmCommand__get_CommandString(SandUhr_AlarmCommand _obj,
                              CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;
   CORBA_char *_ORBIT_retval;
   register CORBA_unsigned_long _ORBIT_tmpvar_2;
   CORBA_unsigned_long _ORBIT_tmpvar_3;

   if (_obj->servant && _obj->vepv && SandUhr_AlarmCommand__classid) {
      _ORBIT_retval =
       ((POA_SandUhr_AlarmCommand__epv *) _obj->
        vepv[SandUhr_AlarmCommand__classid])->_get_CommandString(_obj->
                                                   servant,
                                                   ev);
      return _ORBIT_retval;
   }
   if (0)
      return *(&_ORBIT_retval);
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[19];
      }
      _ORBIT_operation_name_data =
      {
      19, "_get_CommandString"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 23 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
       _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
       (*((guint32 *) & (_ORBIT_tmpvar_3))) =
          GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
       _ORBIT_curptr += 4;
       _ORBIT_retval = CORBA_string_alloc(_ORBIT_tmpvar_3);
       memcpy(_ORBIT_retval, _ORBIT_curptr,
            sizeof(_ORBIT_retval[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3);
       _ORBIT_curptr +=
          sizeof(_ORBIT_retval[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3;
      } else {
       _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
       _ORBIT_tmpvar_3 = *((CORBA_unsigned_long *) _ORBIT_curptr);
       _ORBIT_curptr += 4;
       _ORBIT_retval = CORBA_string_alloc(_ORBIT_tmpvar_3);
       memcpy(_ORBIT_retval, _ORBIT_curptr,
            sizeof(_ORBIT_retval[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3);
       _ORBIT_curptr +=
          sizeof(_ORBIT_retval[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3;
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return _ORBIT_retval;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return _ORBIT_retval;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return _ORBIT_retval;
      }
   }
}
void
SandUhr_AlarmCommand__set_CommandString(SandUhr_AlarmCommand _obj,
                              const CORBA_char * value,
                              CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;

   if (_obj->servant && _obj->vepv && SandUhr_AlarmCommand__classid) {
      ((POA_SandUhr_AlarmCommand__epv *) _obj->
       vepv[SandUhr_AlarmCommand__classid])->_set_CommandString(_obj->servant,
                                                value, ev);
      return;
   }
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[19];
      }
      _ORBIT_operation_name_data =
      {
      19, "_set_CommandString"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 23 };
      register CORBA_unsigned_long _ORBIT_tmpvar_0;
      CORBA_unsigned_long _ORBIT_tmpvar_1;

      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_tmpvar_1 = strlen(value) + 1;
      giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
                               (_ORBIT_send_buffer), 4);
      {
       guchar *_ORBIT_t;

       _ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_1));
       memcpy(_ORBIT_t, &(_ORBIT_tmpvar_1), sizeof(_ORBIT_tmpvar_1));
       giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
                              (_ORBIT_send_buffer), (_ORBIT_t),
                              sizeof(_ORBIT_tmpvar_1));
      }
      giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer),
                             (value),
                             sizeof(value[_ORBIT_tmpvar_0]) *
                             _ORBIT_tmpvar_1);
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
      } else {
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return;
      }
   }
}
void
_ORBIT_SandUhr_Timer_NotRunning_demarshal(GIOPRecvBuffer * _ORBIT_recv_buffer,
                                CORBA_Environment * ev)
{
   CORBA_exception_set(ev, CORBA_USER_EXCEPTION,
                   TC_SandUhr_Timer_NotRunning_struct.repo_id, NULL);
}

SandUhr_Timer_TimerState
SandUhr_Timer__get_State(SandUhr_Timer _obj, CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;
   SandUhr_Timer_TimerState _ORBIT_retval;

   if (_obj->servant && _obj->vepv && SandUhr_Timer__classid) {
      _ORBIT_retval =
       ((POA_SandUhr_Timer__epv *) _obj->vepv[SandUhr_Timer__classid])->
       _get_State(_obj->servant, ev);
      return _ORBIT_retval;
   }
   if (0)
      return *(&_ORBIT_retval);
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[11];
      }
      _ORBIT_operation_name_data =
      {
      11, "_get_State"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 15 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
       _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
       (*((guint32 *) & (_ORBIT_retval))) =
          GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
      } else {
       _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
       _ORBIT_retval = *((SandUhr_Timer_TimerState *) _ORBIT_curptr);
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return _ORBIT_retval;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return _ORBIT_retval;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return _ORBIT_retval;
      }
   }
}
CORBA_char *
SandUhr_Timer__get_TimeSpec(SandUhr_Timer _obj, CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;
   CORBA_char *_ORBIT_retval;
   register CORBA_unsigned_long _ORBIT_tmpvar_2;
   CORBA_unsigned_long _ORBIT_tmpvar_3;

   if (_obj->servant && _obj->vepv && SandUhr_Timer__classid) {
      _ORBIT_retval =
       ((POA_SandUhr_Timer__epv *) _obj->vepv[SandUhr_Timer__classid])->
       _get_TimeSpec(_obj->servant, ev);
      return _ORBIT_retval;
   }
   if (0)
      return *(&_ORBIT_retval);
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[14];
      }
      _ORBIT_operation_name_data =
      {
      14, "_get_TimeSpec"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 18 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
       _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
       (*((guint32 *) & (_ORBIT_tmpvar_3))) =
          GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
       _ORBIT_curptr += 4;
       _ORBIT_retval = CORBA_string_alloc(_ORBIT_tmpvar_3);
       memcpy(_ORBIT_retval, _ORBIT_curptr,
            sizeof(_ORBIT_retval[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3);
       _ORBIT_curptr +=
          sizeof(_ORBIT_retval[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3;
      } else {
       _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
       _ORBIT_tmpvar_3 = *((CORBA_unsigned_long *) _ORBIT_curptr);
       _ORBIT_curptr += 4;
       _ORBIT_retval = CORBA_string_alloc(_ORBIT_tmpvar_3);
       memcpy(_ORBIT_retval, _ORBIT_curptr,
            sizeof(_ORBIT_retval[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3);
       _ORBIT_curptr +=
          sizeof(_ORBIT_retval[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3;
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return _ORBIT_retval;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return _ORBIT_retval;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return _ORBIT_retval;
      }
   }
}
void
SandUhr_Timer__set_TimeSpec(SandUhr_Timer _obj, const CORBA_char * value,
                      CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;

   if (_obj->servant && _obj->vepv && SandUhr_Timer__classid) {
      ((POA_SandUhr_Timer__epv *) _obj->vepv[SandUhr_Timer__classid])->
       _set_TimeSpec(_obj->servant, value, ev);
      return;
   }
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[14];
      }
      _ORBIT_operation_name_data =
      {
      14, "_set_TimeSpec"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 18 };
      register CORBA_unsigned_long _ORBIT_tmpvar_0;
      CORBA_unsigned_long _ORBIT_tmpvar_1;

      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_tmpvar_1 = strlen(value) + 1;
      giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
                               (_ORBIT_send_buffer), 4);
      {
       guchar *_ORBIT_t;

       _ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_1));
       memcpy(_ORBIT_t, &(_ORBIT_tmpvar_1), sizeof(_ORBIT_tmpvar_1));
       giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
                              (_ORBIT_send_buffer), (_ORBIT_t),
                              sizeof(_ORBIT_tmpvar_1));
      }
      giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer),
                             (value),
                             sizeof(value[_ORBIT_tmpvar_0]) *
                             _ORBIT_tmpvar_1);
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
      } else {
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return;
      }
   }
}
CORBA_char *
SandUhr_Timer__get_Message(SandUhr_Timer _obj, CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;
   CORBA_char *_ORBIT_retval;
   register CORBA_unsigned_long _ORBIT_tmpvar_2;
   CORBA_unsigned_long _ORBIT_tmpvar_3;

   if (_obj->servant && _obj->vepv && SandUhr_Timer__classid) {
      _ORBIT_retval =
       ((POA_SandUhr_Timer__epv *) _obj->vepv[SandUhr_Timer__classid])->
       _get_Message(_obj->servant, ev);
      return _ORBIT_retval;
   }
   if (0)
      return *(&_ORBIT_retval);
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[13];
      }
      _ORBIT_operation_name_data =
      {
      13, "_get_Message"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 17 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
       _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
       (*((guint32 *) & (_ORBIT_tmpvar_3))) =
          GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
       _ORBIT_curptr += 4;
       _ORBIT_retval = CORBA_string_alloc(_ORBIT_tmpvar_3);
       memcpy(_ORBIT_retval, _ORBIT_curptr,
            sizeof(_ORBIT_retval[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3);
       _ORBIT_curptr +=
          sizeof(_ORBIT_retval[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3;
      } else {
       _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
       _ORBIT_tmpvar_3 = *((CORBA_unsigned_long *) _ORBIT_curptr);
       _ORBIT_curptr += 4;
       _ORBIT_retval = CORBA_string_alloc(_ORBIT_tmpvar_3);
       memcpy(_ORBIT_retval, _ORBIT_curptr,
            sizeof(_ORBIT_retval[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3);
       _ORBIT_curptr +=
          sizeof(_ORBIT_retval[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3;
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return _ORBIT_retval;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return _ORBIT_retval;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return _ORBIT_retval;
      }
   }
}
void
SandUhr_Timer__set_Message(SandUhr_Timer _obj, const CORBA_char * value,
                     CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;

   if (_obj->servant && _obj->vepv && SandUhr_Timer__classid) {
      ((POA_SandUhr_Timer__epv *) _obj->vepv[SandUhr_Timer__classid])->
       _set_Message(_obj->servant, value, ev);
      return;
   }
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[13];
      }
      _ORBIT_operation_name_data =
      {
      13, "_set_Message"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 17 };
      register CORBA_unsigned_long _ORBIT_tmpvar_0;
      CORBA_unsigned_long _ORBIT_tmpvar_1;

      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_tmpvar_1 = strlen(value) + 1;
      giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
                               (_ORBIT_send_buffer), 4);
      {
       guchar *_ORBIT_t;

       _ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_1));
       memcpy(_ORBIT_t, &(_ORBIT_tmpvar_1), sizeof(_ORBIT_tmpvar_1));
       giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
                              (_ORBIT_send_buffer), (_ORBIT_t),
                              sizeof(_ORBIT_tmpvar_1));
      }
      giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer),
                             (value),
                             sizeof(value[_ORBIT_tmpvar_0]) *
                             _ORBIT_tmpvar_1);
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
      } else {
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return;
      }
   }
}
SandUhr_AlarmAction
SandUhr_Timer__get_Alarm(SandUhr_Timer _obj, CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;
   SandUhr_AlarmAction _ORBIT_retval;

   if (_obj->servant && _obj->vepv && SandUhr_Timer__classid) {
      _ORBIT_retval =
       ((POA_SandUhr_Timer__epv *) _obj->vepv[SandUhr_Timer__classid])->
       _get_Alarm(_obj->servant, ev);
      return _ORBIT_retval;
   }
   if (0)
      return *(&_ORBIT_retval);
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[11];
      }
      _ORBIT_operation_name_data =
      {
      11, "_get_Alarm"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 15 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
       GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur = _ORBIT_curptr;
       _ORBIT_retval =
          ORBit_demarshal_object(_ORBIT_recv_buffer,
                           GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
                           connection->orb_data);
       _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      } else {
       GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur = _ORBIT_curptr;
       _ORBIT_retval =
          ORBit_demarshal_object(_ORBIT_recv_buffer,
                           GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
                           connection->orb_data);
       _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return _ORBIT_retval;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return _ORBIT_retval;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return _ORBIT_retval;
      }
   }
}
void
SandUhr_Timer__set_Alarm(SandUhr_Timer _obj, const SandUhr_AlarmAction value,
                   CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;

   if (_obj->servant && _obj->vepv && SandUhr_Timer__classid) {
      ((POA_SandUhr_Timer__epv *) _obj->vepv[SandUhr_Timer__classid])->
       _set_Alarm(_obj->servant, value, ev);
      return;
   }
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[11];
      }
      _ORBIT_operation_name_data =
      {
      11, "_set_Alarm"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 15 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      ORBit_marshal_object(_ORBIT_send_buffer, value);
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
      } else {
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return;
      }
   }
}
SandUhr_Timer_Color
SandUhr_Timer__get_SandColor(SandUhr_Timer _obj, CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;
   SandUhr_Timer_Color _ORBIT_retval;

   if (_obj->servant && _obj->vepv && SandUhr_Timer__classid) {
      _ORBIT_retval =
       ((POA_SandUhr_Timer__epv *) _obj->vepv[SandUhr_Timer__classid])->
       _get_SandColor(_obj->servant, ev);
      return _ORBIT_retval;
   }
   if (0)
      return *(&_ORBIT_retval);
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[15];
      }
      _ORBIT_operation_name_data =
      {
      15, "_get_SandColor"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 19 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
       _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 2);
       (*((guint16 *) & (_ORBIT_retval.Red))) =
          GUINT16_SWAP_LE_BE(*((guint16 *) _ORBIT_curptr));
       _ORBIT_curptr += 2;
       (*((guint16 *) & (_ORBIT_retval.Green))) =
          GUINT16_SWAP_LE_BE(*((guint16 *) _ORBIT_curptr));
       _ORBIT_curptr += 2;
       (*((guint16 *) & (_ORBIT_retval.Blue))) =
          GUINT16_SWAP_LE_BE(*((guint16 *) _ORBIT_curptr));
      } else {
       _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 2);
       memcpy(&(_ORBIT_retval), _ORBIT_curptr, sizeof(_ORBIT_retval));
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return _ORBIT_retval;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return _ORBIT_retval;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return _ORBIT_retval;
      }
   }
}
void
SandUhr_Timer__set_SandColor(SandUhr_Timer _obj,
                       const SandUhr_Timer_Color * value,
                       CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;

   if (_obj->servant && _obj->vepv && SandUhr_Timer__classid) {
      ((POA_SandUhr_Timer__epv *) _obj->vepv[SandUhr_Timer__classid])->
       _set_SandColor(_obj->servant, value, ev);
      return;
   }
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[15];
      }
      _ORBIT_operation_name_data =
      {
      15, "_set_SandColor"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 19 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
                               (_ORBIT_send_buffer), 2);
      giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer),
                             &((*value)), sizeof((*value)));
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
      } else {
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return;
      }
   }
}
CORBA_boolean
SandUhr_Timer__get_WindowDecorations(SandUhr_Timer _obj,
                             CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;
   CORBA_boolean _ORBIT_retval;

   if (_obj->servant && _obj->vepv && SandUhr_Timer__classid) {
      _ORBIT_retval =
       ((POA_SandUhr_Timer__epv *) _obj->vepv[SandUhr_Timer__classid])->
       _get_WindowDecorations(_obj->servant, ev);
      return _ORBIT_retval;
   }
   if (0)
      return *(&_ORBIT_retval);
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[23];
      }
      _ORBIT_operation_name_data =
      {
      23, "_get_WindowDecorations"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 27 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
       _ORBIT_retval = *((CORBA_boolean *) _ORBIT_curptr);
      } else {
       _ORBIT_retval = *((CORBA_boolean *) _ORBIT_curptr);
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return _ORBIT_retval;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return _ORBIT_retval;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return _ORBIT_retval;
      }
   }
}
void
SandUhr_Timer__set_WindowDecorations(SandUhr_Timer _obj,
                             const CORBA_boolean value,
                             CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;

   if (_obj->servant && _obj->vepv && SandUhr_Timer__classid) {
      ((POA_SandUhr_Timer__epv *) _obj->vepv[SandUhr_Timer__classid])->
       _set_WindowDecorations(_obj->servant, value, ev);
      return;
   }
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[23];
      }
      _ORBIT_operation_name_data =
      {
      23, "_set_WindowDecorations"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 27 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer),
                             &(value), sizeof(value));
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
      } else {
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return;
      }
   }
}
SandUhr_Timer_Layer
SandUhr_Timer__get_WindowLayer(SandUhr_Timer _obj, CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;
   SandUhr_Timer_Layer _ORBIT_retval;

   if (_obj->servant && _obj->vepv && SandUhr_Timer__classid) {
      _ORBIT_retval =
       ((POA_SandUhr_Timer__epv *) _obj->vepv[SandUhr_Timer__classid])->
       _get_WindowLayer(_obj->servant, ev);
      return _ORBIT_retval;
   }
   if (0)
      return *(&_ORBIT_retval);
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[17];
      }
      _ORBIT_operation_name_data =
      {
      17, "_get_WindowLayer"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 21 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
       _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
       (*((guint32 *) & (_ORBIT_retval))) =
          GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
      } else {
       _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
       _ORBIT_retval = *((SandUhr_Timer_Layer *) _ORBIT_curptr);
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return _ORBIT_retval;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return _ORBIT_retval;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return _ORBIT_retval;
      }
   }
}
void
SandUhr_Timer__set_WindowLayer(SandUhr_Timer _obj,
                         const SandUhr_Timer_Layer value,
                         CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;

   if (_obj->servant && _obj->vepv && SandUhr_Timer__classid) {
      ((POA_SandUhr_Timer__epv *) _obj->vepv[SandUhr_Timer__classid])->
       _set_WindowLayer(_obj->servant, value, ev);
      return;
   }
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[17];
      }
      _ORBIT_operation_name_data =
      {
      17, "_set_WindowLayer"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 21 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
                               (_ORBIT_send_buffer), 4);
      giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer),
                             &(value), sizeof(value));
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
      } else {
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return;
      }
   }
}
void
SandUhr_Timer_Destroy(SandUhr_Timer _obj, CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;

   if (_obj->servant && _obj->vepv && SandUhr_Timer__classid) {
      ((POA_SandUhr_Timer__epv *) _obj->vepv[SandUhr_Timer__classid])->
       Destroy(_obj->servant, ev);
      return;
   }
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[8];
      }
      _ORBIT_operation_name_data =
      {
      8, "Destroy"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 12 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
      } else {
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return;
      }
   }
}
CORBA_unsigned_long
SandUhr_Timer_TimeLeft(SandUhr_Timer _obj, CORBA_Environment * ev)
{
   static const ORBit_exception_demarshal_info _ORBIT_user_exceptions[] =
      { {(const CORBA_TypeCode) &TC_SandUhr_Timer_NotRunning_struct,
       (gpointer) _ORBIT_SandUhr_Timer_NotRunning_demarshal},
      {CORBA_OBJECT_NIL, NULL} };
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;
   CORBA_unsigned_long _ORBIT_retval;

   if (_obj->servant && _obj->vepv && SandUhr_Timer__classid) {
      _ORBIT_retval =
       ((POA_SandUhr_Timer__epv *) _obj->vepv[SandUhr_Timer__classid])->
       TimeLeft(_obj->servant, ev);
      return _ORBIT_retval;
   }
   if (0)
      return *(&_ORBIT_retval);
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[9];
      }
      _ORBIT_operation_name_data =
      {
      9, "TimeLeft"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 13 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
       _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
       (*((guint32 *) & (_ORBIT_retval))) =
          GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
      } else {
       _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
       _ORBIT_retval = *((CORBA_unsigned_long *) _ORBIT_curptr);
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return _ORBIT_retval;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return _ORBIT_retval;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev,
                        _ORBIT_user_exceptions, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return _ORBIT_retval;
      }
   }
}
void
_ORBIT_SandUhr_TimerFactory_InvalidTime_demarshal(GIOPRecvBuffer *
                                      _ORBIT_recv_buffer,
                                      CORBA_Environment * ev)
{
   CORBA_exception_set(ev, CORBA_USER_EXCEPTION,
                   TC_SandUhr_TimerFactory_InvalidTime_struct.repo_id,
                   NULL);
}

SandUhr_AlarmBeep
SandUhr_TimerFactory_CreateAlarmBeep(SandUhr_TimerFactory _obj,
                             const CORBA_unsigned_short Count,
                             CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;
   SandUhr_AlarmBeep _ORBIT_retval;

   if (_obj->servant && _obj->vepv && SandUhr_TimerFactory__classid) {
      _ORBIT_retval =
       ((POA_SandUhr_TimerFactory__epv *) _obj->
        vepv[SandUhr_TimerFactory__classid])->CreateAlarmBeep(_obj->servant,
                                                Count, ev);
      return _ORBIT_retval;
   }
   if (0)
      return *(&_ORBIT_retval);
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[16];
      }
      _ORBIT_operation_name_data =
      {
      16, "CreateAlarmBeep"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 20 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
                               (_ORBIT_send_buffer), 2);
      giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer),
                             &(Count), sizeof(Count));
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
       GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur = _ORBIT_curptr;
       _ORBIT_retval =
          ORBit_demarshal_object(_ORBIT_recv_buffer,
                           GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
                           connection->orb_data);
       _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      } else {
       GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur = _ORBIT_curptr;
       _ORBIT_retval =
          ORBit_demarshal_object(_ORBIT_recv_buffer,
                           GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
                           connection->orb_data);
       _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return _ORBIT_retval;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return _ORBIT_retval;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return _ORBIT_retval;
      }
   }
}
SandUhr_AlarmSound
SandUhr_TimerFactory_CreateAlarmSound(SandUhr_TimerFactory _obj,
                              const CORBA_char * SoundFile,
                              CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;
   SandUhr_AlarmSound _ORBIT_retval;

   if (_obj->servant && _obj->vepv && SandUhr_TimerFactory__classid) {
      _ORBIT_retval =
       ((POA_SandUhr_TimerFactory__epv *) _obj->
        vepv[SandUhr_TimerFactory__classid])->CreateAlarmSound(_obj->
                                                 servant,
                                                 SoundFile,
                                                 ev);
      return _ORBIT_retval;
   }
   if (0)
      return *(&_ORBIT_retval);
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[17];
      }
      _ORBIT_operation_name_data =
      {
      17, "CreateAlarmSound"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 21 };
      register CORBA_unsigned_long _ORBIT_tmpvar_0;
      CORBA_unsigned_long _ORBIT_tmpvar_1;

      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_tmpvar_1 = strlen(SoundFile) + 1;
      giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
                               (_ORBIT_send_buffer), 4);
      {
       guchar *_ORBIT_t;

       _ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_1));
       memcpy(_ORBIT_t, &(_ORBIT_tmpvar_1), sizeof(_ORBIT_tmpvar_1));
       giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
                              (_ORBIT_send_buffer), (_ORBIT_t),
                              sizeof(_ORBIT_tmpvar_1));
      }
      giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer),
                             (SoundFile),
                             sizeof(SoundFile[_ORBIT_tmpvar_0]) *
                             _ORBIT_tmpvar_1);
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
       GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur = _ORBIT_curptr;
       _ORBIT_retval =
          ORBit_demarshal_object(_ORBIT_recv_buffer,
                           GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
                           connection->orb_data);
       _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      } else {
       GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur = _ORBIT_curptr;
       _ORBIT_retval =
          ORBit_demarshal_object(_ORBIT_recv_buffer,
                           GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
                           connection->orb_data);
       _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return _ORBIT_retval;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return _ORBIT_retval;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return _ORBIT_retval;
      }
   }
}
SandUhr_AlarmCommand
SandUhr_TimerFactory_CreateAlarmCommand(SandUhr_TimerFactory _obj,
                              const CORBA_char * CommandString,
                              CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;
   SandUhr_AlarmCommand _ORBIT_retval;

   if (_obj->servant && _obj->vepv && SandUhr_TimerFactory__classid) {
      _ORBIT_retval =
       ((POA_SandUhr_TimerFactory__epv *) _obj->
        vepv[SandUhr_TimerFactory__classid])->CreateAlarmCommand(_obj->
                                                   servant,
                                                   CommandString,
                                                   ev);
      return _ORBIT_retval;
   }
   if (0)
      return *(&_ORBIT_retval);
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[19];
      }
      _ORBIT_operation_name_data =
      {
      19, "CreateAlarmCommand"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 23 };
      register CORBA_unsigned_long _ORBIT_tmpvar_0;
      CORBA_unsigned_long _ORBIT_tmpvar_1;

      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_tmpvar_1 = strlen(CommandString) + 1;
      giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
                               (_ORBIT_send_buffer), 4);
      {
       guchar *_ORBIT_t;

       _ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_1));
       memcpy(_ORBIT_t, &(_ORBIT_tmpvar_1), sizeof(_ORBIT_tmpvar_1));
       giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
                              (_ORBIT_send_buffer), (_ORBIT_t),
                              sizeof(_ORBIT_tmpvar_1));
      }
      giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer),
                             (CommandString),
                             sizeof(CommandString[_ORBIT_tmpvar_0]) *
                             _ORBIT_tmpvar_1);
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
       GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur = _ORBIT_curptr;
       _ORBIT_retval =
          ORBit_demarshal_object(_ORBIT_recv_buffer,
                           GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
                           connection->orb_data);
       _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      } else {
       GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur = _ORBIT_curptr;
       _ORBIT_retval =
          ORBit_demarshal_object(_ORBIT_recv_buffer,
                           GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
                           connection->orb_data);
       _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return _ORBIT_retval;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return _ORBIT_retval;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return _ORBIT_retval;
      }
   }
}
SandUhr_Timer
SandUhr_TimerFactory_CreateTimer(SandUhr_TimerFactory _obj,
                         const CORBA_char * TimeSpec,
                         const CORBA_char * Message,
                         CORBA_Environment * ev)
{
   static const ORBit_exception_demarshal_info _ORBIT_user_exceptions[] =
      { {(const CORBA_TypeCode) &TC_SandUhr_TimerFactory_InvalidTime_struct,
       (gpointer) _ORBIT_SandUhr_TimerFactory_InvalidTime_demarshal},
      {CORBA_OBJECT_NIL, NULL} };
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;
   SandUhr_Timer _ORBIT_retval;

   if (_obj->servant && _obj->vepv && SandUhr_TimerFactory__classid) {
      _ORBIT_retval =
       ((POA_SandUhr_TimerFactory__epv *) _obj->
        vepv[SandUhr_TimerFactory__classid])->CreateTimer(_obj->servant,
                                              TimeSpec, Message,
                                              ev);
      return _ORBIT_retval;
   }
   if (0)
      return *(&_ORBIT_retval);
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[12];
      }
      _ORBIT_operation_name_data =
      {
      12, "CreateTimer"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 16 };
      register CORBA_unsigned_long _ORBIT_tmpvar_0;
      CORBA_unsigned_long _ORBIT_tmpvar_1;
      register CORBA_unsigned_long _ORBIT_tmpvar_2;
      CORBA_unsigned_long _ORBIT_tmpvar_3;

      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_tmpvar_1 = strlen(TimeSpec) + 1;
      giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
                               (_ORBIT_send_buffer), 4);
      {
       guchar *_ORBIT_t;

       _ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_1));
       memcpy(_ORBIT_t, &(_ORBIT_tmpvar_1), sizeof(_ORBIT_tmpvar_1));
       giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
                              (_ORBIT_send_buffer), (_ORBIT_t),
                              sizeof(_ORBIT_tmpvar_1));
      }
      giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer),
                             (TimeSpec),
                             sizeof(TimeSpec[_ORBIT_tmpvar_0]) *
                             _ORBIT_tmpvar_1);
      _ORBIT_tmpvar_3 = strlen(Message) + 1;
      giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
                               (_ORBIT_send_buffer), 4);
      {
       guchar *_ORBIT_t;

       _ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_3));
       memcpy(_ORBIT_t, &(_ORBIT_tmpvar_3), sizeof(_ORBIT_tmpvar_3));
       giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
                              (_ORBIT_send_buffer), (_ORBIT_t),
                              sizeof(_ORBIT_tmpvar_3));
      }
      giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer),
                             (Message),
                             sizeof(Message[_ORBIT_tmpvar_2]) *
                             _ORBIT_tmpvar_3);
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
       GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur = _ORBIT_curptr;
       _ORBIT_retval =
          ORBit_demarshal_object(_ORBIT_recv_buffer,
                           GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
                           connection->orb_data);
       _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      } else {
       GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur = _ORBIT_curptr;
       _ORBIT_retval =
          ORBit_demarshal_object(_ORBIT_recv_buffer,
                           GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer)->
                           connection->orb_data);
       _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return _ORBIT_retval;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return _ORBIT_retval;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev,
                        _ORBIT_user_exceptions, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return _ORBIT_retval;
      }
   }
}
SandUhr_TimerFactory_TimerVec *
SandUhr_TimerFactory__get_Timers(SandUhr_TimerFactory _obj,
                         CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;
   SandUhr_TimerFactory_TimerVec *_ORBIT_retval;
   register CORBA_unsigned_long _ORBIT_tmpvar_1;

   if (_obj->servant && _obj->vepv && SandUhr_TimerFactory__classid) {
      _ORBIT_retval =
       ((POA_SandUhr_TimerFactory__epv *) _obj->
        vepv[SandUhr_TimerFactory__classid])->_get_Timers(_obj->servant,
                                              ev);
      return _ORBIT_retval;
   }
   if (0)
      return *(&_ORBIT_retval);
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[12];
      }
      _ORBIT_operation_name_data =
      {
      12, "_get_Timers"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 16 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_retval = SandUhr_TimerFactory_TimerVec__alloc();
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
       _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
       (*((guint32 *) & ((*_ORBIT_retval)._length))) =
          GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
       _ORBIT_curptr += 4;
       (*_ORBIT_retval)._maximum = (*_ORBIT_retval)._length;
       (*_ORBIT_retval)._buffer =
          CORBA_sequence_SandUhr_Timer_allocbuf((*_ORBIT_retval)._length);
       (*_ORBIT_retval)._release = CORBA_TRUE;
       for (_ORBIT_tmpvar_1 = 0; _ORBIT_tmpvar_1 < (*_ORBIT_retval)._length;
            _ORBIT_tmpvar_1++) {
          GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur = _ORBIT_curptr;
          (*_ORBIT_retval)._buffer[_ORBIT_tmpvar_1] =
             ORBit_demarshal_object(_ORBIT_recv_buffer,
                              GIOP_MESSAGE_BUFFER
                              (_ORBIT_recv_buffer)->connection->
                              orb_data);
          _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
       }

      } else {
       _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
       (*_ORBIT_retval)._length = *((CORBA_unsigned_long *) _ORBIT_curptr);
       _ORBIT_curptr += 4;
       (*_ORBIT_retval)._maximum = (*_ORBIT_retval)._length;
       (*_ORBIT_retval)._buffer =
          CORBA_sequence_SandUhr_Timer_allocbuf((*_ORBIT_retval)._length);
       (*_ORBIT_retval)._release = CORBA_TRUE;
       for (_ORBIT_tmpvar_1 = 0; _ORBIT_tmpvar_1 < (*_ORBIT_retval)._length;
            _ORBIT_tmpvar_1++) {
          GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur = _ORBIT_curptr;
          (*_ORBIT_retval)._buffer[_ORBIT_tmpvar_1] =
             ORBit_demarshal_object(_ORBIT_recv_buffer,
                              GIOP_MESSAGE_BUFFER
                              (_ORBIT_recv_buffer)->connection->
                              orb_data);
          _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
       }

      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return _ORBIT_retval;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return _ORBIT_retval;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return _ORBIT_retval;
      }
   }
}
void
SandUhr_TimerFactory_ShowControl(SandUhr_TimerFactory _obj,
                         const CORBA_boolean Show,
                         CORBA_Environment * ev)
{
   register GIOP_unsigned_long _ORBIT_request_id,
    _ORBIT_system_exception_minor;
   register CORBA_completion_status _ORBIT_completion_status;
   register GIOPSendBuffer *_ORBIT_send_buffer;
   register GIOPRecvBuffer *_ORBIT_recv_buffer;
   register GIOPConnection *_cnx;

   if (_obj->servant && _obj->vepv && SandUhr_TimerFactory__classid) {
      ((POA_SandUhr_TimerFactory__epv *) _obj->
       vepv[SandUhr_TimerFactory__classid])->ShowControl(_obj->servant, Show,
                                           ev);
      return;
   }
   _cnx = ORBit_object_get_connection(_obj);
 _ORBIT_retry_request:
   _ORBIT_send_buffer = NULL;
   _ORBIT_recv_buffer = NULL;
   _ORBIT_completion_status = CORBA_COMPLETED_NO;
   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
   {                    /* marshalling */
      static const struct
      {
       CORBA_unsigned_long len;
       char opname[12];
      }
      _ORBIT_operation_name_data =
      {
      12, "ShowControl"};
      static const struct iovec _ORBIT_operation_vec =
       { (gpointer) & _ORBIT_operation_name_data, 16 };
      _ORBIT_send_buffer =
       giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
                              CORBA_TRUE,
                              &(_obj->active_profile->object_key_vec),
                              &_ORBIT_operation_vec,
                              &ORBit_default_principal_iovec);

      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
      if (!_ORBIT_send_buffer)
       goto _ORBIT_system_exception;
      giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer),
                             &(Show), sizeof(Show));
      giop_send_buffer_write(_ORBIT_send_buffer);
      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      _ORBIT_send_buffer = NULL;
   }
   {                    /* demarshalling */
      register guchar *_ORBIT_curptr;

      _ORBIT_recv_buffer =
       giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
      if (!_ORBIT_recv_buffer)
       goto _ORBIT_system_exception;
      _ORBIT_completion_status = CORBA_COMPLETED_YES;
      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
        GIOP_NO_EXCEPTION)
       goto _ORBIT_msg_exception;
      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
      } else {
      }
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      return;
    _ORBIT_system_exception:
      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
                         _ORBIT_completion_status);
      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
      giop_send_buffer_unuse(_ORBIT_send_buffer);
      return;
    _ORBIT_msg_exception:
      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
        GIOP_LOCATION_FORWARD) {
       if (_obj->forward_locations != NULL)
          ORBit_delete_profiles(_obj->forward_locations);
       _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
       _cnx = ORBit_object_get_forwarded_connection(_obj);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);

       goto _ORBIT_retry_request;
      } else {
       ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
       giop_recv_buffer_unuse(_ORBIT_recv_buffer);
       return;
      }
   }
}

Generated by  Doxygen 1.6.0   Back to index