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