diff options
Diffstat (limited to 'calendar/gui/Evolution-Composer-stubs.c')
-rw-r--r-- | calendar/gui/Evolution-Composer-stubs.c | 846 |
1 files changed, 0 insertions, 846 deletions
diff --git a/calendar/gui/Evolution-Composer-stubs.c b/calendar/gui/Evolution-Composer-stubs.c deleted file mode 100644 index e60990c31e..0000000000 --- a/calendar/gui/Evolution-Composer-stubs.c +++ /dev/null @@ -1,846 +0,0 @@ -/* - * This file was generated by orbit-idl - DO NOT EDIT! - */ - -#include <string.h> -#include "Evolution-Composer.h" - -void -Evolution_Composer_set_headers(Evolution_Composer _obj, - const Evolution_Composer_RecipientList * to, - const Evolution_Composer_RecipientList * cc, - const Evolution_Composer_RecipientList * bcc, - const CORBA_char * subject, - 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 && Evolution_Composer__classid) { - - ((POA_Evolution_Composer__epv *) _obj-> - vepv[Evolution_Composer__classid])->set_headers(_obj->servant, to, cc, - bcc, subject, 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, "set_headers"}; - static const struct iovec _ORBIT_operation_vec = - { (gpointer) & _ORBIT_operation_name_data, 16 }; - register CORBA_unsigned_long _ORBIT_tmpvar_0; - register CORBA_unsigned_long _ORBIT_tmpvar_1; - CORBA_unsigned_long _ORBIT_tmpvar_2; - register CORBA_unsigned_long _ORBIT_tmpvar_3; - CORBA_unsigned_long _ORBIT_tmpvar_4; - 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; - register CORBA_unsigned_long _ORBIT_tmpvar_10; - register CORBA_unsigned_long _ORBIT_tmpvar_11; - CORBA_unsigned_long _ORBIT_tmpvar_12; - register CORBA_unsigned_long _ORBIT_tmpvar_13; - CORBA_unsigned_long _ORBIT_tmpvar_14; - register CORBA_unsigned_long _ORBIT_tmpvar_15; - CORBA_unsigned_long _ORBIT_tmpvar_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_do_alignment(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), 4); - { - guchar *_ORBIT_t; - - _ORBIT_t = alloca(sizeof((*to)._length)); - memcpy(_ORBIT_t, &((*to)._length), sizeof((*to)._length)); - giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), (_ORBIT_t), - sizeof((*to)._length)); - } - for (_ORBIT_tmpvar_0 = 0; _ORBIT_tmpvar_0 < (*to)._length; - _ORBIT_tmpvar_0++) { - _ORBIT_tmpvar_2 = strlen((*to)._buffer[_ORBIT_tmpvar_0].name) + 1; - giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), 4); - { - guchar *_ORBIT_t; - - _ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_2)); - memcpy(_ORBIT_t, &(_ORBIT_tmpvar_2), sizeof(_ORBIT_tmpvar_2)); - giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), (_ORBIT_t), - sizeof(_ORBIT_tmpvar_2)); - } - { - guchar *_ORBIT_t; - - _ORBIT_t = - alloca(sizeof - ((*to)._buffer[_ORBIT_tmpvar_0].name[_ORBIT_tmpvar_1]) * - _ORBIT_tmpvar_2); - memcpy(_ORBIT_t, ((*to)._buffer[_ORBIT_tmpvar_0].name), - sizeof((*to)._buffer[_ORBIT_tmpvar_0]. - name[_ORBIT_tmpvar_1]) * _ORBIT_tmpvar_2); - giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), (_ORBIT_t), - sizeof((*to). - _buffer[_ORBIT_tmpvar_0]. - name[_ORBIT_tmpvar_1]) * - _ORBIT_tmpvar_2); - } - _ORBIT_tmpvar_4 = strlen((*to)._buffer[_ORBIT_tmpvar_0].address) + 1; - giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), 4); - { - guchar *_ORBIT_t; - - _ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_4)); - memcpy(_ORBIT_t, &(_ORBIT_tmpvar_4), sizeof(_ORBIT_tmpvar_4)); - giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), (_ORBIT_t), - sizeof(_ORBIT_tmpvar_4)); - } - { - guchar *_ORBIT_t; - - _ORBIT_t = - alloca(sizeof - ((*to)._buffer[_ORBIT_tmpvar_0]. - address[_ORBIT_tmpvar_3]) * _ORBIT_tmpvar_4); - memcpy(_ORBIT_t, ((*to)._buffer[_ORBIT_tmpvar_0].address), - sizeof((*to)._buffer[_ORBIT_tmpvar_0]. - address[_ORBIT_tmpvar_3]) * _ORBIT_tmpvar_4); - giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), (_ORBIT_t), - sizeof((*to). - _buffer[_ORBIT_tmpvar_0]. - address[_ORBIT_tmpvar_3]) * - _ORBIT_tmpvar_4); - } - } - - giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), 4); - { - guchar *_ORBIT_t; - - _ORBIT_t = alloca(sizeof((*cc)._length)); - memcpy(_ORBIT_t, &((*cc)._length), sizeof((*cc)._length)); - giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), (_ORBIT_t), - sizeof((*cc)._length)); - } - for (_ORBIT_tmpvar_5 = 0; _ORBIT_tmpvar_5 < (*cc)._length; - _ORBIT_tmpvar_5++) { - _ORBIT_tmpvar_7 = strlen((*cc)._buffer[_ORBIT_tmpvar_5].name) + 1; - giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), 4); - { - guchar *_ORBIT_t; - - _ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_7)); - memcpy(_ORBIT_t, &(_ORBIT_tmpvar_7), sizeof(_ORBIT_tmpvar_7)); - giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), (_ORBIT_t), - sizeof(_ORBIT_tmpvar_7)); - } - { - guchar *_ORBIT_t; - - _ORBIT_t = - alloca(sizeof - ((*cc)._buffer[_ORBIT_tmpvar_5].name[_ORBIT_tmpvar_6]) * - _ORBIT_tmpvar_7); - memcpy(_ORBIT_t, ((*cc)._buffer[_ORBIT_tmpvar_5].name), - sizeof((*cc)._buffer[_ORBIT_tmpvar_5]. - name[_ORBIT_tmpvar_6]) * _ORBIT_tmpvar_7); - giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), (_ORBIT_t), - sizeof((*cc). - _buffer[_ORBIT_tmpvar_5]. - name[_ORBIT_tmpvar_6]) * - _ORBIT_tmpvar_7); - } - _ORBIT_tmpvar_9 = strlen((*cc)._buffer[_ORBIT_tmpvar_5].address) + 1; - giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), 4); - { - guchar *_ORBIT_t; - - _ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_9)); - memcpy(_ORBIT_t, &(_ORBIT_tmpvar_9), sizeof(_ORBIT_tmpvar_9)); - giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), (_ORBIT_t), - sizeof(_ORBIT_tmpvar_9)); - } - { - guchar *_ORBIT_t; - - _ORBIT_t = - alloca(sizeof - ((*cc)._buffer[_ORBIT_tmpvar_5]. - address[_ORBIT_tmpvar_8]) * _ORBIT_tmpvar_9); - memcpy(_ORBIT_t, ((*cc)._buffer[_ORBIT_tmpvar_5].address), - sizeof((*cc)._buffer[_ORBIT_tmpvar_5]. - address[_ORBIT_tmpvar_8]) * _ORBIT_tmpvar_9); - giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), (_ORBIT_t), - sizeof((*cc). - _buffer[_ORBIT_tmpvar_5]. - address[_ORBIT_tmpvar_8]) * - _ORBIT_tmpvar_9); - } - } - - giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), 4); - { - guchar *_ORBIT_t; - - _ORBIT_t = alloca(sizeof((*bcc)._length)); - memcpy(_ORBIT_t, &((*bcc)._length), sizeof((*bcc)._length)); - giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), (_ORBIT_t), - sizeof((*bcc)._length)); - } - for (_ORBIT_tmpvar_10 = 0; _ORBIT_tmpvar_10 < (*bcc)._length; - _ORBIT_tmpvar_10++) { - _ORBIT_tmpvar_12 = strlen((*bcc)._buffer[_ORBIT_tmpvar_10].name) + 1; - giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), 4); - { - guchar *_ORBIT_t; - - _ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_12)); - memcpy(_ORBIT_t, &(_ORBIT_tmpvar_12), sizeof(_ORBIT_tmpvar_12)); - giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), (_ORBIT_t), - sizeof(_ORBIT_tmpvar_12)); - } - { - guchar *_ORBIT_t; - - _ORBIT_t = - alloca(sizeof - ((*bcc)._buffer[_ORBIT_tmpvar_10]. - name[_ORBIT_tmpvar_11]) * _ORBIT_tmpvar_12); - memcpy(_ORBIT_t, ((*bcc)._buffer[_ORBIT_tmpvar_10].name), - sizeof((*bcc)._buffer[_ORBIT_tmpvar_10]. - name[_ORBIT_tmpvar_11]) * _ORBIT_tmpvar_12); - giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), (_ORBIT_t), - sizeof((*bcc). - _buffer[_ORBIT_tmpvar_10]. - name[_ORBIT_tmpvar_11]) * - _ORBIT_tmpvar_12); - } - _ORBIT_tmpvar_14 = - strlen((*bcc)._buffer[_ORBIT_tmpvar_10].address) + 1; - giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), 4); - { - guchar *_ORBIT_t; - - _ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_14)); - memcpy(_ORBIT_t, &(_ORBIT_tmpvar_14), sizeof(_ORBIT_tmpvar_14)); - giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), (_ORBIT_t), - sizeof(_ORBIT_tmpvar_14)); - } - { - guchar *_ORBIT_t; - - _ORBIT_t = - alloca(sizeof - ((*bcc)._buffer[_ORBIT_tmpvar_10]. - address[_ORBIT_tmpvar_13]) * _ORBIT_tmpvar_14); - memcpy(_ORBIT_t, ((*bcc)._buffer[_ORBIT_tmpvar_10].address), - sizeof((*bcc)._buffer[_ORBIT_tmpvar_10]. - address[_ORBIT_tmpvar_13]) * _ORBIT_tmpvar_14); - giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), (_ORBIT_t), - sizeof((*bcc). - _buffer[_ORBIT_tmpvar_10]. - address[_ORBIT_tmpvar_13]) * - _ORBIT_tmpvar_14); - } - } - - _ORBIT_tmpvar_16 = strlen(subject) + 1; - giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), 4); - { - guchar *_ORBIT_t; - - _ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_16)); - memcpy(_ORBIT_t, &(_ORBIT_tmpvar_16), sizeof(_ORBIT_tmpvar_16)); - giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), (_ORBIT_t), - sizeof(_ORBIT_tmpvar_16)); - } - giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer), - (subject), - sizeof(subject[_ORBIT_tmpvar_15]) * - _ORBIT_tmpvar_16); - 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 -Evolution_Composer_set_body_text(Evolution_Composer _obj, - const CORBA_char * body, - 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 && Evolution_Composer__classid) { - - ((POA_Evolution_Composer__epv *) _obj-> - vepv[Evolution_Composer__classid])->set_body_text(_obj->servant, body, - 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_body_text"}; - 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(body) + 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), - (body), - sizeof(body[_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_Evolution_Composer_CouldNotParse_demarshal(GIOPRecvBuffer * - _ORBIT_recv_buffer, - CORBA_Environment * ev) -{ - CORBA_exception_set(ev, CORBA_USER_EXCEPTION, - TC_Evolution_Composer_CouldNotParse_struct.repo_id, - NULL); -} - -void -Evolution_Composer_attach_MIME(Evolution_Composer _obj, - const CORBA_char * data, - CORBA_Environment * ev) -{ - static const ORBit_exception_demarshal_info _ORBIT_user_exceptions[] = - { {(const CORBA_TypeCode) &TC_Evolution_Composer_CouldNotParse_struct, - (gpointer) _ORBIT_Evolution_Composer_CouldNotParse_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 && Evolution_Composer__classid) { - - ((POA_Evolution_Composer__epv *) _obj-> - vepv[Evolution_Composer__classid])->attach_MIME(_obj->servant, data, - 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, "attach_MIME"}; - 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(data) + 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), - (data), - sizeof(data[_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 -Evolution_Composer_attach_data(Evolution_Composer _obj, - const CORBA_char * content_type, - const CORBA_char * filename, - const CORBA_char * description, - const CORBA_boolean show_inline, - const CORBA_char * data, - 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 && Evolution_Composer__classid) { - - ((POA_Evolution_Composer__epv *) _obj-> - vepv[Evolution_Composer__classid])->attach_data(_obj->servant, - content_type, filename, - description, - show_inline, data, 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, "attach_data"}; - 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; - register CORBA_unsigned_long _ORBIT_tmpvar_4; - CORBA_unsigned_long _ORBIT_tmpvar_5; - register CORBA_unsigned_long _ORBIT_tmpvar_6; - CORBA_unsigned_long _ORBIT_tmpvar_7; - - _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(content_type) + 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), - (content_type), - sizeof(content_type[_ORBIT_tmpvar_0]) * - _ORBIT_tmpvar_1); - _ORBIT_tmpvar_3 = strlen(filename) + 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), - (filename), - sizeof(filename[_ORBIT_tmpvar_2]) * - _ORBIT_tmpvar_3); - _ORBIT_tmpvar_5 = strlen(description) + 1; - giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), 4); - { - guchar *_ORBIT_t; - - _ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_5)); - memcpy(_ORBIT_t, &(_ORBIT_tmpvar_5), sizeof(_ORBIT_tmpvar_5)); - giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), (_ORBIT_t), - sizeof(_ORBIT_tmpvar_5)); - } - giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer), - (description), - sizeof(description[_ORBIT_tmpvar_4]) * - _ORBIT_tmpvar_5); - giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer), - &(show_inline), sizeof(show_inline)); - _ORBIT_tmpvar_7 = strlen(data) + 1; - giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), 4); - { - guchar *_ORBIT_t; - - _ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_7)); - memcpy(_ORBIT_t, &(_ORBIT_tmpvar_7), sizeof(_ORBIT_tmpvar_7)); - giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER - (_ORBIT_send_buffer), (_ORBIT_t), - sizeof(_ORBIT_tmpvar_7)); - } - giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer), - (data), - sizeof(data[_ORBIT_tmpvar_6]) * - _ORBIT_tmpvar_7); - 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 -Evolution_Composer_show(Evolution_Composer _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 && Evolution_Composer__classid) { - - ((POA_Evolution_Composer__epv *) _obj-> - vepv[Evolution_Composer__classid])->show(_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[5]; - } - _ORBIT_operation_name_data = - { - 5, "show"}; - static const struct iovec _ORBIT_operation_vec = - { (gpointer) & _ORBIT_operation_name_data, 9 }; - - _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; - } - } -} |