source: trunk/third/bonobo-activation/test/empty-skels.c @ 18311

Revision 18311, 1.9 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18310, which included commits to RCS files with non-trunk default branches.
Line 
1/*
2 * This file was generated by orbit-idl-2 - DO NOT EDIT!
3 */
4
5#include <string.h>
6#define ORBIT2_STUBS_API
7#include "empty.h"
8
9void
10_ORBIT_skel_small_Empty_doNothing(POA_Empty * _o_servant, gpointer _o_retval,
11                                  gpointer * _o_args, CORBA_Context _o_ctx,
12                                  CORBA_Environment * _o_ev,
13                                  void (*_impl_doNothing)
14                                  (PortableServer_Servant _servant,
15                                   CORBA_Environment * ev))
16{
17   _impl_doNothing(_o_servant, _o_ev);
18}
19static ORBitSmallSkeleton
20get_skel_small_Empty(POA_Empty * servant,
21                     const char *opname, gpointer * m_data, gpointer * impl)
22{
23   switch (opname[0]) {
24     case 'd':
25        if (strcmp((opname + 1), "oNothing"))
26           break;
27        *impl = (gpointer) servant->vepv->Empty_epv->doNothing;
28        *m_data = (gpointer) & Empty__iinterface.methods._buffer[0];
29        return (ORBitSmallSkeleton) _ORBIT_skel_small_Empty_doNothing;
30        break;
31     default:
32        break;
33   }
34   return NULL;
35}
36
37void
38POA_Empty__init(PortableServer_Servant servant, CORBA_Environment * env)
39{
40   static PortableServer_ClassInfo class_info =
41      { NULL, (ORBit_small_impl_finder) & get_skel_small_Empty,
42"IDL:Empty:1.0", &Empty__classid, NULL, &Empty__iinterface };
43   POA_Empty__vepv *fakevepv = NULL;
44
45   if (((PortableServer_ServantBase *) servant)->vepv[0]->finalize == 0) {
46      ((PortableServer_ServantBase *) servant)->vepv[0]->finalize =
47         POA_Empty__fini;
48   }
49   PortableServer_ServantBase__init(((PortableServer_ServantBase *) servant),
50                                    env);
51   ORBit_classinfo_register(&class_info);
52   ORBIT_SERVANT_SET_CLASSINFO(servant, &class_info);
53
54   if (!class_info.vepvmap) {
55      class_info.vepvmap = g_new0(ORBit_VepvIdx, Empty__classid + 1);
56      class_info.vepvmap[Empty__classid] =
57         (((char *) &(fakevepv->Empty_epv)) -
58          ((char *) (fakevepv))) / sizeof(GFunc);
59   }
60}
61
62void
63POA_Empty__fini(PortableServer_Servant servant, CORBA_Environment * env)
64{
65   PortableServer_ServantBase__fini(servant, env);
66}
Note: See TracBrowser for help on using the repository browser.