LibreOffice
LibreOffice 7.4 SDK C/C++ API Reference
sequence2.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_SEQUENCE2_H
24 #define INCLUDED_UNO_SEQUENCE2_H
25 
26 #include "cppu/cppudllapi.h"
27 #include "uno/data.h"
28 
29 #ifdef __cplusplus
30 extern "C"
31 {
32 #endif
33 
37 
47  uno_Sequence ** ppDest,
48  uno_Sequence * pSource,
49  struct _typelib_TypeDescription * pTypeDescr,
50  uno_ReleaseFunc release )
61  uno_Sequence ** ppDest,
62  uno_Sequence * pSource,
63  struct _typelib_TypeDescriptionReference * pType,
64  uno_ReleaseFunc release )
66 
80  uno_Sequence ** ppSequence,
81  struct _typelib_TypeDescription * pTypeDescr,
82  void * pElements, sal_Int32 len,
83  uno_AcquireFunc acquire )
97  uno_Sequence ** ppSequence,
98  struct _typelib_TypeDescriptionReference * pType,
99  void * pElements, sal_Int32 len,
100  uno_AcquireFunc acquire )
102 
116  uno_Sequence ** ppSequence,
117  struct _typelib_TypeDescription * pTypeDescr,
118  uno_AcquireFunc acquire,
119  uno_ReleaseFunc release )
134  uno_Sequence ** ppSequence,
135  struct _typelib_TypeDescriptionReference * pType,
136  uno_AcquireFunc acquire,
137  uno_ReleaseFunc release )
139 
153  uno_Sequence ** ppSequence,
154  struct _typelib_TypeDescription * pTypeDescr,
155  sal_Int32 nSize,
156  uno_AcquireFunc acquire,
157  uno_ReleaseFunc release )
172  uno_Sequence ** ppSequence,
173  struct _typelib_TypeDescriptionReference * pType,
174  sal_Int32 nSize,
175  uno_AcquireFunc acquire,
176  uno_ReleaseFunc release )
178 
189  uno_Sequence * sequence, struct _typelib_TypeDescriptionReference * type,
190  uno_ReleaseFunc release)
192 
193 #ifdef __cplusplus
194 }
195 #endif
196 
197 #endif
198 
199 /* 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
void(* uno_AcquireFunc)(void *pInterface)
Generic function pointer declaration to acquire an interface.
Definition: data.h:50
void(* uno_ReleaseFunc)(void *pInterface)
Generic function pointer declaration to release an interface.
Definition: data.h:56
CPPU_DLLPUBLIC sal_Bool uno_type_sequence_realloc(uno_Sequence **ppSequence, struct _typelib_TypeDescriptionReference *pType, sal_Int32 nSize, uno_AcquireFunc acquire, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Reallocates length of a sequence.
sal_Sequence uno_Sequence
Definition: sequence2.h:35
CPPU_DLLPUBLIC sal_Bool uno_sequence_construct(uno_Sequence **ppSequence, struct _typelib_TypeDescription *pTypeDescr, void *pElements, sal_Int32 len, uno_AcquireFunc acquire) SAL_THROW_EXTERN_C()
Constructs a new sequence with given elements.
CPPU_DLLPUBLIC sal_Bool uno_type_sequence_reference2One(uno_Sequence **ppSequence, struct _typelib_TypeDescriptionReference *pType, uno_AcquireFunc acquire, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Assures that the reference count of the given sequence is one.
CPPU_DLLPUBLIC sal_Bool uno_sequence_reference2One(uno_Sequence **ppSequence, struct _typelib_TypeDescription *pTypeDescr, uno_AcquireFunc acquire, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Assures that the reference count of the given sequence is one.
CPPU_DLLPUBLIC void uno_type_sequence_destroy(uno_Sequence *sequence, struct _typelib_TypeDescriptionReference *type, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Destroy a sequence whose reference count has dropped to zero.
CPPU_DLLPUBLIC void uno_sequence_assign(uno_Sequence **ppDest, uno_Sequence *pSource, struct _typelib_TypeDescription *pTypeDescr, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Assigns a sequence.
CPPU_DLLPUBLIC sal_Bool uno_type_sequence_construct(uno_Sequence **ppSequence, struct _typelib_TypeDescriptionReference *pType, void *pElements, sal_Int32 len, uno_AcquireFunc acquire) SAL_THROW_EXTERN_C()
Constructs a new sequence with given elements.
CPPU_DLLPUBLIC sal_Bool uno_sequence_realloc(uno_Sequence **ppSequence, struct _typelib_TypeDescription *pTypeDescr, sal_Int32 nSize, uno_AcquireFunc acquire, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Reallocates length of a sequence.
CPPU_DLLPUBLIC void uno_type_sequence_assign(uno_Sequence **ppDest, uno_Sequence *pSource, struct _typelib_TypeDescriptionReference *pType, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Assigns a sequence.
#define CPPU_DLLPUBLIC
Definition: cppudllapi.h:13
This is the binary specification of a SAL sequence.
Definition: types.h:304
Holds a weak reference to a type description.
Definition: typedescription.h:45
Full type description of a type.
Definition: typedescription.h:76
sal_Int32 nSize
size of type
Definition: typedescription.h:109