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 | |
---|
9 | void |
---|
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 | } |
---|
20 | static ORBitSmallSkeleton |
---|
21 | get_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 | |
---|
38 | void |
---|
39 | POA_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 | |
---|
63 | void |
---|
64 | POA_Plugin__fini(PortableServer_Servant servant, CORBA_Environment * env) |
---|
65 | { |
---|
66 | PortableServer_ServantBase__fini(servant, env); |
---|
67 | } |
---|