source: trunk/third/bonobo-activation/test/plugin-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 "plugin.h"
8
9void
10_ORBIT_skel_small_Plugin_doPluginTest(POA_Plugin * _o_servant,
11                                      gpointer _o_retval, gpointer * _o_args,
12                                      CORBA_Context _o_ctx,
13                                      CORBA_Environment * _o_ev,
14                                      void (*_impl_doPluginTest)
15                                      (PortableServer_Servant _servant,
16                                       CORBA_Environment * ev))
17{
18   _impl_doPluginTest(_o_servant, _o_ev);
19}
20static ORBitSmallSkeleton
21get_skel_small_Plugin(POA_Plugin * servant,
22                      const char *opname, gpointer * m_data, gpointer * impl)
23{
24   switch (opname[0]) {
25     case 'd':
26        if (strcmp((opname + 1), "oPluginTest"))
27           break;
28        *impl = (gpointer) servant->vepv->Plugin_epv->doPluginTest;
29        *m_data = (gpointer) & Plugin__iinterface.methods._buffer[0];
30        return (ORBitSmallSkeleton) _ORBIT_skel_small_Plugin_doPluginTest;
31        break;
32     default:
33        break;
34   }
35   return NULL;
36}
37
38void
39POA_Plugin__init(PortableServer_Servant servant, CORBA_Environment * env)
40{
41   static PortableServer_ClassInfo class_info =
42      { NULL, (ORBit_small_impl_finder) & get_skel_small_Plugin,
43"IDL:Plugin:1.0", &Plugin__classid, NULL, &Plugin__iinterface };
44   POA_Plugin__vepv *fakevepv = NULL;
45
46   if (((PortableServer_ServantBase *) servant)->vepv[0]->finalize == 0) {
47      ((PortableServer_ServantBase *) servant)->vepv[0]->finalize =
48         POA_Plugin__fini;
49   }
50   PortableServer_ServantBase__init(((PortableServer_ServantBase *) servant),
51                                    env);
52   ORBit_classinfo_register(&class_info);
53   ORBIT_SERVANT_SET_CLASSINFO(servant, &class_info);
54
55   if (!class_info.vepvmap) {
56      class_info.vepvmap = g_new0(ORBit_VepvIdx, Plugin__classid + 1);
57      class_info.vepvmap[Plugin__classid] =
58         (((char *) &(fakevepv->Plugin_epv)) -
59          ((char *) (fakevepv))) / sizeof(GFunc);
60   }
61}
62
63void
64POA_Plugin__fini(PortableServer_Servant servant, CORBA_Environment * env)
65{
66   PortableServer_ServantBase__fini(servant, env);
67}
Note: See TracBrowser for help on using the repository browser.