source: trunk/third/evolution/shell/Evolution-Wombat-stubs.c @ 18142

Revision 18142, 13.5 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18141, which included commits to RCS files with non-trunk default branches.
Line 
1/*
2 * This file was generated by orbit-idl - DO NOT EDIT!
3 */
4
5#include <string.h>
6#include "Evolution-Wombat.h"
7
8CORBA_char *
9GNOME_Evolution_WombatClient_getPassword(GNOME_Evolution_WombatClient _obj,
10                                         const CORBA_char * prompt,
11                                         const CORBA_char * key,
12                                         CORBA_Environment * ev)
13{
14   register GIOP_unsigned_long _ORBIT_request_id,
15    _ORBIT_system_exception_minor;
16   register CORBA_completion_status _ORBIT_completion_status;
17   register GIOPSendBuffer *_ORBIT_send_buffer;
18   register GIOPRecvBuffer *_ORBIT_recv_buffer;
19   register GIOPConnection *_cnx;
20   CORBA_char *_ORBIT_retval;
21   register CORBA_unsigned_long _ORBIT_tmpvar_6;
22   CORBA_unsigned_long _ORBIT_tmpvar_7;
23
24   if (_obj->servant && _obj->vepv && GNOME_Evolution_WombatClient__classid) {
25      _ORBIT_retval =
26         ((POA_GNOME_Evolution_WombatClient__epv *) _obj->
27          vepv[GNOME_Evolution_WombatClient__classid])->getPassword(_obj->
28                                                                    servant,
29                                                                    prompt,
30                                                                    key, ev);
31      return _ORBIT_retval;
32   }
33   if (0)
34      return *(&_ORBIT_retval);
35   _cnx = ORBit_object_get_connection(_obj);
36 _ORBIT_retry_request:
37   _ORBIT_send_buffer = NULL;
38   _ORBIT_recv_buffer = NULL;
39   _ORBIT_completion_status = CORBA_COMPLETED_NO;
40   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
41   {                            /* marshalling */
42      static const struct
43      {
44         CORBA_unsigned_long len;
45         char opname[12];
46      }
47      _ORBIT_operation_name_data =
48      {
49      12, "getPassword"};
50      static const struct iovec _ORBIT_operation_vec =
51         { (gpointer) & _ORBIT_operation_name_data, 16 };
52      register CORBA_unsigned_long _ORBIT_tmpvar_0;
53      CORBA_unsigned_long _ORBIT_tmpvar_1;
54      register CORBA_unsigned_long _ORBIT_tmpvar_2;
55      CORBA_unsigned_long _ORBIT_tmpvar_3;
56
57      _ORBIT_send_buffer =
58         giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
59                                      CORBA_TRUE,
60                                      &(_obj->active_profile->object_key_vec),
61                                      &_ORBIT_operation_vec,
62                                      &ORBit_default_principal_iovec);
63
64      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
65      if (!_ORBIT_send_buffer)
66         goto _ORBIT_system_exception;
67      _ORBIT_tmpvar_1 = strlen(prompt) + 1;
68      giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
69                                       (_ORBIT_send_buffer), 4);
70      {
71         guchar *_ORBIT_t;
72
73         _ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_1));
74         memcpy(_ORBIT_t, &(_ORBIT_tmpvar_1), sizeof(_ORBIT_tmpvar_1));
75         giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
76                                        (_ORBIT_send_buffer), (_ORBIT_t),
77                                        sizeof(_ORBIT_tmpvar_1));
78      }
79      giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer),
80                                     (prompt),
81                                     sizeof(prompt[_ORBIT_tmpvar_0]) *
82                                     _ORBIT_tmpvar_1);
83      _ORBIT_tmpvar_3 = strlen(key) + 1;
84      giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
85                                       (_ORBIT_send_buffer), 4);
86      {
87         guchar *_ORBIT_t;
88
89         _ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_3));
90         memcpy(_ORBIT_t, &(_ORBIT_tmpvar_3), sizeof(_ORBIT_tmpvar_3));
91         giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
92                                        (_ORBIT_send_buffer), (_ORBIT_t),
93                                        sizeof(_ORBIT_tmpvar_3));
94      }
95      giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer),
96                                     (key),
97                                     sizeof(key[_ORBIT_tmpvar_2]) *
98                                     _ORBIT_tmpvar_3);
99      giop_send_buffer_write(_ORBIT_send_buffer);
100      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
101      giop_send_buffer_unuse(_ORBIT_send_buffer);
102      _ORBIT_send_buffer = NULL;
103   }
104   {                            /* demarshalling */
105      register guchar *_ORBIT_curptr;
106
107      _ORBIT_recv_buffer =
108         giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
109      if (!_ORBIT_recv_buffer)
110         goto _ORBIT_system_exception;
111      _ORBIT_completion_status = CORBA_COMPLETED_YES;
112      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
113          GIOP_NO_EXCEPTION)
114         goto _ORBIT_msg_exception;
115      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
116      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
117         _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
118         (*((guint32 *) & (_ORBIT_tmpvar_7))) =
119            GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
120         _ORBIT_curptr += 4;
121         _ORBIT_retval = CORBA_string_alloc(_ORBIT_tmpvar_7);
122         memcpy(_ORBIT_retval, _ORBIT_curptr,
123                sizeof(_ORBIT_retval[_ORBIT_tmpvar_6]) * _ORBIT_tmpvar_7);
124         _ORBIT_curptr +=
125            sizeof(_ORBIT_retval[_ORBIT_tmpvar_6]) * _ORBIT_tmpvar_7;
126      } else {
127         _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
128         _ORBIT_tmpvar_7 = *((CORBA_unsigned_long *) _ORBIT_curptr);
129         _ORBIT_curptr += 4;
130         _ORBIT_retval = CORBA_string_alloc(_ORBIT_tmpvar_7);
131         memcpy(_ORBIT_retval, _ORBIT_curptr,
132                sizeof(_ORBIT_retval[_ORBIT_tmpvar_6]) * _ORBIT_tmpvar_7);
133         _ORBIT_curptr +=
134            sizeof(_ORBIT_retval[_ORBIT_tmpvar_6]) * _ORBIT_tmpvar_7;
135      }
136      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
137      return _ORBIT_retval;
138    _ORBIT_system_exception:
139      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
140                                 _ORBIT_completion_status);
141      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
142      giop_send_buffer_unuse(_ORBIT_send_buffer);
143      return _ORBIT_retval;
144    _ORBIT_msg_exception:
145      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
146          GIOP_LOCATION_FORWARD) {
147         if (_obj->forward_locations != NULL)
148            ORBit_delete_profiles(_obj->forward_locations);
149         _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
150         _cnx = ORBit_object_get_forwarded_connection(_obj);
151         giop_recv_buffer_unuse(_ORBIT_recv_buffer);
152
153         goto _ORBIT_retry_request;
154      } else {
155         ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
156         giop_recv_buffer_unuse(_ORBIT_recv_buffer);
157         return _ORBIT_retval;
158      }
159   }
160}
161void
162GNOME_Evolution_WombatClient_forgetPassword(GNOME_Evolution_WombatClient _obj,
163                                            const CORBA_char * key,
164                                            CORBA_Environment * ev)
165{
166   register GIOP_unsigned_long _ORBIT_request_id,
167    _ORBIT_system_exception_minor;
168   register CORBA_completion_status _ORBIT_completion_status;
169   register GIOPSendBuffer *_ORBIT_send_buffer;
170   register GIOPRecvBuffer *_ORBIT_recv_buffer;
171   register GIOPConnection *_cnx;
172
173   if (_obj->servant && _obj->vepv && GNOME_Evolution_WombatClient__classid) {
174      ((POA_GNOME_Evolution_WombatClient__epv *) _obj->
175       vepv[GNOME_Evolution_WombatClient__classid])->forgetPassword(_obj->
176                                                                    servant,
177                                                                    key, ev);
178      return;
179   }
180   _cnx = ORBit_object_get_connection(_obj);
181 _ORBIT_retry_request:
182   _ORBIT_send_buffer = NULL;
183   _ORBIT_recv_buffer = NULL;
184   _ORBIT_completion_status = CORBA_COMPLETED_NO;
185   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
186   {                            /* marshalling */
187      static const struct
188      {
189         CORBA_unsigned_long len;
190         char opname[15];
191      }
192      _ORBIT_operation_name_data =
193      {
194      15, "forgetPassword"};
195      static const struct iovec _ORBIT_operation_vec =
196         { (gpointer) & _ORBIT_operation_name_data, 19 };
197      register CORBA_unsigned_long _ORBIT_tmpvar_0;
198      CORBA_unsigned_long _ORBIT_tmpvar_1;
199
200      _ORBIT_send_buffer =
201         giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
202                                      CORBA_TRUE,
203                                      &(_obj->active_profile->object_key_vec),
204                                      &_ORBIT_operation_vec,
205                                      &ORBit_default_principal_iovec);
206
207      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
208      if (!_ORBIT_send_buffer)
209         goto _ORBIT_system_exception;
210      _ORBIT_tmpvar_1 = strlen(key) + 1;
211      giop_message_buffer_do_alignment(GIOP_MESSAGE_BUFFER
212                                       (_ORBIT_send_buffer), 4);
213      {
214         guchar *_ORBIT_t;
215
216         _ORBIT_t = alloca(sizeof(_ORBIT_tmpvar_1));
217         memcpy(_ORBIT_t, &(_ORBIT_tmpvar_1), sizeof(_ORBIT_tmpvar_1));
218         giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER
219                                        (_ORBIT_send_buffer), (_ORBIT_t),
220                                        sizeof(_ORBIT_tmpvar_1));
221      }
222      giop_message_buffer_append_mem(GIOP_MESSAGE_BUFFER(_ORBIT_send_buffer),
223                                     (key),
224                                     sizeof(key[_ORBIT_tmpvar_0]) *
225                                     _ORBIT_tmpvar_1);
226      giop_send_buffer_write(_ORBIT_send_buffer);
227      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
228      giop_send_buffer_unuse(_ORBIT_send_buffer);
229      _ORBIT_send_buffer = NULL;
230   }
231   {                            /* demarshalling */
232      register guchar *_ORBIT_curptr;
233
234      _ORBIT_recv_buffer =
235         giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
236      if (!_ORBIT_recv_buffer)
237         goto _ORBIT_system_exception;
238      _ORBIT_completion_status = CORBA_COMPLETED_YES;
239      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
240          GIOP_NO_EXCEPTION)
241         goto _ORBIT_msg_exception;
242      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
243      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
244      } else {
245      }
246      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
247      return;
248    _ORBIT_system_exception:
249      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
250                                 _ORBIT_completion_status);
251      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
252      giop_send_buffer_unuse(_ORBIT_send_buffer);
253      return;
254    _ORBIT_msg_exception:
255      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
256          GIOP_LOCATION_FORWARD) {
257         if (_obj->forward_locations != NULL)
258            ORBit_delete_profiles(_obj->forward_locations);
259         _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
260         _cnx = ORBit_object_get_forwarded_connection(_obj);
261         giop_recv_buffer_unuse(_ORBIT_recv_buffer);
262
263         goto _ORBIT_retry_request;
264      } else {
265         ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
266         giop_recv_buffer_unuse(_ORBIT_recv_buffer);
267         return;
268      }
269   }
270}
271CORBA_char *
272GNOME_Evolution_WombatInterfaceCheck__get_interfaceVersion
273   (GNOME_Evolution_WombatInterfaceCheck _obj, CORBA_Environment * ev)
274{
275   register GIOP_unsigned_long _ORBIT_request_id,
276    _ORBIT_system_exception_minor;
277   register CORBA_completion_status _ORBIT_completion_status;
278   register GIOPSendBuffer *_ORBIT_send_buffer;
279   register GIOPRecvBuffer *_ORBIT_recv_buffer;
280   register GIOPConnection *_cnx;
281   CORBA_char *_ORBIT_retval;
282   register CORBA_unsigned_long _ORBIT_tmpvar_2;
283   CORBA_unsigned_long _ORBIT_tmpvar_3;
284
285   if (_obj->servant && _obj->vepv
286       && GNOME_Evolution_WombatInterfaceCheck__classid) {
287      _ORBIT_retval =
288         ((POA_GNOME_Evolution_WombatInterfaceCheck__epv *) _obj->
289          vepv[GNOME_Evolution_WombatInterfaceCheck__classid])->
290         _get_interfaceVersion(_obj->servant, ev);
291      return _ORBIT_retval;
292   }
293   if (0)
294      return *(&_ORBIT_retval);
295   _cnx = ORBit_object_get_connection(_obj);
296 _ORBIT_retry_request:
297   _ORBIT_send_buffer = NULL;
298   _ORBIT_recv_buffer = NULL;
299   _ORBIT_completion_status = CORBA_COMPLETED_NO;
300   _ORBIT_request_id = GPOINTER_TO_UINT(alloca(0));
301   {                            /* marshalling */
302      static const struct
303      {
304         CORBA_unsigned_long len;
305         char opname[22];
306      }
307      _ORBIT_operation_name_data =
308      {
309      22, "_get_interfaceVersion"};
310      static const struct iovec _ORBIT_operation_vec =
311         { (gpointer) & _ORBIT_operation_name_data, 26 };
312      _ORBIT_send_buffer =
313         giop_send_request_buffer_use(_cnx, NULL, _ORBIT_request_id,
314                                      CORBA_TRUE,
315                                      &(_obj->active_profile->object_key_vec),
316                                      &_ORBIT_operation_vec,
317                                      &ORBit_default_principal_iovec);
318
319      _ORBIT_system_exception_minor = ex_CORBA_COMM_FAILURE;
320      if (!_ORBIT_send_buffer)
321         goto _ORBIT_system_exception;
322      giop_send_buffer_write(_ORBIT_send_buffer);
323      _ORBIT_completion_status = CORBA_COMPLETED_MAYBE;
324      giop_send_buffer_unuse(_ORBIT_send_buffer);
325      _ORBIT_send_buffer = NULL;
326   }
327   {                            /* demarshalling */
328      register guchar *_ORBIT_curptr;
329
330      _ORBIT_recv_buffer =
331         giop_recv_reply_buffer_use_2(_cnx, _ORBIT_request_id, TRUE);
332      if (!_ORBIT_recv_buffer)
333         goto _ORBIT_system_exception;
334      _ORBIT_completion_status = CORBA_COMPLETED_YES;
335      if (_ORBIT_recv_buffer->message.u.reply.reply_status !=
336          GIOP_NO_EXCEPTION)
337         goto _ORBIT_msg_exception;
338      _ORBIT_curptr = GIOP_RECV_BUFFER(_ORBIT_recv_buffer)->cur;
339      if (giop_msg_conversion_needed(GIOP_MESSAGE_BUFFER(_ORBIT_recv_buffer))) {
340         _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
341         (*((guint32 *) & (_ORBIT_tmpvar_3))) =
342            GUINT32_SWAP_LE_BE(*((guint32 *) _ORBIT_curptr));
343         _ORBIT_curptr += 4;
344         _ORBIT_retval = CORBA_string_alloc(_ORBIT_tmpvar_3);
345         memcpy(_ORBIT_retval, _ORBIT_curptr,
346                sizeof(_ORBIT_retval[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3);
347         _ORBIT_curptr +=
348            sizeof(_ORBIT_retval[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3;
349      } else {
350         _ORBIT_curptr = ALIGN_ADDRESS(_ORBIT_curptr, 4);
351         _ORBIT_tmpvar_3 = *((CORBA_unsigned_long *) _ORBIT_curptr);
352         _ORBIT_curptr += 4;
353         _ORBIT_retval = CORBA_string_alloc(_ORBIT_tmpvar_3);
354         memcpy(_ORBIT_retval, _ORBIT_curptr,
355                sizeof(_ORBIT_retval[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3);
356         _ORBIT_curptr +=
357            sizeof(_ORBIT_retval[_ORBIT_tmpvar_2]) * _ORBIT_tmpvar_3;
358      }
359      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
360      return _ORBIT_retval;
361    _ORBIT_system_exception:
362      CORBA_exception_set_system(ev, _ORBIT_system_exception_minor,
363                                 _ORBIT_completion_status);
364      giop_recv_buffer_unuse(_ORBIT_recv_buffer);
365      giop_send_buffer_unuse(_ORBIT_send_buffer);
366      return _ORBIT_retval;
367    _ORBIT_msg_exception:
368      if (_ORBIT_recv_buffer->message.u.reply.reply_status ==
369          GIOP_LOCATION_FORWARD) {
370         if (_obj->forward_locations != NULL)
371            ORBit_delete_profiles(_obj->forward_locations);
372         _obj->forward_locations = ORBit_demarshal_IOR(_ORBIT_recv_buffer);
373         _cnx = ORBit_object_get_forwarded_connection(_obj);
374         giop_recv_buffer_unuse(_ORBIT_recv_buffer);
375
376         goto _ORBIT_retry_request;
377      } else {
378         ORBit_handle_exception(_ORBIT_recv_buffer, ev, NULL, _obj->orb);
379         giop_recv_buffer_unuse(_ORBIT_recv_buffer);
380         return _ORBIT_retval;
381      }
382   }
383}
Note: See TracBrowser for help on using the repository browser.