AlterOffice
AlterOffice 3.4 SDK C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mapping.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 
3 #ifndef INCLUDED_UNO_MAPPING_H
4 #define INCLUDED_UNO_MAPPING_H
5 
6 #include "cppu/cppudllapi.h"
7 #include "rtl/ustring.h"
8 
9 
10 #ifdef __cplusplus
11 extern "C"
12 {
13 #endif
14 
16 struct _uno_Mapping;
17 struct _uno_Environment;
18 
22 typedef void (SAL_CALL * uno_AcquireMappingFunc)(struct _uno_Mapping *);
23 
27 typedef void (SAL_CALL * uno_ReleaseMappingFunc)(struct _uno_Mapping *);
28 
36 typedef void (SAL_CALL * uno_MapInterfaceFunc)(
37  struct _uno_Mapping * pMapping,
38  void ** ppOut, void * pInterface,
39  struct _typelib_InterfaceTypeDescription * pInterfaceTypeDescr );
40 
41 
42 #if defined( _WIN32)
43 #pragma pack(push, 8)
44 #endif
45 
48 typedef struct SAL_DLLPUBLIC_RTTI _uno_Mapping
49 {
53 
57 
61 } uno_Mapping;
62 
63 #if defined( _WIN32)
64 #pragma pack(pop)
65 #endif
66 
76 CPPU_DLLPUBLIC void SAL_CALL uno_getMapping(
77  struct _uno_Mapping ** ppMapping,
78  struct _uno_Environment * pFrom,
79  struct _uno_Environment * pTo,
80  rtl_uString * pAddPurpose )
82 
90 typedef void (SAL_CALL * uno_getMappingFunc)(
91  struct _uno_Mapping ** ppMapping,
92  struct _uno_Environment * pFrom,
93  struct _uno_Environment * pTo,
94  rtl_uString * pAddPurpose );
95 
101  uno_getMappingFunc pCallback )
103 
109  uno_getMappingFunc pCallback )
111 
116 typedef void (SAL_CALL * uno_freeMappingFunc)( struct _uno_Mapping * pMapping );
117 
127 CPPU_DLLPUBLIC void SAL_CALL uno_registerMapping(
128  struct _uno_Mapping ** ppMapping, uno_freeMappingFunc freeMapping,
129  struct _uno_Environment * pFrom, struct _uno_Environment * pTo, rtl_uString * pAddPurpose )
131 
137 CPPU_DLLPUBLIC void SAL_CALL uno_revokeMapping(
138  struct _uno_Mapping * pMapping )
140 
152  struct _uno_Mapping ** ppMapping,
153  rtl_uString * pFrom,
154  rtl_uString * pTo,
155  rtl_uString * pAddPurpose )
157 
158 /* symbol exported by each language binding library */
159 #define UNO_EXT_GETMAPPING "uno_ext_getMapping"
160 
168 typedef void (SAL_CALL * uno_ext_getMappingFunc)(
169  struct _uno_Mapping ** ppMapping,
170  struct _uno_Environment * pFrom,
171  struct _uno_Environment * pTo );
172 
173 #ifdef DISABLE_DYNLOADING
174 /* Static linking, this is the uno_ext_getMapping function in the C++/UNO bridge */
175 void SAL_CALL CPPU_ENV_uno_ext_getMapping(
176  struct _uno_Mapping ** ppMapping,
177  struct _uno_Environment * pFrom,
178  struct _uno_Environment * pTo )
180 
181 /* This is the uno_ext_getMapping function in the Java/UNO bridge */
182 void SAL_CALL java_uno_ext_getMapping(
183  struct _uno_Mapping ** ppMapping,
184  struct _uno_Environment * pFrom,
185  struct _uno_Environment * pTo )
187 
188 #endif
189 
190 #ifdef __cplusplus
191 }
192 #endif
193 
194 #endif
195 
196 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
struct SAL_DLLPUBLIC_RTTI _uno_Mapping uno_Mapping
This is the binary specification of a mapping.
void(* uno_getMappingFunc)(struct _uno_Mapping **ppMapping, struct _uno_Environment *pFrom, struct _uno_Environment *pTo, rtl_uString *pAddPurpose)
Callback function pointer declaration to get a mapping.
Definition: mapping.h:90
CPPU_DLLPUBLIC void uno_registerMapping(struct _uno_Mapping **ppMapping, uno_freeMappingFunc freeMapping, struct _uno_Environment *pFrom, struct _uno_Environment *pTo, rtl_uString *pAddPurpose) SAL_THROW_EXTERN_C()
Registers a mapping.
The binary specification of a UNO environment.
Definition: environment.h:25
void(* uno_AcquireMappingFunc)(struct _uno_Mapping *)
Function pointer declaration to acquire a UNO mapping.
Definition: mapping.h:22
CPPU_DLLPUBLIC void uno_revokeMapping(struct _uno_Mapping *pMapping) SAL_THROW_EXTERN_C()
Revokes a mapping.
void(* uno_MapInterfaceFunc)(struct _uno_Mapping *pMapping, void **ppOut, void *pInterface, struct _typelib_InterfaceTypeDescription *pInterfaceTypeDescr)
Function pointer declaration to map an interface from one environment to another. ...
Definition: mapping.h:36
CPPU_DLLPUBLIC void uno_registerMappingCallback(uno_getMappingFunc pCallback) SAL_THROW_EXTERN_C()
Registers a callback being called each time a mapping is demanded.
Type description of an interface.
Definition: typedescription.h:354
uno_AcquireMappingFunc acquire
Acquires mapping.
Definition: mapping.h:52
CPPU_DLLPUBLIC void uno_getMapping(struct _uno_Mapping **ppMapping, struct _uno_Environment *pFrom, struct _uno_Environment *pTo, rtl_uString *pAddPurpose) SAL_THROW_EXTERN_C()
Gets an interface mapping from one environment to another.
CPPU_DLLPUBLIC void uno_getMappingByName(struct _uno_Mapping **ppMapping, rtl_uString *pFrom, rtl_uString *pTo, rtl_uString *pAddPurpose) SAL_THROW_EXTERN_C()
Gets an interface mapping from one language environment to another by corresponding environment type ...
CPPU_DLLPUBLIC void SAL_THROW_EXTERN_C()
This method is called to wait for a reply of a previously sent request.
uno_MapInterfaceFunc mapInterface
mapping function
Definition: mapping.h:60
void(* uno_ReleaseMappingFunc)(struct _uno_Mapping *)
Function pointer declaration to release a UNO mapping.
Definition: mapping.h:27
uno_ReleaseMappingFunc release
Releases mapping.
Definition: mapping.h:56
CPPU_DLLPUBLIC void uno_revokeMappingCallback(uno_getMappingFunc pCallback) SAL_THROW_EXTERN_C()
Revokes a mapping callback registration.
void(* uno_ext_getMappingFunc)(struct _uno_Mapping **ppMapping, struct _uno_Environment *pFrom, struct _uno_Environment *pTo)
Function pointer declaration to get a mapping from a loaded bridge.
Definition: mapping.h:168
This is the binary specification of a mapping.
Definition: mapping.h:48
void(* uno_freeMappingFunc)(struct _uno_Mapping *pMapping)
Function pointer declaration to free a mapping.
Definition: mapping.h:116
#define CPPU_DLLPUBLIC
Definition: cppudllapi.h:11