Difference between revisions of "Uno/Binary/Spec/Identity Mapping"
From Apache OpenOffice Wiki
m (Updated.) |
FlvConverter (Talk | contribs) (→Rationale) |
||
Line 5: | Line 5: | ||
==Rationale== | ==Rationale== | ||
Generic functions, e.g. as in cppuhelper/bootstrap.cxx, currently need to care about the identity of environments, this is cumbersome and leads to duplicate code. | Generic functions, e.g. as in cppuhelper/bootstrap.cxx, currently need to care about the identity of environments, this is cumbersome and leads to duplicate code. | ||
+ | [http://www.flv-converter.com FLV converter] | ||
+ | [http://www.macdvdripper.com Mac DVD Ripper] | ||
==API== | ==API== |
Revision as of 05:27, 5 June 2007
State: final Type: Specification
The Binary Uno runtime currently returns no mapping, in case of a identity request "A"
-> "A"
. The Uno runtime should return an indentity-mapping in case of an identity request.
Rationale
Generic functions, e.g. as in cppuhelper/bootstrap.cxx, currently need to care about the identity of environments, this is cumbersome and leads to duplicate code. FLV converter Mac DVD Ripper
API
The Uno runtime function
void SAL_CALL uno_getMapping(uno_Mapping ** ppMapping, uno_Environment * pFrom, uno_Environment * pTo, rtl_uString * pAddPurpose) SAL_THROW_EXTERN_C();
returns an identity-mapping, in case pFrom == pTo, instead of NULL.