1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
30 void SAL_CALL
uno_type_any_assign(
31 uno_Any
* pDest
, void * pSource
,
32 typelib_TypeDescriptionReference
* pType
,
33 uno_AcquireFunc acquire
, uno_ReleaseFunc release
)
36 _destructAny( pDest
, release
);
39 _copyConstructAny( pDest
, pSource
, pType
, 0, acquire
, 0 );
43 CONSTRUCT_EMPTY_ANY( pDest
);
47 void SAL_CALL
uno_any_assign(
48 uno_Any
* pDest
, void * pSource
,
49 typelib_TypeDescription
* pTypeDescr
,
50 uno_AcquireFunc acquire
, uno_ReleaseFunc release
)
53 _destructAny( pDest
, release
);
56 _copyConstructAny( pDest
, pSource
, pTypeDescr
->pWeakRef
, pTypeDescr
, acquire
, 0 );
60 CONSTRUCT_EMPTY_ANY( pDest
);
64 void SAL_CALL
uno_type_any_construct(
65 uno_Any
* pDest
, void * pSource
,
66 typelib_TypeDescriptionReference
* pType
,
67 uno_AcquireFunc acquire
)
72 _copyConstructAny( pDest
, pSource
, pType
, 0, acquire
, 0 );
76 CONSTRUCT_EMPTY_ANY( pDest
);
80 void SAL_CALL
uno_any_construct(
81 uno_Any
* pDest
, void * pSource
,
82 typelib_TypeDescription
* pTypeDescr
,
83 uno_AcquireFunc acquire
)
88 _copyConstructAny( pDest
, pSource
, pTypeDescr
->pWeakRef
, pTypeDescr
, acquire
, 0 );
92 CONSTRUCT_EMPTY_ANY( pDest
);
96 void SAL_CALL
uno_type_any_constructAndConvert(
97 uno_Any
* pDest
, void * pSource
,
98 typelib_TypeDescriptionReference
* pType
,
99 uno_Mapping
* mapping
)
104 _copyConstructAny( pDest
, pSource
, pType
, 0, 0, mapping
);
108 CONSTRUCT_EMPTY_ANY( pDest
);
112 void SAL_CALL
uno_any_constructAndConvert(
113 uno_Any
* pDest
, void * pSource
,
114 typelib_TypeDescription
* pTypeDescr
,
115 uno_Mapping
* mapping
)
120 _copyConstructAny( pDest
, pSource
, pTypeDescr
->pWeakRef
, pTypeDescr
, 0, mapping
);
124 CONSTRUCT_EMPTY_ANY( pDest
);
128 void SAL_CALL
uno_any_destruct( uno_Any
* pValue
, uno_ReleaseFunc release
)
131 _destructAny( pValue
, release
);
134 void SAL_CALL
uno_any_clear( uno_Any
* pValue
, uno_ReleaseFunc release
)
137 _destructAny( pValue
, release
);
138 CONSTRUCT_EMPTY_ANY( pValue
);
142 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */