LibreOffice Module bridges (master) 1
gcc3_linux_s390x/uno2cpp.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#include <sal/config.h>
21
22#include <exception>
23#include <malloc.h>
24#include <typeinfo>
25
26#include <com/sun/star/uno/Exception.hpp>
27#include <com/sun/star/uno/RuntimeException.hpp>
28#include <com/sun/star/uno/genfunc.hxx>
30#include <uno/data.h>
31
32#include "bridge.hxx"
33#include "types.hxx"
34#include "unointerfaceproxy.hxx"
35#include "vtables.hxx"
36
37#include "share.hxx"
38
39#include <stdio.h>
40#include <string.h>
41
42
43using namespace ::com::sun::star::uno;
44
45void MapReturn(long r2, double f0, typelib_TypeClass eTypeClass, sal_uInt64* pRegisterReturn)
46{
47#if OSL_DEBUG_LEVEL > 2
48 fprintf(stderr,"Mapping Return with %lx %ld %f\n", r2, r2, f0);
49#endif
50 switch (eTypeClass)
51 {
52 case typelib_TypeClass_HYPER:
53 case typelib_TypeClass_UNSIGNED_HYPER:
54 *pRegisterReturn = r2;
55 break;
56 case typelib_TypeClass_LONG:
57 case typelib_TypeClass_UNSIGNED_LONG:
58 case typelib_TypeClass_ENUM:
59 *(unsigned int*)pRegisterReturn = (unsigned int)r2;
60 break;
61 case typelib_TypeClass_CHAR:
62 case typelib_TypeClass_SHORT:
63 case typelib_TypeClass_UNSIGNED_SHORT:
64 *(unsigned short*)pRegisterReturn = (unsigned short)r2;
65 break;
66 case typelib_TypeClass_BOOLEAN:
67 case typelib_TypeClass_BYTE:
68 *(unsigned char*)pRegisterReturn = (unsigned char)r2;
69 break;
70 case typelib_TypeClass_FLOAT:
71 *reinterpret_cast<float *>( pRegisterReturn ) = f0;
72 break;
73 case typelib_TypeClass_DOUBLE:
74 *reinterpret_cast<double *>( pRegisterReturn ) = f0;
75 break;
76 default:
77 break;
78 }
79#if OSL_DEBUG_LEVEL > 2
80 fprintf(stderr, "end of MapReturn with %x\n", pRegisterReturn ? *pRegisterReturn : 0);
81#endif
82}
83
84#define INSERT_FLOAT( pSV, nr, pFPR, pDS ) \
85 { \
86 if ( nr < s390x::MAX_SSE_REGS ) \
87 { \
88 pFPR[nr++] = *reinterpret_cast<float *>( pSV ); \
89 } \
90 else \
91 *pDS++ = *reinterpret_cast<sal_uInt64 *>( pSV ); \
92 }
93
94#define INSERT_DOUBLE( pSV, nr, pFPR, pDS ) \
95 if ( nr < s390x::MAX_SSE_REGS ) \
96 pFPR[nr++] = *reinterpret_cast<double *>( pSV ); \
97 else \
98 *pDS++ = *reinterpret_cast<sal_uInt64 *>( pSV ); // verbatim!
99
100#define INSERT_INT64( pSV, nr, pGPR, pDS ) \
101 if ( nr < s390x::MAX_GPR_REGS ) \
102 pGPR[nr++] = *reinterpret_cast<sal_uInt64 *>( pSV ); \
103 else \
104 *pDS++ = *reinterpret_cast<sal_uInt64 *>( pSV );
105
106#define INSERT_INT32( pSV, nr, pGPR, pDS ) \
107 if ( nr < s390x::MAX_GPR_REGS ) \
108 pGPR[nr++] = *reinterpret_cast<sal_uInt32 *>( pSV ); \
109 else \
110 *pDS++ = *reinterpret_cast<sal_uInt32 *>( pSV );
111
112#define INSERT_INT16( pSV, nr, pGPR, pDS ) \
113 if ( nr < s390x::MAX_GPR_REGS ) \
114 pGPR[nr++] = *reinterpret_cast<sal_uInt16 *>( pSV ); \
115 else \
116 *pDS++ = *reinterpret_cast<sal_uInt16 *>( pSV );
117
118#define INSERT_INT8( pSV, nr, pGPR, pDS ) \
119 if ( nr < s390x::MAX_GPR_REGS ) \
120 pGPR[nr++] = *reinterpret_cast<sal_uInt8 *>( pSV ); \
121 else \
122 *pDS++ = *reinterpret_cast<sal_uInt8 *>( pSV );
123
124namespace
125{
126
128 void * pThis, sal_Int32 nVtableIndex,
129 void * pRegisterReturn, typelib_TypeDescription * pReturnTypeDescr,
130 sal_uInt64 *pStack, sal_uInt32 nStack,
131 sal_uInt64 *pGPR, sal_uInt32 nGPR,
132 double *pFPR, sal_uInt32 nFPR)
133{
134 // Should not happen, but...
135 if ( nFPR > s390x::MAX_SSE_REGS )
136 nFPR = s390x::MAX_SSE_REGS;
137 if ( nGPR > s390x::MAX_GPR_REGS )
138 nGPR = s390x::MAX_GPR_REGS;
139
140#if OSL_DEBUG_LEVEL > 2
141 // Let's figure out what is really going on here
142 {
143 fprintf( stderr, "= nStack is %d\n", nStack );
144 fprintf( stderr, "= callVirtualMethod() =\nGPR's (%d): ", nGPR );
145 for ( unsigned int i = 0; i < nGPR; ++i )
146 fprintf( stderr, "0x%lx, ", pGPR[i] );
147 fprintf( stderr, "\nFPR's (%d): ", nFPR );
148 for ( unsigned int i = 0; i < nFPR; ++i )
149 fprintf( stderr, "0x%lx (%f), ", pFPR[i], pFPR[i] );
150 fprintf( stderr, "\nStack (%d): ", nStack );
151 for ( unsigned int i = 0; i < nStack; ++i )
152 fprintf( stderr, "0x%lx, ", pStack[i] );
153 fprintf( stderr, "\n" );
154 fprintf( stderr, "pRegisterReturn is %p\n", pRegisterReturn);
155 }
156#endif
157
158 // Load parameters to stack, if necessary
159 // Stack, if used, must be 8-bytes aligned
160 sal_uInt64 *stack = (sal_uInt64 *) __builtin_alloca( nStack * 8 );
161 memcpy( stack, pStack, nStack * 8 );
162
163 // To get pointer to method
164 // a) get the address of the vtable
165 sal_uInt64 pMethod = *((sal_uInt64 *)pThis);
166 // b) get the address from the vtable entry at offset
167 pMethod += 8 * nVtableIndex;
168 pMethod = *((sal_uInt64 *)pMethod);
169
170 typedef void (* FunctionCall )( sal_uInt64, sal_uInt64, sal_uInt64, sal_uInt64, sal_uInt64 );
171 FunctionCall pFunc = (FunctionCall)pMethod;
172
173 switch (nFPR) //deliberate fall through
174 {
175 case 4:
176 asm volatile("ld 6,%0" :: "m"(pFPR[3]) : "16");
177 case 3:
178 asm volatile("ld 4,%0" :: "m"(pFPR[2]) : "16");
179 case 2:
180 asm volatile("ld 2,%0" :: "m"(pFPR[1]) : "16");
181 case 1:
182 asm volatile("ld 0,%0" :: "m"(pFPR[0]) : "16");
183 default:
184 break;
185 }
186
187 volatile long r2;
188 volatile double f0;
189
190 (*pFunc)(pGPR[0], pGPR[1], pGPR[2], pGPR[3], pGPR[4]);
191
192 __asm__ __volatile__ (
193 "lgr %0,2\n\t"
194 "ldr %1,0\n\t"
195 : "=r" (r2), "=f" (f0)
196 : :
197 );
198
199 MapReturn(r2, f0, pReturnTypeDescr->eTypeClass, (sal_uInt64*)pRegisterReturn);
200}
201
202
203static void cpp_call(
206 typelib_TypeDescriptionReference * pReturnTypeRef,
207 sal_Int32 nParams, typelib_MethodParameter * pParams,
208 void * pUnoReturn, void * pUnoArgs[], uno_Any ** ppUnoExc )
209{
210 // max space for: [complex ret ptr], values|ptr ...
211 sal_uInt64 * pStack = (sal_uInt64 *)alloca( (nParams+3) * sizeof(sal_Int64) );
212 sal_uInt64 * pStackStart = pStack;
213
214 sal_uInt64 pGPR[s390x::MAX_GPR_REGS];
215 sal_uInt32 nGPR = 0;
216
217 double pFPR[s390x::MAX_SSE_REGS];
218 sal_uInt32 nFPR = 0;
219
220 // return
221 typelib_TypeDescription * pReturnTypeDescr = 0;
222 TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
223 assert(pReturnTypeDescr);
224
225 void * pCppReturn = 0; // if != 0 && != pUnoReturn, needs reconversion
226
227 if (pReturnTypeDescr)
228 {
229 if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr ))
230 {
231 pCppReturn = pUnoReturn; // direct way for simple types
232 }
233 else
234 {
235 // complex return via ptr
236 pCppReturn = (bridges::cpp_uno::shared::relatesToInterfaceType( pReturnTypeDescr )
237 ? alloca( pReturnTypeDescr->nSize )
238 : pUnoReturn); // direct way
239 INSERT_INT64( &pCppReturn, nGPR, pGPR, pStack );
240 }
241 }
242 // push "this" pointer
243 void * pAdjustedThisPtr = reinterpret_cast< void ** >( pThis->getCppI() ) + aVtableSlot.offset;
244
245 INSERT_INT64( &pAdjustedThisPtr, nGPR, pGPR, pStack );
246
247 // stack space
248 static_assert(sizeof(void *) == sizeof(sal_Int64), "### unexpected size!");
249 // args
250 void ** pCppArgs = (void **)alloca( 3 * sizeof(void *) * nParams );
251 // indices of values this have to be converted (interface conversion cpp<=>uno)
252 sal_Int32 * pTempIndices = (sal_Int32 *)(pCppArgs + nParams);
253 // type descriptions for reconversions
254 typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
255
256 sal_Int32 nTempIndices = 0;
257
258 for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
259 {
260 const typelib_MethodParameter & rParam = pParams[nPos];
261 typelib_TypeDescription * pParamTypeDescr = 0;
262 TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
263
264 if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
265 {
266 uno_copyAndConvertData( pCppArgs[nPos] = alloca( 8 ), pUnoArgs[nPos], pParamTypeDescr,
267 pThis->getBridge()->getUno2Cpp() );
268
269 switch (pParamTypeDescr->eTypeClass)
270 {
271 case typelib_TypeClass_HYPER:
272 case typelib_TypeClass_UNSIGNED_HYPER:
273 INSERT_INT64( pCppArgs[nPos], nGPR, pGPR, pStack );
274 break;
275 case typelib_TypeClass_LONG:
276 case typelib_TypeClass_UNSIGNED_LONG:
277 case typelib_TypeClass_ENUM:
278 INSERT_INT32( pCppArgs[nPos], nGPR, pGPR, pStack );
279 break;
280 case typelib_TypeClass_SHORT:
281 case typelib_TypeClass_CHAR:
282 case typelib_TypeClass_UNSIGNED_SHORT:
283 INSERT_INT16( pCppArgs[nPos], nGPR, pGPR, pStack );
284 break;
285 case typelib_TypeClass_BOOLEAN:
286 case typelib_TypeClass_BYTE:
287 INSERT_INT8( pCppArgs[nPos], nGPR, pGPR, pStack );
288 break;
289 case typelib_TypeClass_FLOAT:
290 INSERT_FLOAT( pCppArgs[nPos], nFPR, pFPR, pStack );
291 break;
292 case typelib_TypeClass_DOUBLE:
293 INSERT_DOUBLE( pCppArgs[nPos], nFPR, pFPR, pStack );
294 break;
295 default:
296 break;
297 }
298
299 // no longer needed
300 TYPELIB_DANGER_RELEASE( pParamTypeDescr );
301 }
302 else // ptr to complex value | ref
303 {
304 if (! rParam.bIn) // is pure out
305 {
306 // cpp out is constructed mem, uno out is not!
308 pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
309 pParamTypeDescr );
310 pTempIndices[nTempIndices] = nPos; // default constructed for cpp call
311 // will be released at reconversion
312 ppTempParamTypeDescr[nTempIndices++] = pParamTypeDescr;
313 }
314 // is in/inout
315 else if (bridges::cpp_uno::shared::relatesToInterfaceType( pParamTypeDescr ))
316 {
318 pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
319 pUnoArgs[nPos], pParamTypeDescr, pThis->getBridge()->getUno2Cpp() );
320
321 pTempIndices[nTempIndices] = nPos; // has to be reconverted
322 // will be released at reconversion
323 ppTempParamTypeDescr[nTempIndices++] = pParamTypeDescr;
324 }
325 else // direct way
326 {
327 pCppArgs[nPos] = pUnoArgs[nPos];
328 // no longer needed
329 TYPELIB_DANGER_RELEASE( pParamTypeDescr );
330 }
331 INSERT_INT64( &(pCppArgs[nPos]), nGPR, pGPR, pStack );
332 }
333 }
334
335 try
336 {
337 try {
339 pAdjustedThisPtr, aVtableSlot.index,
340 pCppReturn, pReturnTypeDescr,
341 pStackStart, (pStack - pStackStart),
342 pGPR, nGPR,
343 pFPR, nFPR );
344 } catch (css::uno::Exception &) {
345 throw;
346 } catch (std::exception & e) {
347 throw css::uno::RuntimeException(
348 "C++ code threw " + o3tl::runtimeToOUString(typeid(e).name()) + ": "
349 + o3tl::runtimeToOUString(e.what()));
350 } catch (...) {
351 throw css::uno::RuntimeException("C++ code threw unknown exception");
352 }
353 // NO exception occurred...
354 *ppUnoExc = 0;
355
356 // reconvert temporary params
357 for ( ; nTempIndices--; )
358 {
359 sal_Int32 nIndex = pTempIndices[nTempIndices];
360 typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndices];
361
362 if (pParams[nIndex].bIn)
363 {
364 if (pParams[nIndex].bOut) // inout
365 {
366 uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
367 uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
368 pThis->getBridge()->getCpp2Uno() );
369 }
370 }
371 else // pure out
372 {
373 uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
374 pThis->getBridge()->getCpp2Uno() );
375 }
376 // destroy temp cpp param => cpp: every param was constructed
377 uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
378
379 TYPELIB_DANGER_RELEASE( pParamTypeDescr );
380 }
381 // return value
382 if (pCppReturn && pUnoReturn != pCppReturn)
383 {
384 uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
385 pThis->getBridge()->getCpp2Uno() );
386 uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
387 }
388 }
389 catch (...)
390 {
391 // fill uno exception
392 CPPU_CURRENT_NAMESPACE::fillUnoException(*ppUnoExc, pThis->getBridge()->getCpp2Uno());
393
394
395 // temporary params
396 for ( ; nTempIndices--; )
397 {
398 sal_Int32 nIndex = pTempIndices[nTempIndices];
399 // destroy temp cpp param => cpp: every param was constructed
400 uno_destructData( pCppArgs[nIndex], ppTempParamTypeDescr[nTempIndices], cpp_release );
401 TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndices] );
402 }
403 // return type
404 if (pReturnTypeDescr)
405 TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
406 }
407}
408}
409
410namespace bridges::cpp_uno::shared {
411
413 uno_Interface * pUnoI, const typelib_TypeDescription * pMemberDescr,
414 void * pReturn, void * pArgs[], uno_Any ** ppException )
415{
416#if OSL_DEBUG_LEVEL > 2
417 fprintf(stderr, "unoInterfaceProxyDispatch\n");
418#endif
419
420
421 // is my surrogate
423 = static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy *> (pUnoI);
424
425 switch (pMemberDescr->eTypeClass)
426 {
427 case typelib_TypeClass_INTERFACE_ATTRIBUTE:
428 {
429
430 VtableSlot aVtableSlot(
432 reinterpret_cast<
433 typelib_InterfaceAttributeTypeDescription const * >(
434 pMemberDescr)));
435
436 if (pReturn)
437 {
438 // dependent dispatch
439 cpp_call(
440 pThis, aVtableSlot,
441 ((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef,
442 0, 0, // no params
443 pReturn, pArgs, ppException );
444 }
445 else
446 {
447 // is SET
448 typelib_MethodParameter aParam;
449 aParam.pTypeRef =
450 ((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef;
451 aParam.bIn = sal_True;
452 aParam.bOut = sal_False;
453
454 typelib_TypeDescriptionReference * pReturnTypeRef = 0;
455 OUString aVoidName("void");
457 &pReturnTypeRef, typelib_TypeClass_VOID, aVoidName.pData );
458
459 // dependent dispatch
460 aVtableSlot.index += 1; //get then set method
461 cpp_call(
462 pThis, aVtableSlot,
463 pReturnTypeRef,
464 1, &aParam,
465 pReturn, pArgs, ppException );
466
468 }
469
470 break;
471 }
472 case typelib_TypeClass_INTERFACE_METHOD:
473 {
474
475 VtableSlot aVtableSlot(
477 reinterpret_cast<
478 typelib_InterfaceMethodTypeDescription const * >(
479 pMemberDescr)));
480 switch (aVtableSlot.index)
481 {
482 // standard calls
483 case 1: // acquire uno interface
484 (*pUnoI->acquire)( pUnoI );
485 *ppException = 0;
486 break;
487 case 2: // release uno interface
488 (*pUnoI->release)( pUnoI );
489 *ppException = 0;
490 break;
491 case 0: // queryInterface() opt
492 {
493 typelib_TypeDescription * pTD = 0;
494 TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pArgs[0] )->getTypeLibType() );
495 if (pTD)
496 {
497 uno_Interface * pInterface = 0;
498 (*pThis->pBridge->getUnoEnv()->getRegisteredInterface)(
499 pThis->pBridge->getUnoEnv(),
500 (void **)&pInterface, pThis->oid.pData, (typelib_InterfaceTypeDescription *)pTD );
501
502 if (pInterface)
503 {
504 ::uno_any_construct(
505 reinterpret_cast< uno_Any * >( pReturn ),
506 &pInterface, pTD, 0 );
507 (*pInterface->release)( pInterface );
508 TYPELIB_DANGER_RELEASE( pTD );
509 *ppException = 0;
510 break;
511 }
512 TYPELIB_DANGER_RELEASE( pTD );
513 }
514 } // else perform queryInterface()
515 default:
516 // dependent dispatch
517 cpp_call(
518 pThis, aVtableSlot,
519 ((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pReturnTypeRef,
520 ((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->nParams,
521 ((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pParams,
522 pReturn, pArgs, ppException );
523 }
524 break;
525 }
526 default:
527 {
528 ::com::sun::star::uno::RuntimeException aExc(
529 "illegal member type description!",
531
532 Type const & rExcType = cppu::UnoType<decltype(aExc)>::get();
533 // binary identical null reference
534 ::uno_type_any_construct( *ppException, &aExc, rExcType.getTypeLibType(), 0 );
535 }
536 }
537}
538
539}
540
541/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
uno_ExtEnvironment * getUnoEnv()
Definition: bridge.hxx:70
A uno proxy wrapping a cpp interface.
void SAL_CALL uno_destructData(void *pValue, typelib_TypeDescription *pTypeDescr, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
void SAL_CALL uno_constructData(void *pMem, typelib_TypeDescription *pTypeDescr) SAL_THROW_EXTERN_C()
void SAL_CALL uno_copyAndConvertData(void *pDest, void *pSource, typelib_TypeDescription *pTypeDescr, uno_Mapping *mapping) SAL_THROW_EXTERN_C()
char const * name
register sal_uInt32 r28 __asm__("%r28")
void callVirtualMethod(void *pThis, sal_uInt32 nVtableIndex, void *pRegisterReturn, typelib_TypeDescription *pReturnTypeDescr, bool bRegisterReturn, sal_uInt32 *pStack, sal_uInt32 nStack, sal_uInt32 *pGPR, double *pFPR) __attribute__((noinline))
#define INSERT_INT32(pSV, nr, pGPR, pDS)
#define INSERT_INT8(pSV, nr, pGPR, pDS)
void MapReturn(long r2, double f0, typelib_TypeClass eTypeClass, sal_uInt64 *pRegisterReturn)
#define INSERT_FLOAT(pSV, nr, pFPR, pDS)
#define INSERT_INT16(pSV, nr, pGPR, pDS)
#define INSERT_INT64(pSV, nr, pGPR, pDS)
#define INSERT_DOUBLE(pSV, nr, pFPR, pDS)
static void cpp_call(bridges::cpp_uno::shared::UnoInterfaceProxy *pThis, bridges::cpp_uno::shared::VtableSlot aVtableSlot, typelib_TypeDescriptionReference *pReturnTypeRef, sal_Int32 nParams, typelib_MethodParameter *pParams, void *pUnoReturn, void *pUnoArgs[], uno_Any **ppUnoExc)
sal_Int32 nIndex
sal_uInt16 nPos
struct _typelib_TypeDescription typelib_TypeDescription
Definition: msvc/except.hxx:52
struct _uno_Any uno_Any
Definition: msvc/except.hxx:31
void fillUnoException(uno_Any *pExc, uno_Mapping *pCpp2Uno)
void unoInterfaceProxyDispatch(uno_Interface *pUnoI, const typelib_TypeDescription *pMemberDescr, void *pReturn, void *pArgs[], uno_Any **ppException)
VtableSlot getVtableSlot(typelib_InterfaceAttributeTypeDescription const *ifcMember)
Calculates the vtable slot associated with an interface attribute member.
Definition: vtables.cxx:132
bool isSimpleType(typelib_TypeClass typeClass)
Determines whether a type is a "simple" type (VOID, BOOLEAN, BYTE, SHORT, UNSIGNED SHORT,...
Definition: types.cxx:28
bool relatesToInterfaceType(typelib_TypeDescription const *type)
Determines whether a type relates to an interface type (is itself an interface type,...
Definition: types.cxx:41
Type
int i
OUString runtimeToOUString(char const *runtimeString)
Represents a vtable slot of a C++ class.
Definition: vtables.hxx:60
sal_Int32 index
The index within the vtable.
Definition: vtables.hxx:76
sal_Int32 offset
The offset of the vtable.
Definition: vtables.hxx:68
void SAL_CALL typelib_typedescriptionreference_new(typelib_TypeDescriptionReference **ppTDR, typelib_TypeClass eTypeClass, rtl_uString *pTypeName) SAL_THROW_EXTERN_C()
void SAL_CALL typelib_typedescriptionreference_release(typelib_TypeDescriptionReference *pRef) SAL_THROW_EXTERN_C()
#define sal_True
#define sal_False