LibreOffice: uno/sequence2.h Source File

LibreOffice LibreOffice 7.0 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 #ifndef INCLUDED_UNO_SEQUENCE2_H
20 #define INCLUDED_UNO_SEQUENCE2_H
21
22 #include "cppu/cppudllapi.h"
23 #include "uno/data.h"
24
25 #ifdef __cplusplus
26 extern "C"
27 {
28 #endif
29
30 struct _typelib_TypeDescriptionReference;
31 struct _typelib_TypeDescription;
32 typedef sal_Sequence uno_Sequence;
33
42 CPPU_DLLPUBLIC void SAL_CALL uno_sequence_assign(
43 uno_Sequence ** ppDest,
44 uno_Sequence * pSource,
45 struct _typelib_TypeDescription * pTypeDescr,
46 uno_ReleaseFunc release )
47 SAL_THROW_EXTERN_C();
56 CPPU_DLLPUBLIC void SAL_CALL uno_type_sequence_assign(
57 uno_Sequence ** ppDest,
58 uno_Sequence * pSource,
59 struct _typelib_TypeDescriptionReference * pType,
60 uno_ReleaseFunc release )
61 SAL_THROW_EXTERN_C();
62
75 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_sequence_construct(
76 uno_Sequence ** ppSequence,
77 struct _typelib_TypeDescription * pTypeDescr,
78 void * pElements, sal_Int32 len,
79 uno_AcquireFunc acquire )
80 SAL_THROW_EXTERN_C();
92 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_type_sequence_construct(
93 uno_Sequence ** ppSequence,
94 struct _typelib_TypeDescriptionReference * pType,
95 void * pElements, sal_Int32 len,
96 uno_AcquireFunc acquire )
97 SAL_THROW_EXTERN_C();
98
111 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_sequence_reference2One(
112 uno_Sequence ** ppSequence,
113 struct _typelib_TypeDescription * pTypeDescr,
114 uno_AcquireFunc acquire,
115 uno_ReleaseFunc release )
116 SAL_THROW_EXTERN_C();
129 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_type_sequence_reference2One(
130 uno_Sequence ** ppSequence,
131 struct _typelib_TypeDescriptionReference * pType,
132 uno_AcquireFunc acquire,
133 uno_ReleaseFunc release )
134 SAL_THROW_EXTERN_C();
135
148 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_sequence_realloc(
149 uno_Sequence ** ppSequence,
150 struct _typelib_TypeDescription * pTypeDescr,
151 sal_Int32 nSize,
152 uno_AcquireFunc acquire,
153 uno_ReleaseFunc release )
154 SAL_THROW_EXTERN_C();
167 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_type_sequence_realloc(
168 uno_Sequence ** ppSequence,
169 struct _typelib_TypeDescriptionReference * pType,
170 sal_Int32 nSize,
171 uno_AcquireFunc acquire,
172 uno_ReleaseFunc release )
173 SAL_THROW_EXTERN_C();
174
184 CPPU_DLLPUBLIC void SAL_CALL uno_type_sequence_destroy(
185 uno_Sequence * sequence, struct _typelib_TypeDescriptionReference * type,
186 uno_ReleaseFunc release)
187 SAL_THROW_EXTERN_C();
188
189 #ifdef __cplusplus
190 }
191 #endif
192
193 #endif
194
195 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
CPPU_DLLPUBLIC
#define CPPU_DLLPUBLIC
Definition: cppudllapi.h:10
uno_sequence_assign
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.
uno_type_sequence_realloc
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.
uno_type_sequence_destroy
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.
uno_sequence_realloc
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.
sal_Bool
unsigned char sal_Bool
Definition: types.h:34
cppudllapi.h
_typelib_TypeDescription
Full type description of a type.
Definition: typedescription.h:72
uno_type_sequence_reference2One
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.
uno_sequence_reference2One
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.
_typelib_TypeDescriptionReference
Holds a weak reference to a type description.
Definition: typedescription.h:41
uno_type_sequence_assign
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.
uno_ReleaseFunc
void(* uno_ReleaseFunc)(void *pInterface)
Generic function pointer declaration to release an interface.
Definition: data.h:52
_sal_Sequence
This is the binary specification of a SAL sequence.
Definition: types.h:318
data.h
uno_sequence_construct
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.
uno_Sequence
sal_Sequence uno_Sequence
Definition: sequence2.h:31
uno_AcquireFunc
void(* uno_AcquireFunc)(void *pInterface)
Generic function pointer declaration to acquire an interface.
Definition: data.h:46
SAL_THROW_EXTERN_C
#define SAL_THROW_EXTERN_C()
Nothrow specification for C functions.
Definition: types.h:342
uno_type_sequence_construct
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.
_typelib_TypeDescription::nSize
sal_Int32 nSize
size of type
Definition: typedescription.h:105