LibreOffice
LibreOffice 5.3 SDK C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
33 
43  uno_Sequence ** ppDest,
44  uno_Sequence * pSource,
45  struct _typelib_TypeDescription * pTypeDescr,
46  uno_ReleaseFunc release )
57  uno_Sequence ** ppDest,
58  uno_Sequence * pSource,
59  struct _typelib_TypeDescriptionReference * pType,
60  uno_ReleaseFunc release )
62 
76  uno_Sequence ** ppSequence,
77  struct _typelib_TypeDescription * pTypeDescr,
78  void * pElements, sal_Int32 len,
79  uno_AcquireFunc acquire )
93  uno_Sequence ** ppSequence,
94  struct _typelib_TypeDescriptionReference * pType,
95  void * pElements, sal_Int32 len,
96  uno_AcquireFunc acquire )
98 
112  uno_Sequence ** ppSequence,
113  struct _typelib_TypeDescription * pTypeDescr,
114  uno_AcquireFunc acquire,
115  uno_ReleaseFunc release )
130  uno_Sequence ** ppSequence,
131  struct _typelib_TypeDescriptionReference * pType,
132  uno_AcquireFunc acquire,
133  uno_ReleaseFunc release )
135 
149  uno_Sequence ** ppSequence,
150  struct _typelib_TypeDescription * pTypeDescr,
151  sal_Int32 nSize,
152  uno_AcquireFunc acquire,
153  uno_ReleaseFunc release )
168  uno_Sequence ** ppSequence,
169  struct _typelib_TypeDescriptionReference * pType,
170  sal_Int32 nSize,
171  uno_AcquireFunc acquire,
172  uno_ReleaseFunc release )
174 
185  uno_Sequence * sequence, struct _typelib_TypeDescriptionReference * type,
186  uno_ReleaseFunc release)
188 
189 #ifdef __cplusplus
190 }
191 #endif
192 
193 #endif
194 
195 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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.
Holds a weak reference to a type description.
Definition: typedescription.h:40
#define CPPU_DLLPUBLIC
Definition: cppudllapi.h:10
void(* uno_ReleaseFunc)(void *pInterface)
Generic function pointer declaration to release an interface.
Definition: data.h:52
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_sequence_assign(uno_Sequence **ppDest, uno_Sequence *pSource, struct _typelib_TypeDescription *pTypeDescr, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
Assigns a sequence.
unsigned char sal_Bool
Definition: types.h:48
Full type description of a type.
Definition: typedescription.h:71
sal_Sequence uno_Sequence
Definition: sequence2.h:31
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.
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.
void(* uno_AcquireFunc)(void *pInterface)
Generic function pointer declaration to acquire an interface.
Definition: data.h:46
This is the binary specification of a SAL sequence.
Definition: types.h:345
sal_Int32 nSize
size of type
Definition: typedescription.h:105
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.
#define SAL_THROW_EXTERN_C()
Nothrow specification for C functions.
Definition: types.h:370
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_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.