LibreOffice
LibreOffice 24.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
36struct _uno_Mapping;
37
44typedef void * (SAL_CALL * uno_QueryInterfaceFunc)(
45 void * pInterface, struct _typelib_TypeDescriptionReference * pType );
50typedef void (SAL_CALL * uno_AcquireFunc)(
51 void * pInterface );
56typedef void (SAL_CALL * uno_ReleaseFunc)(
57 void * pInterface );
58
71 void * pVal1, struct _typelib_TypeDescription * pVal1TypeDescr,
72 void * pVal2, struct _typelib_TypeDescription * pVal2TypeDescr,
87 void * pVal1, struct _typelib_TypeDescriptionReference * pVal1Type,
88 void * pVal2, struct _typelib_TypeDescriptionReference * pVal2Type,
91
102 void * pDest, void * pSource,
115 void * pDest, void * pSource,
118
128 void * pDest, void * pSource,
129 struct _typelib_TypeDescription * pTypeDescr, struct _uno_Mapping * mapping )
140 void * pDest, void * pSource,
141 struct _typelib_TypeDescriptionReference * pType, struct _uno_Mapping * mapping )
143
152 void * pValue, struct _typelib_TypeDescription * pTypeDescr, uno_ReleaseFunc release )
162 void * pValue, struct _typelib_TypeDescriptionReference * pType, uno_ReleaseFunc release )
164
171 void * pMem, struct _typelib_TypeDescription * pTypeDescr )
179 void * pMem, struct _typelib_TypeDescriptionReference * pType )
181
201 void * pDest, struct _typelib_TypeDescription * pDestTypeDescr,
202 void * pSource, struct _typelib_TypeDescription * pSourceTypeDescr,
224 void * pDest, struct _typelib_TypeDescriptionReference * pDestType,
225 void * pSource, struct _typelib_TypeDescriptionReference * pSourceType,
228
244 struct _typelib_TypeDescriptionReference * pAssignable,
245 void * pFrom, struct _typelib_TypeDescriptionReference * pFromType,
248
249#ifdef __cplusplus
250}
251#endif
252
253#endif
254
255/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
unsigned char sal_Bool
Definition types.h:38
#define SAL_THROW_EXTERN_C()
Nothrow specification for C functions.
Definition types.h:334
CPPU_DLLPUBLIC void uno_type_constructData(void *pMem, struct _typelib_TypeDescriptionReference *pType) SAL_THROW_EXTERN_C()
Default constructs a value.
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.
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!
void(* uno_ReleaseFunc)(void *pInterface)
Generic function pointer declaration to release an interface.
Definition data.h:56
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.
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.
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.
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!
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.
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.
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.
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.
CPPU_DLLPUBLIC void uno_constructData(void *pMem, struct _typelib_TypeDescription *pTypeDescr) SAL_THROW_EXTERN_C()
Default constructs a value.
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.
void *(* uno_QueryInterfaceFunc)(void *pInterface, struct _typelib_TypeDescriptionReference *pType)
Generic function pointer declaration to query for an interface.
Definition data.h:44
void(* uno_AcquireFunc)(void *pInterface)
Generic function pointer declaration to acquire an interface.
Definition data.h:50
#define CPPU_DLLPUBLIC
Definition cppudllapi.h:13
Holds a weak reference to a type description.
Definition typedescription.h:45
Full type description of a type.
Definition typedescription.h:76
Type description of an interface.
Definition typedescription.h:375
This is the binary specification of a mapping.
Definition mapping.h:69
uno_ReleaseMappingFunc release
Releases mapping.
Definition mapping.h:76
uno_AcquireMappingFunc acquire
Acquires mapping.
Definition mapping.h:72