LibreOffice Module bridges (master) 1
gcc3_linux_sparc/cpp2uno.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 <typeinfo>
23
24#include <com/sun/star/uno/genfunc.hxx>
25#include <sal/log.hxx>
26#include <typelib/typedescription.hxx>
27#include <uno/data.h>
28#include "bridge.hxx"
29#include "cppinterfaceproxy.hxx"
30#include "types.hxx"
31#include "vtablefactory.hxx"
32#include "share.hxx"
33
34using namespace com::sun::star::uno;
35
36namespace
37{
38
39static typelib_TypeClass cpp2uno_call(
41 const typelib_TypeDescription * pMemberTypeDescr,
42 typelib_TypeDescriptionReference * pReturnTypeRef, // 0 indicates void return
43 sal_Int32 nParams, typelib_MethodParameter * pParams,
44 void ** pCallStack,
45 sal_Int64 * pRegisterReturn /* space for register return */ )
46{
47 // pCallStack: [ret ptr], this, params
48 char * pCppStack = (char *)pCallStack;
49
50 // return
51 typelib_TypeDescription * pReturnTypeDescr = 0;
52 if (pReturnTypeRef)
53 TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
54
55 void * pUnoReturn = 0;
56 void * pCppReturn = 0; // complex return ptr: if != 0 && != pUnoReturn, reconversion need
57
58 if (pReturnTypeDescr)
59 {
60 if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr ))
61 pUnoReturn = pRegisterReturn; // direct way for simple types
62 else // complex return via ptr (pCppReturn)
63 {
64 pCppReturn = *(void**)pCppStack;
66 pReturnTypeDescr )
67 ? alloca( pReturnTypeDescr->nSize )
68 : pCppReturn); // direct way
69 pCppStack += sizeof( void* );
70 }
71 }
72 // pop this
73 pCppStack += sizeof( void* );
74
75 // stack space
76 static_assert(sizeof(void *) == sizeof(sal_Int32), "### unexpected size!");
77 // parameters
78 void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
79 void ** pCppArgs = pUnoArgs + nParams;
80 // indices of values this have to be converted (interface conversion cpp<=>uno)
81 sal_Int32 * pTempIndices = (sal_Int32 *)(pUnoArgs + (2 * nParams));
82 // type descriptions for reconversions
83 typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pUnoArgs + (3 * nParams));
84
85 sal_Int32 nTempIndices = 0;
86
87 for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
88 {
89 const typelib_MethodParameter & rParam = pParams[nPos];
90 typelib_TypeDescription * pParamTypeDescr = 0;
91 TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
92
93 if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr )) // value
94 {
95 pCppArgs[nPos] = pUnoArgs[nPos] = CPPU_CURRENT_NAMESPACE::adjustPointer(pCppStack, pParamTypeDescr);
96 switch (pParamTypeDescr->eTypeClass)
97 {
98 case typelib_TypeClass_HYPER:
99 case typelib_TypeClass_UNSIGNED_HYPER:
100 case typelib_TypeClass_DOUBLE:
101 {
102 if ((reinterpret_cast< long >(pCppStack) & 7) != 0)
103 {
104 static_assert(sizeof (double) == sizeof (sal_Int64), "boo");
105 void * pDest = alloca( sizeof (sal_Int64) );
106 *reinterpret_cast< sal_Int32 * >(pDest) =
107 *reinterpret_cast< sal_Int32 const * >(pCppStack);
108 *(reinterpret_cast< sal_Int32 * >(pDest) + 1) =
109 *(reinterpret_cast< sal_Int32 const * >(pCppStack) + 1);
110 pCppArgs[nPos] = pUnoArgs[nPos] = pDest;
111 }
112 pCppStack += sizeof (sal_Int32); // extra long
113 break;
114 default:
115 break;
116 }
117 }
118 // no longer needed
119 TYPELIB_DANGER_RELEASE( pParamTypeDescr );
120 }
121 else // ptr to complex value | ref
122 {
123 pCppArgs[nPos] = *(void **)pCppStack;
124
125 if (! rParam.bIn) // is pure out
126 {
127 // uno out is unconstructed mem!
128 pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize );
129 pTempIndices[nTempIndices] = nPos;
130 // will be released at reconversion
131 ppTempParamTypeDescr[nTempIndices++] = pParamTypeDescr;
132 }
133 // is in/inout
135 pParamTypeDescr ))
136 {
137 uno_copyAndConvertData( pUnoArgs[nPos] = alloca( pParamTypeDescr->nSize ),
138 *(void **)pCppStack, pParamTypeDescr,
139 pThis->getBridge()->getCpp2Uno() );
140 pTempIndices[nTempIndices] = nPos; // has to be reconverted
141 // will be released at reconversion
142 ppTempParamTypeDescr[nTempIndices++] = pParamTypeDescr;
143 }
144 else // direct way
145 {
146 pUnoArgs[nPos] = *(void **)pCppStack;
147 // no longer needed
148 TYPELIB_DANGER_RELEASE( pParamTypeDescr );
149 }
150 }
151 pCppStack += sizeof(sal_Int32); // standard parameter length
152 }
153
154 // ExceptionHolder
155 uno_Any aUnoExc; // Any will be constructed by callee
156 uno_Any * pUnoExc = &aUnoExc;
157
158 // invoke uno dispatch call
159 (*pThis->getUnoI()->pDispatcher)(pThis->getUnoI(), pMemberTypeDescr, pUnoReturn, pUnoArgs, &pUnoExc );
160
161 // in case an exception occurred...
162 if (pUnoExc)
163 {
164 // destruct temporary in/inout params
165 for ( ; nTempIndices--; )
166 {
167 sal_Int32 nIndex = pTempIndices[nTempIndices];
168
169 if (pParams[nIndex].bIn) // is in/inout => was constructed
170 uno_destructData( pUnoArgs[nIndex], ppTempParamTypeDescr[nTempIndices], 0 );
171 TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndices] );
172 }
173 if (pReturnTypeDescr)
174 TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
176 // has to destruct the any
177 // is here for dummy
178 return typelib_TypeClass_VOID;
179 }
180 else // else no exception occurred...
181 {
182 // temporary params
183 for ( ; nTempIndices--; )
184 {
185 sal_Int32 nIndex = pTempIndices[nTempIndices];
186 typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndices];
187
188 if (pParams[nIndex].bOut) // inout/out
189 {
190 // convert and assign
191 uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
192 uno_copyAndConvertData( pCppArgs[nIndex], pUnoArgs[nIndex], pParamTypeDescr,
193 pThis->getBridge()->getUno2Cpp() );
194 }
195 // destroy temp uno param
196 uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 );
197
198 TYPELIB_DANGER_RELEASE( pParamTypeDescr );
199 }
200 // return
201 if (pCppReturn) // has complex return
202 {
203 if (pUnoReturn != pCppReturn) // needs reconversion
204 {
205 uno_copyAndConvertData( pCppReturn, pUnoReturn, pReturnTypeDescr,
206 pThis->getBridge()->getUno2Cpp() );
207 // destroy temp uno return
208 uno_destructData( pUnoReturn, pReturnTypeDescr, 0 );
209 }
210 // complex return ptr is set to eax
211 *(void **)pRegisterReturn = pCppReturn;
212 }
213 if (pReturnTypeDescr)
214 {
215 typelib_TypeClass eRet = (typelib_TypeClass)pReturnTypeDescr->eTypeClass;
216 TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
217 return eRet;
218 }
219 else
220 return typelib_TypeClass_VOID;
221 }
222}
223
224
225static typelib_TypeClass cpp_mediate(
226 sal_Int32 nFunctionIndex,
227 sal_Int32 nVtableOffset,
228 void ** pCallStack,
229 sal_Int64 * pRegisterReturn /* space for register return */ )
230{
231 static_assert(sizeof(sal_Int32)==sizeof(void *), "### unexpected!");
232
233 // pCallStack: this, params
234 // eventual [ret*] lies at pCallStack -1
235 // so count down pCallStack by one to keep it simple
236 // pCallStack: this, params
237 // eventual [ret*] lies at pCallStack -1
238 // so count down pCallStack by one to keep it simple
241 static_cast< char * >(*pCallStack) - nVtableOffset);
242 if ((nFunctionIndex & 0x80000000) != 0) {
243 nFunctionIndex &= 0x7FFFFFFF;
244 --pCallStack;
245 }
246
247 typelib_InterfaceTypeDescription * pTypeDescr = pCppI->getTypeDescr();
248
249 if (nFunctionIndex >= pTypeDescr->nMapFunctionIndexToMemberIndex)
250 {
251 SAL_WARN(
252 "bridges",
253 "illegal " << OUString::unacquired(&pTypeDescr->aBase.pTypeName)
254 << " vtable index " << nFunctionIndex << "/"
255 << pTypeDescr->nMapFunctionIndexToMemberIndex);
256 throw RuntimeException(
257 ("illegal " + OUString::unacquired(&pTypeDescr->aBase.pTypeName)
258 + " vtable index " + OUString::number(nFunctionIndex) + "/"
259 + OUString::number(pTypeDescr->nMapFunctionIndexToMemberIndex)),
260 (XInterface *)pCppI);
261 }
262
263 // determine called method
264 sal_Int32 nMemberPos = pTypeDescr->pMapFunctionIndexToMemberIndex[nFunctionIndex];
265 assert(nMemberPos < pTypeDescr->nAllMembers);
266
267 TypeDescription aMemberDescr( pTypeDescr->ppAllMembers[nMemberPos] );
268
269#if defined BRIDGES_DEBUG
270 OString cstr( OUStringToOString( aMemberDescr.get()->pTypeName, RTL_TEXTENCODING_ASCII_US ) );
271 fprintf( stderr, "calling %s, nFunctionIndex=%d\n", cstr.getStr(), nFunctionIndex );
272#endif
273
274 typelib_TypeClass eRet;
275 switch (aMemberDescr.get()->eTypeClass)
276 {
277 case typelib_TypeClass_INTERFACE_ATTRIBUTE:
278 {
279 if (pTypeDescr->pMapMemberIndexToFunctionIndex[nMemberPos] == nFunctionIndex)
280 {
281 // is GET method
282 eRet = cpp2uno_call(
283 pCppI, aMemberDescr.get(),
284 ((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef,
285 0, 0, // no params
286 pCallStack, pRegisterReturn );
287 }
288 else
289 {
290 // is SET method
291 typelib_MethodParameter aParam;
292 aParam.pTypeRef =
293 ((typelib_InterfaceAttributeTypeDescription *)aMemberDescr.get())->pAttributeTypeRef;
294 aParam.bIn = sal_True;
295 aParam.bOut = sal_False;
296
297 eRet = cpp2uno_call(
298 pCppI, aMemberDescr.get(),
299 0, // indicates void return
300 1, &aParam,
301 pCallStack, pRegisterReturn );
302 }
303 break;
304 }
305 case typelib_TypeClass_INTERFACE_METHOD:
306 {
307 // is METHOD
308 switch (nFunctionIndex)
309 {
310 case 1: // acquire()
311 pCppI->acquireProxy(); // non virtual call!
312 eRet = typelib_TypeClass_VOID;
313 break;
314 case 2: // release()
315 pCppI->releaseProxy(); // non virtual call!
316 eRet = typelib_TypeClass_VOID;
317 break;
318 case 0: // queryInterface() opt
319 {
320 typelib_TypeDescription * pTD = 0;
321 TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pCallStack[2] )->getTypeLibType() );
322 if (pTD)
323 {
324 XInterface * pInterface = 0;
325 (*pCppI->getBridge()->getCppEnv()->getRegisteredInterface)(
326 pCppI->getBridge()->getCppEnv(),
327 (void **)&pInterface, pCppI->getOid().pData, (typelib_InterfaceTypeDescription *)pTD );
328
329 if (pInterface)
330 {
331 ::uno_any_construct(
332 reinterpret_cast< uno_Any * >( pCallStack[0] ),
333 &pInterface, pTD, cpp_acquire );
334 pInterface->release();
335 TYPELIB_DANGER_RELEASE( pTD );
336 *(void **)pRegisterReturn = pCallStack[0];
337 eRet = typelib_TypeClass_ANY;
338 break;
339 }
340 TYPELIB_DANGER_RELEASE( pTD );
341 }
342 } // else perform queryInterface()
343 default:
344 eRet = cpp2uno_call(
345 pCppI, aMemberDescr.get(),
346 ((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pReturnTypeRef,
347 ((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->nParams,
348 ((typelib_InterfaceMethodTypeDescription *)aMemberDescr.get())->pParams,
349 pCallStack, pRegisterReturn );
350 }
351 break;
352 }
353 default:
354 {
355 throw RuntimeException( "no member description found!", (XInterface *)pCppI );
356 }
357 }
358 return eRet;
359}
360
361
366static void cpp_vtable_call()
367{
368 sal_Int64 nRegReturn;
369 int nFunctionIndex;
370 void** pCallStack;
371 int vTableOffset;
372
373void * pRegReturn = &nRegReturn;
374
375 __asm__( "st %%i0, %0\n\t"
376 "st %%i1, %1\n\t"
377 "st %%i2, %2\n\t"
378 : : "m"(nFunctionIndex), "m"(pCallStack), "m"(vTableOffset) );
379
380// fprintf(stderr,"cpp_mediate nFunctionIndex=%x\n",nFunctionIndex);
381// fflush(stderr);
382
383 const sal_Bool bComplex = (nFunctionIndex & 0x80000000) ? sal_True : sal_False;
384 typelib_TypeClass aType =
385 cpp_mediate( nFunctionIndex, vTableOffset, pCallStack+17, (sal_Int64*)&nRegReturn );
386
387 switch( aType )
388 {
389 case typelib_TypeClass_BOOLEAN:
390 case typelib_TypeClass_BYTE:
391 __asm__( "ld %0, %%l0\n\t"
392 "ldsb [%%l0], %%i0\n"
393 : : "m"(pRegReturn) );
394 break;
395 case typelib_TypeClass_CHAR:
396 case typelib_TypeClass_SHORT:
397 case typelib_TypeClass_UNSIGNED_SHORT:
398 __asm__( "ld %0, %%l0\n\t"
399 "ldsh [%%l0], %%i0\n"
400 : : "m"(pRegReturn) );
401 break;
402 case typelib_TypeClass_HYPER:
403 case typelib_TypeClass_UNSIGNED_HYPER:
404 __asm__( "ld %0, %%l0\n\t"
405 "ld [%%l0], %%i0\n\t"
406 "add %%l0, 4, %%l0\n\t"
407 "ld [%%l0], %%i1\n\t"
408 : : "m"(pRegReturn) );
409
410 break;
411 case typelib_TypeClass_FLOAT:
412 __asm__( "ld %0, %%l0\n\t"
413 "ld [%%l0], %%f0\n"
414 : : "m"(pRegReturn) );
415 break;
416 case typelib_TypeClass_DOUBLE:
417 __asm__( "ld %0, %%l0\n\t"
418 "ldd [%%l0], %%f0\n"
419 : : "m"(pRegReturn) );
420 break;
421 case typelib_TypeClass_VOID:
422 break;
423 default:
424 __asm__( "ld %0, %%l0\n\t"
425 "ld [%%l0], %%i0\n"
426 : : "m"(pRegReturn) );
427 break;
428 }
429
430 if( bComplex )
431 {
432 __asm__( "add %i7, 4, %i7\n\t" );
433 // after call to complex return valued function there is an unimp instruction
434 }
435
436}
437
438
439int const codeSnippetSize = 56;
440unsigned char * codeSnippet(
441 unsigned char * code, sal_Int32 functionIndex, sal_Int32 vtableOffset,
442 bool simpleRetType)
443{
444 sal_uInt32 index = functionIndex;
445 if (!simpleRetType) {
446 index |= 0x80000000;
447 }
448 unsigned int * p = reinterpret_cast< unsigned int * >(code);
449 static_assert(sizeof (unsigned int) == 4, "boo");
450 // st %o0, [%sp+68]:
451 *p++ = 0xD023A044;
452 // st %o1, [%sp+72]:
453 *p++ = 0xD223A048;
454 // st %o2, [%sp+76]:
455 *p++ = 0xD423A04C;
456 // st %o3, [%sp+80]:
457 *p++ = 0xD623A050;
458 // st %o4, [%sp+84]:
459 *p++ = 0xD823A054;
460 // st %o5, [%sp+88]:
461 *p++ = 0xDA23A058;
462 // sethi %hi(index), %o0:
463 *p++ = 0x11000000 | (index >> 10);
464 // or %o0, %lo(index), %o0:
465 *p++ = 0x90122000 | (index & 0x3FF);
466 // sethi %hi(vtableOffset), %o2:
467 *p++ = 0x15000000 | (vtableOffset >> 10);
468 // or %o2, %lo(vtableOffset), %o2:
469 *p++ = 0x9412A000 | (vtableOffset & 0x3FF);
470 // sethi %hi(cpp_vtable_call), %o3:
471 *p++ = 0x17000000 | (reinterpret_cast< unsigned int >(cpp_vtable_call) >> 10);
472 // or %o3, %lo(cpp_vtable_call), %o3:
473 *p++ = 0x9612E000 | (reinterpret_cast< unsigned int >(cpp_vtable_call) & 0x3FF);
474 // jmpl %o3, %g0:
475 *p++ = 0x81C2C000;
476 // mov %sp, %o1:
477 *p++ = 0x9210000E;
478 assert(reinterpret_cast< unsigned char * >(p) - code <= codeSnippetSize);
479 return code + codeSnippetSize;
480}
481
482} //end of namespace
483
485
488{
489 return static_cast< Slot * >(block) + 2;
490}
491
493 sal_Int32 slotCount)
494{
495 return (slotCount + 2) * sizeof (Slot) + slotCount * codeSnippetSize;
496}
497
498namespace {
499// Some dummy type whose RTTI is used in the synthesized proxy vtables to make uses of dynamic_cast
500// on such proxy objects not crash:
501struct ProxyRtti {};
502}
503
506 void * block, sal_Int32 slotCount, sal_Int32,
507 typelib_InterfaceTypeDescription *)
508{
509 Slot * slots = mapBlockToVtable(block);
510 slots[-2].fn = 0; //null
511 slots[-1].fn = &typeid(ProxyRtti);
512 return slots + slotCount;
513}
514
516 Slot ** slots, unsigned char * code, sal_PtrDiff writetoexecdiff,
517 typelib_InterfaceTypeDescription const * type, sal_Int32 functionOffset,
518 sal_Int32 functionCount, sal_Int32 vTableOffset)
519{
520 (*slots) -= functionCount;
521 Slot * s = *slots;
522 for (sal_Int32 i = 0; i < type->nMembers; ++i) {
523 typelib_TypeDescription * member = 0;
524 TYPELIB_DANGER_GET(&member, type->ppMembers[i]);
525 assert(member != 0);
526 switch (member->eTypeClass) {
527 case typelib_TypeClass_INTERFACE_ATTRIBUTE:
528 // Getter:
529 (s++)->fn = code + writetoexecdiff;
531 code, functionOffset++, vTableOffset,
533 reinterpret_cast<
534 typelib_InterfaceAttributeTypeDescription * >(
535 member)->pAttributeTypeRef));
536 // Setter:
537 if (!reinterpret_cast<
538 typelib_InterfaceAttributeTypeDescription * >(
539 member)->bReadOnly)
540 {
541 (s++)->fn = code + writetoexecdiff;
542 code = codeSnippet(code, functionOffset++, vTableOffset, true);
543 }
544 break;
545
546 case typelib_TypeClass_INTERFACE_METHOD:
547 (s++)->fn = code + writetoexecdiff;
549 code, functionOffset++, vTableOffset,
551 reinterpret_cast<
552 typelib_InterfaceMethodTypeDescription * >(
553 member)->pReturnTypeRef));
554 break;
555
556 default:
557 assert(false);
558 break;
559 }
560 TYPELIB_DANGER_RELEASE(member);
561 }
562 return code;
563}
564
565// use flush code from cc50_solaris_sparc
566
567extern "C" void doFlushCode(unsigned long address, unsigned long count);
568
570 unsigned char const * begin, unsigned char const * end)
571{
572 unsigned long n = end - begin;
573 if (n != 0) {
574 unsigned long adr = reinterpret_cast< unsigned long >(begin);
575 unsigned long off = adr & 7;
576 doFlushCode(adr - off, (n + off + 7) >> 3);
577 }
578}
579
580/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
uno_Mapping * getUno2Cpp()
Definition: bridge.hxx:73
uno_ExtEnvironment * getCppEnv()
Definition: bridge.hxx:69
uno_Mapping * getCpp2Uno()
Definition: bridge.hxx:72
A cpp proxy wrapping a uno interface.
static CppInterfaceProxy * castInterfaceToProxy(void *pInterface)
typelib_InterfaceTypeDescription * getTypeDescr()
static Slot * mapBlockToVtable(void *block)
Given a pointer to a block, turn it into a vtable pointer.
static void flushCode(unsigned char const *begin, unsigned char const *end)
Flush all the generated code snippets of a vtable, on platforms that require it.
static unsigned char * addLocalFunctions(Slot **slots, unsigned char *code, sal_PtrDiff writetoexecdiff, typelib_InterfaceTypeDescription const *type, sal_Int32 functionOffset, sal_Int32 functionCount, sal_Int32 vtableOffset)
Fill the vtable slots corresponding to all local (i.e., not inherited) functions of a given interface...
static Slot * initializeBlock(void *block, sal_Int32 slotCount, sal_Int32 vtableNumber, typelib_InterfaceTypeDescription *type)
Initialize a raw vtable block.
static std::size_t getBlockSize(sal_Int32 slotCount)
Calculate the size of a raw vtable block.
void SAL_CALL uno_destructData(void *pValue, typelib_TypeDescription *pTypeDescr, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
void SAL_CALL uno_copyAndConvertData(void *pDest, void *pSource, typelib_TypeDescription *pTypeDescr, uno_Mapping *mapping) SAL_THROW_EXTERN_C()
void cpp_vtable_call(sal_Int32 func, sal_Int32 offset, void **pStack)
is called on incoming vtable calls (called by asm snippets)
register sal_uInt32 r28 __asm__("%r28")
void doFlushCode(unsigned long address, unsigned long count)
const int codeSnippetSize
static unsigned char * codeSnippet(unsigned char *code, sal_Int32 nFunctionIndex, sal_Int32 nVtableOffset, bool bHasHiddenParam)
static int cpp2uno_call(bridges::cpp_uno::shared::CppInterfaceProxy *pThis, const typelib_TypeDescription *pMemberTypeDescr, typelib_TypeDescriptionReference *pReturnTypeRef, sal_Int32 nParams, typelib_MethodParameter *pParams, void **gpreg, void **fpreg, void **ovrflw, sal_uInt64 *pRegisterReturn)
sal_Int32 nIndex
void * p
sal_Int64 n
sal_uInt16 nPos
#define SAL_WARN(area, stream)
struct _typelib_TypeDescription typelib_TypeDescription
Definition: msvc/except.hxx:53
struct _uno_Any uno_Any
Definition: msvc/except.hxx:32
typelib_TypeClass __cdecl cpp_mediate(void **pCallStack, const sal_Int32 nFunctionIndex, const sal_Int32 nVtableOffset, sal_Int64 *const pRegisterReturn)
char * adjustPointer(char *pIn, typelib_TypeDescription *pType)
void raiseException(uno_Any *pUnoExc, uno_Mapping *pUno2Cpp)
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
index
enumrange< T >::Iterator begin(enumrange< T >)
end
OString OUStringToOString(std::u16string_view str, ConnectionSettings const *settings)
sal_Unicode code
const wchar_t *typedef int(__stdcall *DllNativeUnregProc)(int
#define sal_True
#define sal_False
unsigned char sal_Bool
ResultType type