LibreOffice: uno/sequence2.h Source File

LibreOffice LibreOffice 25.8 SDK C/C++ API Reference

Loading...
Searching...
No Matches
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
30extern "C"
31{
32#endif
33
34struct _typelib_TypeDescriptionReference;
35struct _typelib_TypeDescription;
36 typedef sal_Sequence uno_Sequence;
37
46 CPPU_DLLPUBLIC void SAL_CALL uno_sequence_assign(
47 uno_Sequence ** ppDest,
48 uno_Sequence * pSource,
49 struct _typelib_TypeDescription * pTypeDescr,
50 uno_ReleaseFunc release )
51 SAL_THROW_EXTERN_C();
60 CPPU_DLLPUBLIC void SAL_CALL uno_type_sequence_assign(
61 uno_Sequence ** ppDest,
62 uno_Sequence * pSource,
63 struct _typelib_TypeDescriptionReference * pType,
64 uno_ReleaseFunc release )
65 SAL_THROW_EXTERN_C();
66
79 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_sequence_construct(
80 uno_Sequence ** ppSequence,
81 struct _typelib_TypeDescription * pTypeDescr,
82 void * pElements, sal_Int32 len,
83 uno_AcquireFunc acquire )
84 SAL_THROW_EXTERN_C();
96 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_type_sequence_construct(
97 uno_Sequence ** ppSequence,
98 struct _typelib_TypeDescriptionReference * pType,
99 void * pElements, sal_Int32 len,
100 uno_AcquireFunc acquire )
101 SAL_THROW_EXTERN_C();
102
115 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_sequence_reference2One(
116 uno_Sequence ** ppSequence,
117 struct _typelib_TypeDescription * pTypeDescr,
118 uno_AcquireFunc acquire,
119 uno_ReleaseFunc release )
120 SAL_THROW_EXTERN_C();
133 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_type_sequence_reference2One(
134 uno_Sequence ** ppSequence,
135 struct _typelib_TypeDescriptionReference * pType,
136 uno_AcquireFunc acquire,
137 uno_ReleaseFunc release )
138 SAL_THROW_EXTERN_C();
139
152 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_sequence_realloc(
153 uno_Sequence ** ppSequence,
154 struct _typelib_TypeDescription * pTypeDescr,
155 sal_Int32 nSize,
156 uno_AcquireFunc acquire,
157 uno_ReleaseFunc release )
158 SAL_THROW_EXTERN_C();
171 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_type_sequence_realloc(
172 uno_Sequence ** ppSequence,
173 struct _typelib_TypeDescriptionReference * pType,
174 sal_Int32 nSize,
175 uno_AcquireFunc acquire,
176 uno_ReleaseFunc release )
177 SAL_THROW_EXTERN_C();
178
188 CPPU_DLLPUBLIC void SAL_CALL uno_type_sequence_destroy(
189 uno_Sequence * sequence, struct _typelib_TypeDescriptionReference * type,
190 uno_ReleaseFunc release)
191 SAL_THROW_EXTERN_C();
192
193#ifdef __cplusplus
194}
195#endif
196
197#endif
198
199/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_Sequence
struct _sal_Sequence sal_Sequence
This is the binary specification of a SAL sequence.
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
data.h
uno_ReleaseFunc
void(* uno_ReleaseFunc)(void *pInterface)
Generic function pointer declaration to release an interface.
Definition data.h:56
uno_AcquireFunc
void(* uno_AcquireFunc)(void *pInterface)
Generic function pointer declaration to acquire an interface.
Definition data.h:50
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_Sequence
sal_Sequence uno_Sequence
Definition sequence2.h:36
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_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.
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_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_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.
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.
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.
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_TypeDescription::nSize
sal_Int32 nSize
size of type
Definition typedescription.h:109