1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef INCLUDED_BRIDGES_SOURCE_CPP_UNO_CC5_SOLARIS_SPARC64_EXCEPTIONS_HXX
25 #define INCLUDED_BRIDGES_SOURCE_CPP_UNO_CC5_SOLARIS_SPARC64_EXCEPTIONS_HXX
26 
27 #include "sal/config.h"
28 
29 #include <cstddef>
30 
31 #include "typelib/typedescription.h"
32 #include "uno/any2.h"
33 #include "uno/mapping.h"
34 
35 // Private CC5 structures and functions:
36 namespace __Crun {
37     struct class_base_descr {
38         int type_hash[4];
39         std::size_t offset;
40     };
41     struct static_type_info {
42         std::ptrdiff_t ty_name;
43         std::ptrdiff_t reserved;
44         std::ptrdiff_t base_table;
45         int type_hash[4];
46         unsigned int flags;
47         unsigned int cv_qualifiers;
48     };
49     void * ex_alloc(unsigned long);
50     void ex_throw(void *, static_type_info const *, void (*)(void *));
51     void * ex_get();
52     void ex_rethrow_q() throw ();
53 }
54 namespace __Cimpl {
55     char const * ex_name();
56 }
57 
58 namespace bridges { namespace cpp_uno { namespace cc5_solaris_sparc64 {
59 
60 void raiseException(uno_Any * exception, uno_Mapping * unoToCpp);
61 
62 void fillUnoException(
63     void * cppException, char const * cppName, uno_Any * unoException,
64     uno_Mapping * cppToUno);
65 
66 } } }
67 
68 #endif
69