/* * This file was generated by orbit-idl - DO NOT EDIT! */ #include #include "Spell.h" void _ORBIT_GNOME_Spell_Dictionary_Error_demarshal(GIOPRecvBuffer * _ORBIT_recv_buffer, CORBA_Environment * ev) { guchar *_ORBIT_curptr; register CORBA_unsigned_long _ORBIT_tmpvar_0; CORBA_unsigned_long _ORBIT_tmpvar_1; GNOME_Spell_Dictionary_Error *_ORBIT_exdata = GNOME_Spell_Dictionary_Error__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).error = CORBA_string_alloc(_ORBIT_tmpvar_1); memcpy((*_ORBIT_exdata).error, _ORBIT_curptr, sizeof((*_ORBIT_exdata).error[_ORBIT_tmpvar_0]) * _ORBIT_tmpvar_1); _ORBIT_curptr += sizeof((*_ORBIT_exdata).error[_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).error = CORBA_string_alloc(_ORBIT_tmpvar_1); memcpy((*_ORBIT_exdata).error, _ORBIT_curptr, sizeof((*_ORBIT_exdata).error[_ORBIT_tmpvar_0]) * _ORBIT_tmpvar_1); _ORBIT_curptr += sizeof((*_ORBIT_exdata).error[_ORBIT_tmpvar_0]) * _ORBIT_tmpvar_1; } CORBA_exception_set(ev, CORBA_USER_EXCEPTION, TC_GNOME_Spell_Dictionary_Error_struct.repo_id, _ORBIT_exdata); } GNOME_Spell_LanguageSeq * GNOME_Spell_Dictionary_getLanguages(GNOME_Spell_Dictionary _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; GNOME_Spell_LanguageSeq *_ORBIT_retval; register CORBA_unsigned_long _ORBIT_tmpvar_5; register CORBA_unsigned_long _ORBIT_tmpvar_6; CORBA_unsigned_long _ORBIT_tmpvar_7; register CORBA_unsigned_long _ORBIT_tmpvar_8; CORBA_unsigned_long _ORBIT_tmpvar_9; if (_obj->servant && _obj->vepv && GNOME_Spell_Dictionary__classid) { _ORBIT_retval = ((POA_GNOME_Spell_Dictionary__epv *) _obj-> vepv[GNOME_Spell_Dictionary__classid])->getLanguages(_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, "getLanguages"}; 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_retval = GNOME_Spell_LanguageSeq__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_GNOME_Spell_Language_allocbuf((*_ORBIT_retval). _length); (*_ORBIT_retval)._release = CORBA_TRUE; for (_ORBIT_tmpvar_5 = 0; _ORBIT_tmpvar_5 < (*_ORBIT_retval)._length; _ORBIT_tmpvar_5++) { _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4); (*((guint32 *) & (_ORBIT_tmpvar_7))) = GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr)); _ORBIT_curptr += 4; (*_ORBIT_retval)._buffer[_ORBIT_tmpvar_5].name = CORBA_string_alloc(_ORBIT_tmpvar_7); memcpy((*_ORBIT_retval)._buffer[_ORBIT_tmpvar_5].name, _ORBIT_curptr, sizeof((*_ORBIT_retval)._buffer[_ORBIT_tmpvar_5]. name[_ORBIT_tmpvar_6]) * _ORBIT_tmpvar_7); _ORBIT_curptr += sizeof((*_ORBIT_retval)._buffer[_ORBIT_tmpvar_5]. name[_ORBIT_tmpvar_6]) * _ORBIT_tmpvar_7; _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4); (*((guint32 *) & (_ORBIT_tmpvar_9))) = GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr)); _ORBIT_curptr += 4; (*_ORBIT_retval)._buffer[_ORBIT_tmpvar_5].abrev = CORBA_string_alloc(_ORBIT_tmpvar_9); memcpy((*_ORBIT_retval)._buffer[_ORBIT_tmpvar_5].abrev, _ORBIT_curptr, sizeof((*_ORBIT_retval)._buffer[_ORBIT_tmpvar_5]. abrev[_ORBIT_tmpvar_8]) * _ORBIT_tmpvar_9); _ORBIT_curptr += sizeof((*_ORBIT_retval)._buffer[_ORBIT_tmpvar_5]. abrev[_ORBIT_tmpvar_8]) * _ORBIT_tmpvar_9; } } 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_GNOME_Spell_Language_allocbuf((*_ORBIT_retval). _length); (*_ORBIT_retval)._release = CORBA_TRUE; for (_ORBIT_tmpvar_5 = 0; _ORBIT_tmpvar_5 < (*_ORBIT_retval)._length; _ORBIT_tmpvar_5++) { _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4); _ORBIT_tmpvar_7 = *((CORBA_unsigned_long *) _ORBIT_curptr); _ORBIT_curptr += 4; (*_ORBIT_retval)._buffer[_ORBIT_tmpvar_5].name = CORBA_string_alloc(_ORBIT_tmpvar_7); memcpy((*_ORBIT_retval)._buffer[_ORBIT_tmpvar_5].name, _ORBIT_curptr, sizeof((*_ORBIT_retval)._buffer[_ORBIT_tmpvar_5]. name[_ORBIT_tmpvar_6]) * _ORBIT_tmpvar_7); _ORBIT_curptr += sizeof((*_ORBIT_retval)._buffer[_ORBIT_tmpvar_5]. name[_ORBIT_tmpvar_6]) * _ORBIT_tmpvar_7; _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4); _ORBIT_tmpvar_9 = *((CORBA_unsigned_long *) _ORBIT_curptr); _ORBIT_curptr += 4; (*_ORBIT_retval)._buffer[_ORBIT_tmpvar_5].abrev = CORBA_string_alloc(_ORBIT_tmpvar_9); memcpy((*_ORBIT_retval)._buffer[_ORBIT_tmpvar_5].abrev, _ORBIT_curptr, sizeof((*_ORBIT_retval)._buffer[_ORBIT_tmpvar_5]. abrev[_ORBIT_tmpvar_8]) * _ORBIT_tmpvar_9); _ORBIT_curptr += sizeof((*_ORBIT_retval)._buffer[_ORBIT_tmpvar_5]. abrev[_ORBIT_tmpvar_8]) * _ORBIT_tmpvar_9; } } 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 GNOME_Spell_Dictionary_setLanguage(GNOME_Spell_Dictionary _obj, const CORBA_char * language, 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 && GNOME_Spell_Dictionary__classid) { ((POA_GNOME_Spell_Dictionary__epv *) _obj-> vepv[GNOME_Spell_Dictionary__classid])->setLanguage(_obj->servant, language, 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, "setLanguage"}; 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; _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(language) + 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), (language), sizeof(language[_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_boolean GNOME_Spell_Dictionary_checkWord(GNOME_Spell_Dictionary _obj, const CORBA_char * word, CORBA_Environment * ev) { static const ORBit_exception_demarshal_info _ORBIT_user_exceptions[] = { {(const CORBA_TypeCode) &TC_GNOME_Spell_Dictionary_Error_struct, (gpointer) _ORBIT_GNOME_Spell_Dictionary_Error_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_boolean _ORBIT_retval; if (_obj->servant && _obj->vepv && GNOME_Spell_Dictionary__classid) { _ORBIT_retval = ((POA_GNOME_Spell_Dictionary__epv *) _obj-> vepv[GNOME_Spell_Dictionary__classid])->checkWord(_obj->servant, word, 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[10]; } _ORBIT_operation_name_data = { 10, "checkWord"}; static const struct iovec _ORBIT_operation_vec = { (gpointer) & _ORBIT_operation_name_data, 14 }; 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(word) + 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), (word), sizeof(word[_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))) { _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, _ORBIT_user_exceptions, _obj->orb); giop_recv_buffer_unuse(_ORBIT_recv_buffer); return _ORBIT_retval; } } } GNOME_Spell_StringSeq * GNOME_Spell_Dictionary_getSuggestions(GNOME_Spell_Dictionary _obj, const CORBA_char * word, CORBA_Environment * ev) { static const ORBit_exception_demarshal_info _ORBIT_user_exceptions[] = { {(const CORBA_TypeCode) &TC_GNOME_Spell_Dictionary_Error_struct, (gpointer) _ORBIT_GNOME_Spell_Dictionary_Error_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; GNOME_Spell_StringSeq *_ORBIT_retval; register CORBA_unsigned_long _ORBIT_tmpvar_5; register CORBA_unsigned_long _ORBIT_tmpvar_6; CORBA_unsigned_long _ORBIT_tmpvar_7; if (_obj->servant && _obj->vepv && GNOME_Spell_Dictionary__classid) { _ORBIT_retval = ((POA_GNOME_Spell_Dictionary__epv *) _obj-> vepv[GNOME_Spell_Dictionary__classid])->getSuggestions(_obj-> servant, word, 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, "getSuggestions"}; 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(word) + 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), (word), sizeof(word[_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_retval = GNOME_Spell_StringSeq__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_CORBA_string_allocbuf((*_ORBIT_retval)._length); (*_ORBIT_retval)._release = CORBA_TRUE; for (_ORBIT_tmpvar_5 = 0; _ORBIT_tmpvar_5 < (*_ORBIT_retval)._length; _ORBIT_tmpvar_5++) { _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4); (*((guint32 *) & (_ORBIT_tmpvar_7))) = GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr)); _ORBIT_curptr += 4; (*_ORBIT_retval)._buffer[_ORBIT_tmpvar_5] = CORBA_string_alloc(_ORBIT_tmpvar_7); memcpy((*_ORBIT_retval)._buffer[_ORBIT_tmpvar_5], _ORBIT_curptr, sizeof((*_ORBIT_retval). _buffer[_ORBIT_tmpvar_5][_ORBIT_tmpvar_6]) * _ORBIT_tmpvar_7); _ORBIT_curptr += sizeof((*_ORBIT_retval). _buffer[_ORBIT_tmpvar_5][_ORBIT_tmpvar_6]) * _ORBIT_tmpvar_7; } } 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_CORBA_string_allocbuf((*_ORBIT_retval)._length); (*_ORBIT_retval)._release = CORBA_TRUE; for (_ORBIT_tmpvar_5 = 0; _ORBIT_tmpvar_5 < (*_ORBIT_retval)._length; _ORBIT_tmpvar_5++) { _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4); _ORBIT_tmpvar_7 = *((CORBA_unsigned_long *) _ORBIT_curptr); _ORBIT_curptr += 4; (*_ORBIT_retval)._buffer[_ORBIT_tmpvar_5] = CORBA_string_alloc(_ORBIT_tmpvar_7); memcpy((*_ORBIT_retval)._buffer[_ORBIT_tmpvar_5], _ORBIT_curptr, sizeof((*_ORBIT_retval). _buffer[_ORBIT_tmpvar_5][_ORBIT_tmpvar_6]) * _ORBIT_tmpvar_7); _ORBIT_curptr += sizeof((*_ORBIT_retval). _buffer[_ORBIT_tmpvar_5][_ORBIT_tmpvar_6]) * _ORBIT_tmpvar_7; } } 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 GNOME_Spell_Dictionary_addWordToSession(GNOME_Spell_Dictionary _obj, const CORBA_char * word, CORBA_Environment * ev) { static const ORBit_exception_demarshal_info _ORBIT_user_exceptions[] = { {(const CORBA_TypeCode) &TC_GNOME_Spell_Dictionary_Error_struct, (gpointer) _ORBIT_GNOME_Spell_Dictionary_Error_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 && GNOME_Spell_Dictionary__classid) { ((POA_GNOME_Spell_Dictionary__epv *) _obj-> vepv[GNOME_Spell_Dictionary__classid])->addWordToSession(_obj->servant, word, 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, "addWordToSession"}; 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(word) + 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), (word), sizeof(word[_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, _ORBIT_user_exceptions, _obj->orb); giop_recv_buffer_unuse(_ORBIT_recv_buffer); return; } } } void GNOME_Spell_Dictionary_addWordToPersonal(GNOME_Spell_Dictionary _obj, const CORBA_char * word, CORBA_Environment * ev) { static const ORBit_exception_demarshal_info _ORBIT_user_exceptions[] = { {(const CORBA_TypeCode) &TC_GNOME_Spell_Dictionary_Error_struct, (gpointer) _ORBIT_GNOME_Spell_Dictionary_Error_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 && GNOME_Spell_Dictionary__classid) { ((POA_GNOME_Spell_Dictionary__epv *) _obj-> vepv[GNOME_Spell_Dictionary__classid])->addWordToPersonal(_obj-> servant, word, 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[18]; } _ORBIT_operation_name_data = { 18, "addWordToPersonal"}; static const struct iovec _ORBIT_operation_vec = { (gpointer) & _ORBIT_operation_name_data, 22 }; 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(word) + 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), (word), sizeof(word[_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, _ORBIT_user_exceptions, _obj->orb); giop_recv_buffer_unuse(_ORBIT_recv_buffer); return; } } } void GNOME_Spell_Dictionary_setCorrection(GNOME_Spell_Dictionary _obj, const CORBA_char * word, const CORBA_char * replacement, 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 && GNOME_Spell_Dictionary__classid) { ((POA_GNOME_Spell_Dictionary__epv *) _obj-> vepv[GNOME_Spell_Dictionary__classid])->setCorrection(_obj->servant, word, replacement, 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, "setCorrection"}; 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; 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(word) + 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), (word), sizeof(word[_ORBIT_tmpvar_0]) * _ORBIT_tmpvar_1); _ORBIT_tmpvar_3 = strlen(replacement) + 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), (replacement), sizeof(replacement[_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, NULL, _obj->orb); giop_recv_buffer_unuse(_ORBIT_recv_buffer); return; } } }