UDK 3.2.7 C/C++ API Reference
uno/any2.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
00002 /*************************************************************************
00003  *
00004  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
00005  *
00006  * Copyright 2000, 2010 Oracle and/or its affiliates.
00007  *
00008  * OpenOffice.org - a multi-platform office productivity suite
00009  *
00010  * This file is part of OpenOffice.org.
00011  *
00012  * OpenOffice.org is free software: you can redistribute it and/or modify
00013  * it under the terms of the GNU Lesser General Public License version 3
00014  * only, as published by the Free Software Foundation.
00015  *
00016  * OpenOffice.org is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU Lesser General Public License version 3 for more details
00020  * (a copy is included in the LICENSE file that accompanied this code).
00021  *
00022  * You should have received a copy of the GNU Lesser General Public License
00023  * version 3 along with OpenOffice.org.  If not, see
00024  * <http://www.openoffice.org/license.html>
00025  * for a copy of the LGPLv3 License.
00026  *
00027  ************************************************************************/
00028 #ifndef _UNO_ANY2_H_
00029 #define _UNO_ANY2_H_
00030 
00031 #include <cppu/cppudllapi.h>
00032 #include <uno/data.h>
00033 
00034 #ifdef __cplusplus
00035 extern "C"
00036 {
00037 #endif
00038 
00039 #if defined( SAL_W32)
00040 #pragma pack(push, 8)
00041 #endif
00042 
00043 struct _typelib_TypeDescriptionReference;
00044 struct _typelib_TypeDescription;
00045 struct _uno_Mapping;
00046 
00049 typedef struct _uno_Any
00050 {
00053     struct _typelib_TypeDescriptionReference * pType;
00058     void * pData;
00061     void * pReserved;
00062 } uno_Any;
00063 
00064 #if defined( SAL_W32)
00065 #pragma pack(pop)
00066 #endif
00067 
00079 CPPU_DLLPUBLIC void SAL_CALL uno_any_assign(
00080     uno_Any * pDest, void * pSource,
00081     struct _typelib_TypeDescription * pTypeDescr,
00082     uno_AcquireFunc acquire, uno_ReleaseFunc release )
00083     SAL_THROW_EXTERN_C();
00095 CPPU_DLLPUBLIC void SAL_CALL uno_type_any_assign(
00096     uno_Any * pDest, void * pSource,
00097     struct _typelib_TypeDescriptionReference * pType,
00098     uno_AcquireFunc acquire, uno_ReleaseFunc release )
00099     SAL_THROW_EXTERN_C();
00100 
00109 CPPU_DLLPUBLIC void SAL_CALL uno_any_construct(
00110     uno_Any * pDest, void * pSource,
00111     struct _typelib_TypeDescription * pTypeDescr,
00112     uno_AcquireFunc acquire )
00113     SAL_THROW_EXTERN_C();
00122 CPPU_DLLPUBLIC void SAL_CALL uno_type_any_construct(
00123     uno_Any * pDest, void * pSource,
00124     struct _typelib_TypeDescriptionReference * pType,
00125     uno_AcquireFunc acquire )
00126     SAL_THROW_EXTERN_C();
00127 
00135 CPPU_DLLPUBLIC void SAL_CALL uno_any_constructAndConvert(
00136     uno_Any * pDest, void * pSource,
00137     struct _typelib_TypeDescription * pTypeDescr,
00138     struct _uno_Mapping * mapping )
00139     SAL_THROW_EXTERN_C();
00147 CPPU_DLLPUBLIC void SAL_CALL uno_type_any_constructAndConvert(
00148     uno_Any * pDest, void * pSource,
00149     struct _typelib_TypeDescriptionReference * pType,
00150     struct _uno_Mapping * mapping )
00151     SAL_THROW_EXTERN_C();
00152 
00159 CPPU_DLLPUBLIC void SAL_CALL uno_any_destruct(
00160     uno_Any * pValue, uno_ReleaseFunc release )
00161     SAL_THROW_EXTERN_C();
00162 
00169 CPPU_DLLPUBLIC void SAL_CALL uno_any_clear(
00170     uno_Any * pValue, uno_ReleaseFunc release )
00171     SAL_THROW_EXTERN_C();
00172 
00173 #ifdef __cplusplus
00174 }
00175 #endif
00176 
00177 #endif
00178 
00179 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines