LibreOffice: uno/data.h Source File

LibreOffice LibreOffice 26.2 SDK C/C++ API Reference

Loading...
Searching...
No Matches
data.h
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/*
21 * This file is part of LibreOffice published API.
22 */
23#ifndef INCLUDED_UNO_DATA_H
24#define INCLUDED_UNO_DATA_H
25
26#include "cppu/cppudllapi.h"
27
28#ifdef __cplusplus
29extern "C"
30{
31#endif
32
33struct _typelib_TypeDescriptionReference;
34struct _typelib_TypeDescription;
35struct _typelib_InterfaceTypeDescription;
36struct _uno_Mapping;
37
44 typedef void * (SAL_CALL * uno_QueryInterfaceFunc)(
45 void * pInterface, struct _typelib_TypeDescriptionReference * pType );
50 typedef void (SAL_CALL * uno_AcquireFunc)(
51 void * pInterface );
56 typedef void (SAL_CALL * uno_ReleaseFunc)(
57 void * pInterface );
58
70 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_equalData(
71 void * pVal1, struct _typelib_TypeDescription * pVal1TypeDescr,
72 void * pVal2, struct _typelib_TypeDescription * pVal2TypeDescr,
73 uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
74 SAL_THROW_EXTERN_C();
86 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_type_equalData(
87 void * pVal1, struct _typelib_TypeDescriptionReference * pVal1Type,
88 void * pVal2, struct _typelib_TypeDescriptionReference * pVal2Type,
89 uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
90 SAL_THROW_EXTERN_C();
91
101 CPPU_DLLPUBLIC void SAL_CALL uno_copyData(
102 void * pDest, void * pSource,
103 struct _typelib_TypeDescription * pTypeDescr, uno_AcquireFunc acquire )
104 SAL_THROW_EXTERN_C();
114 CPPU_DLLPUBLIC void SAL_CALL uno_type_copyData(
115 void * pDest, void * pSource,
116 struct _typelib_TypeDescriptionReference * pType, uno_AcquireFunc acquire )
117 SAL_THROW_EXTERN_C();
118
127 CPPU_DLLPUBLIC void SAL_CALL uno_copyAndConvertData(
128 void * pDest, void * pSource,
129 struct _typelib_TypeDescription * pTypeDescr, struct _uno_Mapping * mapping )
130 SAL_THROW_EXTERN_C();
139 CPPU_DLLPUBLIC void SAL_CALL uno_type_copyAndConvertData(
140 void * pDest, void * pSource,
141 struct _typelib_TypeDescriptionReference * pType, struct _uno_Mapping * mapping )
142 SAL_THROW_EXTERN_C();
143
151 CPPU_DLLPUBLIC void SAL_CALL uno_destructData(
152 void * pValue, struct _typelib_TypeDescription * pTypeDescr, uno_ReleaseFunc release )
153 SAL_THROW_EXTERN_C();
161 CPPU_DLLPUBLIC void SAL_CALL uno_type_destructData(
162 void * pValue, struct _typelib_TypeDescriptionReference * pType, uno_ReleaseFunc release )
163 SAL_THROW_EXTERN_C();
164
170 CPPU_DLLPUBLIC void SAL_CALL uno_constructData(
171 void * pMem, struct _typelib_TypeDescription * pTypeDescr )
172 SAL_THROW_EXTERN_C();
178 CPPU_DLLPUBLIC void SAL_CALL uno_type_constructData(
179 void * pMem, struct _typelib_TypeDescriptionReference * pType )
180 SAL_THROW_EXTERN_C();
181
200 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_assignData(
201 void * pDest, struct _typelib_TypeDescription * pDestTypeDescr,
202 void * pSource, struct _typelib_TypeDescription * pSourceTypeDescr,
203 uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release )
204 SAL_THROW_EXTERN_C();
223 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_type_assignData(
224 void * pDest, struct _typelib_TypeDescriptionReference * pDestType,
225 void * pSource, struct _typelib_TypeDescriptionReference * pSourceType,
226 uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release )
227 SAL_THROW_EXTERN_C();
228
243 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_type_isAssignableFromData(
244 struct _typelib_TypeDescriptionReference * pAssignable,
245 void * pFrom, struct _typelib_TypeDescriptionReference * pFromType,
246 uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
247 SAL_THROW_EXTERN_C();
248
249#ifdef __cplusplus
250}
251#endif
252
253#endif
254
255/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_Bool
unsigned char sal_Bool
Definition types.h:38
SAL_THROW_EXTERN_C
#define SAL_THROW_EXTERN_C()
Nothrow specification for C functions.
Definition types.h:352
uno_type_constructData
CPPU_DLLPUBLIC void uno_type_constructData(void *pMem, struct _typelib_TypeDescriptionReference *pType) SAL_THROW_EXTERN_C()
Default constructs a value.
uno_copyData
CPPU_DLLPUBLIC void uno_copyData(void *pDest, void *pSource, struct _typelib_TypeDescription *pTypeDescr, uno_AcquireFunc acquire) SAL_THROW_EXTERN_C()
Copy construct memory with given value.
uno_type_destructData
CPPU_DLLPUBLIC void uno_type_destructData(void *pValue, struct _typelib_TypeDescriptionReference *pType, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Destructs a given value; does NOT free its memory!
uno_ReleaseFunc
void(* uno_ReleaseFunc)(void *pInterface)
Generic function pointer declaration to release an interface.
Definition data.h:56
uno_type_isAssignableFromData
CPPU_DLLPUBLIC sal_Bool uno_type_isAssignableFromData(struct _typelib_TypeDescriptionReference *pAssignable, void *pFrom, struct _typelib_TypeDescriptionReference *pFromType, uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Tests whether a value of given type is assignable from given value.
uno_type_equalData
CPPU_DLLPUBLIC sal_Bool uno_type_equalData(void *pVal1, struct _typelib_TypeDescriptionReference *pVal1Type, void *pVal2, struct _typelib_TypeDescriptionReference *pVal2Type, uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Tests if two values are equal.
uno_type_copyAndConvertData
CPPU_DLLPUBLIC void uno_type_copyAndConvertData(void *pDest, void *pSource, struct _typelib_TypeDescriptionReference *pType, struct _uno_Mapping *mapping) SAL_THROW_EXTERN_C()
Copy construct memory with given value.
uno_destructData
CPPU_DLLPUBLIC void uno_destructData(void *pValue, struct _typelib_TypeDescription *pTypeDescr, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Destructs a given value; does NOT free its memory!
uno_copyAndConvertData
CPPU_DLLPUBLIC void uno_copyAndConvertData(void *pDest, void *pSource, struct _typelib_TypeDescription *pTypeDescr, struct _uno_Mapping *mapping) SAL_THROW_EXTERN_C()
Copy construct memory with given value.
uno_type_copyData
CPPU_DLLPUBLIC void uno_type_copyData(void *pDest, void *pSource, struct _typelib_TypeDescriptionReference *pType, uno_AcquireFunc acquire) SAL_THROW_EXTERN_C()
Copy construct memory with given value.
uno_type_assignData
CPPU_DLLPUBLIC sal_Bool uno_type_assignData(void *pDest, struct _typelib_TypeDescriptionReference *pDestType, void *pSource, struct _typelib_TypeDescriptionReference *pSourceType, uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Assigns a destination value with a source value.
uno_equalData
CPPU_DLLPUBLIC sal_Bool uno_equalData(void *pVal1, struct _typelib_TypeDescription *pVal1TypeDescr, void *pVal2, struct _typelib_TypeDescription *pVal2TypeDescr, uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Tests if two values are equal.
uno_constructData
CPPU_DLLPUBLIC void uno_constructData(void *pMem, struct _typelib_TypeDescription *pTypeDescr) SAL_THROW_EXTERN_C()
Default constructs a value.
uno_assignData
CPPU_DLLPUBLIC sal_Bool uno_assignData(void *pDest, struct _typelib_TypeDescription *pDestTypeDescr, void *pSource, struct _typelib_TypeDescription *pSourceTypeDescr, uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Assigns a destination value with a source value.
uno_QueryInterfaceFunc
void *(* uno_QueryInterfaceFunc)(void *pInterface, struct _typelib_TypeDescriptionReference *pType)
Generic function pointer declaration to query for an interface.
Definition data.h:44
uno_AcquireFunc
void(* uno_AcquireFunc)(void *pInterface)
Generic function pointer declaration to acquire an interface.
Definition data.h:50
cppudllapi.h
CPPU_DLLPUBLIC
#define CPPU_DLLPUBLIC
Definition cppudllapi.h:13
_typelib_TypeDescriptionReference
Holds a weak reference to a type description.
Definition typedescription.h:45
_typelib_TypeDescription
Full type description of a type.
Definition typedescription.h:76
_typelib_InterfaceTypeDescription
Type description of an interface.
Definition typedescription.h:375
_uno_Mapping
This is the binary specification of a mapping.
Definition mapping.h:69
_uno_Mapping::release
uno_ReleaseMappingFunc release
Releases mapping.
Definition mapping.h:76
_uno_Mapping::acquire
uno_AcquireMappingFunc acquire
Acquires mapping.
Definition mapping.h:72