Changeset 21731 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/wine
- Timestamp:
- Jul 21, 2009 9:16:52 AM (16 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/wine
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/wine/exception.h
r19678 r21731 223 223 } 224 224 225 static inline EXCEPTION_REGISTRATION_RECORD *__wine_get_frame(void) 226 { 227 #if defined(__GNUC__) && defined(__i386__) 228 EXCEPTION_REGISTRATION_RECORD *ret; 229 __asm__ __volatile__(".byte 0x64\n\tmovl (0),%0" : "=r" (ret) ); 230 return ret; 231 #else 232 NT_TIB *teb = (NT_TIB *)NtCurrentTeb(); 233 return teb->ExceptionList; 234 #endif 235 } 236 225 237 /* Exception handling flags - from OS/2 2.0 exception handling */ 226 238 … … 248 260 NTSYSAPI void WINAPI RtlUnwind(PVOID,PVOID,PEXCEPTION_RECORD,PVOID); 249 261 262 static inline void DECLSPEC_NORETURN __wine_unwind_target(void) 263 { 264 __WINE_FRAME *wine_frame = (__WINE_FRAME *)__wine_get_frame(); 265 __wine_pop_frame( &wine_frame->frame ); 266 siglongjmp( wine_frame->jmp, 1 ); 267 } 268 250 269 /* wrapper for RtlUnwind since it clobbers registers on Windows */ 251 static inline void __wine_rtl_unwind( EXCEPTION_REGISTRATION_RECORD* frame, EXCEPTION_RECORD *record ) 270 static inline void DECLSPEC_NORETURN __wine_rtl_unwind( EXCEPTION_REGISTRATION_RECORD* frame, 271 EXCEPTION_RECORD *record, 272 void (*target)(void) ) 252 273 { 253 274 #if defined(__GNUC__) && defined(__i386__) 254 int dummy1, dummy2, dummy3 ;275 int dummy1, dummy2, dummy3, dummy4; 255 276 __asm__ __volatile__("pushl %%ebp\n\t" 256 277 "pushl %%ebx\n\t" 257 278 "pushl $0\n\t" 279 "pushl %3\n\t" 258 280 "pushl %2\n\t" 259 "pushl $0\n\t"260 281 "pushl %1\n\t" 261 282 "call *%0\n\t" 262 283 "popl %%ebx\n\t" 263 284 "popl %%ebp" 264 : "=a" (dummy1), "=S" (dummy2), "=D" (dummy3) 265 : "0" (RtlUnwind), "1" (frame), "2" ( record)266 : "e cx", "edx", "memory" );285 : "=a" (dummy1), "=S" (dummy2), "=D" (dummy3), "=c" (dummy4) 286 : "0" (RtlUnwind), "1" (frame), "2" (target), "3" (record) 287 : "edx", "memory" ); 267 288 #else 268 RtlUnwind( frame, 0, record, 0 ); 269 #endif 289 RtlUnwind( frame, target, record, 0 ); 290 #endif 291 for (;;) target(); 270 292 } 271 293 … … 279 301 wine_frame->ExceptionRecord = wine_frame; 280 302 281 __wine_rtl_unwind( frame, record ); 282 __wine_pop_frame( frame ); 283 siglongjmp( wine_frame->jmp, 1 ); 303 __wine_rtl_unwind( frame, record, __wine_unwind_target ); 284 304 } 285 305 -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/wine/port.h
r19678 r21731 213 213 #define M_PI_2 1.570796326794896619 214 214 #endif 215 216 217 /* Macros to define assembler functions somewhat portably */218 219 #if defined(__GNUC__) && !defined(__INTERIX) && !defined(__MINGW32__) && !defined(__CYGWIN__) && !defined(__APPLE__)220 # define __ASM_GLOBAL_FUNC(name,code) \221 __asm__( ".text\n\t" \222 ".align 4\n\t" \223 ".globl " __ASM_NAME(#name) "\n\t" \224 __ASM_FUNC(#name) "\n" \225 __ASM_NAME(#name) ":\n\t" \226 code \227 "\n\t.previous" );228 #else /* defined(__GNUC__) && !defined(__MINGW32__) && !defined(__APPLE__) */229 # define __ASM_GLOBAL_FUNC(name,code) \230 void __asm_dummy_##name(void) { \231 asm( ".align 4\n\t" \232 ".globl " __ASM_NAME(#name) "\n\t" \233 __ASM_FUNC(#name) "\n" \234 __ASM_NAME(#name) ":\n\t" \235 code ); \236 }237 #endif /* __GNUC__ */238 215 239 216 -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/wine/pthread.h
r19678 r21731 17 17 * License along with this library; if not, write to the Free Software 18 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 19 */ 20 21 /* 22 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice 23 * other than GPL or LGPL is available it will apply instead, Sun elects to use only 24 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where 25 * a choice of LGPL license versions is made available with the language indicating 26 * that LGPLv2 or any later version may be used, or where a choice of which version 27 * of the LGPL is applied is otherwise unspecified. 28 */ 29 30 /* 31 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice 32 * other than GPL or LGPL is available it will apply instead, Sun elects to use only 33 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where 34 * a choice of LGPL license versions is made available with the language indicating 35 * that LGPLv2 or any later version may be used, or where a choice of which version 36 * of the LGPL is applied is otherwise unspecified. 37 */ 38 39 /* 40 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice 41 * other than GPL or LGPL is available it will apply instead, Sun elects to use only 42 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where 43 * a choice of LGPL license versions is made available with the language indicating 44 * that LGPLv2 or any later version may be used, or where a choice of which version 45 * of the LGPL is applied is otherwise unspecified. 19 46 */ 20 47 -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/wine/server_protocol.h
r19678 r21731 703 703 int exit_code; 704 704 int priority; 705 cpu_type_t cpu; 706 char __pad_60[4]; 705 707 }; 706 708 … … 5320 5322 }; 5321 5323 5322 #define SERVER_PROTOCOL_VERSION 38 65324 #define SERVER_PROTOCOL_VERSION 387 5323 5325 5324 5326 #endif /* __WINE_WINE_SERVER_PROTOCOL_H */ -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/wine/wined3d.h
r20612 r21731 1 /*** Autogenerated by WIDL 1.1.2 3from ../../include/wine/wined3d.idl - Do not edit ***/1 /*** Autogenerated by WIDL 1.1.26 from ../../include/wine/wined3d.idl - Do not edit ***/ 2 2 3 3 #include <rpc.h> … … 2243 2243 } WINED3DTRIPATCH_INFO; 2244 2244 typedef struct _WINED3DADAPTER_IDENTIFIER { 2245 char *Driver; 2246 char *Description; 2247 char *DeviceName; 2248 LARGE_INTEGER *DriverVersion; 2249 DWORD *VendorId; 2250 DWORD *DeviceId; 2251 DWORD *SubSysId; 2252 DWORD *Revision; 2253 GUID *DeviceIdentifier; 2254 DWORD *WHQLLevel; 2245 char *driver; 2246 UINT driver_size; 2247 char *description; 2248 UINT description_size; 2249 char *device_name; 2250 UINT device_name_size; 2251 LARGE_INTEGER driver_version; 2252 DWORD vendor_id; 2253 DWORD device_id; 2254 DWORD subsystem_id; 2255 DWORD revision; 2256 GUID device_identifier; 2257 DWORD whql_level; 2255 2258 } WINED3DADAPTER_IDENTIFIER; 2256 2259 typedef struct _WINED3DPRESENT_PARAMETERS { … … 2272 2275 } WINED3DPRESENT_PARAMETERS; 2273 2276 typedef struct _WINED3DSURFACE_DESC { 2274 WINED3DFORMAT *Format;2275 WINED3DRESOURCETYPE *Type;2276 DWORD *Usage;2277 WINED3DPOOL *Pool;2278 UINT *Size;2279 WINED3DMULTISAMPLE_TYPE *MultiSampleType;2280 DWORD *MultiSampleQuality;2281 UINT *Width;2282 UINT *Height;2277 WINED3DFORMAT format; 2278 WINED3DRESOURCETYPE resource_type; 2279 DWORD usage; 2280 WINED3DPOOL pool; 2281 UINT size; 2282 WINED3DMULTISAMPLE_TYPE multisample_type; 2283 DWORD multisample_quality; 2284 UINT width; 2285 UINT height; 2283 2286 } WINED3DSURFACE_DESC; 2284 2287 typedef struct _WINED3DVOLUME_DESC { 2285 WINED3DFORMAT *Format;2286 WINED3DRESOURCETYPE *Type;2287 DWORD *Usage;2288 WINED3DPOOL *Pool;2289 UINT *Size;2290 UINT *Width;2291 UINT *Height;2292 UINT *Depth;2288 WINED3DFORMAT Format; 2289 WINED3DRESOURCETYPE Type; 2290 DWORD Usage; 2291 WINED3DPOOL Pool; 2292 UINT Size; 2293 UINT Width; 2294 UINT Height; 2295 UINT Depth; 2293 2296 } WINED3DVOLUME_DESC; 2294 2297 typedef struct _WINED3DCLIPSTATUS { … … 2392 2395 UINT Size; 2393 2396 } WINED3DBUFFER_DESC; 2394 typedef struct glDescriptor {2395 UINT textureName;2396 UINT srgbTextureName;2397 int level;2398 int target;2399 } glDescriptor;2400 2397 typedef struct WineDirect3DStridedData { 2401 2398 WINED3DFORMAT format; … … 3980 3977 IWineD3DBase *container) = 0; 3981 3978 3982 virtual void STDMETHODCALLTYPE GetGlDesc(3983 glDescriptor **desc) = 0;3984 3985 3979 virtual const void * STDMETHODCALLTYPE GetData( 3986 3980 ) = 0; … … 4198 4192 IWineD3DSurface* This, 4199 4193 IWineD3DBase *container); 4200 4201 void (STDMETHODCALLTYPE *GetGlDesc)(4202 IWineD3DSurface* This,4203 glDescriptor **desc);4204 4194 4205 4195 const void * (STDMETHODCALLTYPE *GetData)( … … 4282 4272 #define IWineD3DSurface_SaveSnapshot(This,filename) (This)->lpVtbl->SaveSnapshot(This,filename) 4283 4273 #define IWineD3DSurface_SetContainer(This,container) (This)->lpVtbl->SetContainer(This,container) 4284 #define IWineD3DSurface_GetGlDesc(This,desc) (This)->lpVtbl->GetGlDesc(This,desc)4285 4274 #define IWineD3DSurface_GetData(This) (This)->lpVtbl->GetData(This) 4286 4275 #define IWineD3DSurface_SetFormat(This,format) (This)->lpVtbl->SetFormat(This,format) … … 4538 4527 IWineD3DBase *container); 4539 4528 void __RPC_STUB IWineD3DSurface_SetContainer_Stub( 4540 IRpcStubBuffer* This,4541 IRpcChannelBuffer* pRpcChannelBuffer,4542 PRPC_MESSAGE pRpcMessage,4543 DWORD* pdwStubPhase);4544 void STDMETHODCALLTYPE IWineD3DSurface_GetGlDesc_Proxy(4545 IWineD3DSurface* This,4546 glDescriptor **desc);4547 void __RPC_STUB IWineD3DSurface_GetGlDesc_Stub(4548 4529 IRpcStubBuffer* This, 4549 4530 IRpcChannelBuffer* pRpcChannelBuffer, … … 6939 6920 UINT level, 6940 6921 IWineD3DSurface **surface, 6941 WINED3DRESOURCETYPE resource_type,6942 6922 DWORD usage, 6943 6923 WINED3DPOOL pool, … … 7551 7531 UINT level, 7552 7532 IWineD3DSurface **surface, 7553 WINED3DRESOURCETYPE resource_type,7554 7533 DWORD usage, 7555 7534 WINED3DPOOL pool, … … 8234 8213 #define IWineD3DDevice_CreateIndexBuffer(This,length,usage,pool,index_buffer,parent) (This)->lpVtbl->CreateIndexBuffer(This,length,usage,pool,index_buffer,parent) 8235 8214 #define IWineD3DDevice_CreateStateBlock(This,type,stateblock,parent) (This)->lpVtbl->CreateStateBlock(This,type,stateblock,parent) 8236 #define IWineD3DDevice_CreateSurface(This,width,height,format,lockable,discard,level,surface, resource_type,usage,pool,multisample_type,multisample_quality,surface_type,parent) (This)->lpVtbl->CreateSurface(This,width,height,format,lockable,discard,level,surface,resource_type,usage,pool,multisample_type,multisample_quality,surface_type,parent)8215 #define IWineD3DDevice_CreateSurface(This,width,height,format,lockable,discard,level,surface,usage,pool,multisample_type,multisample_quality,surface_type,parent) (This)->lpVtbl->CreateSurface(This,width,height,format,lockable,discard,level,surface,usage,pool,multisample_type,multisample_quality,surface_type,parent) 8237 8216 #define IWineD3DDevice_CreateRendertargetView(This,resource,parent,rendertarget_view) (This)->lpVtbl->CreateRendertargetView(This,resource,parent,rendertarget_view) 8238 8217 #define IWineD3DDevice_CreateTexture(This,width,height,levels,usage,format,pool,texture,parent) (This)->lpVtbl->CreateTexture(This,width,height,levels,usage,format,pool,texture,parent) … … 8419 8398 UINT level, 8420 8399 IWineD3DSurface **surface, 8421 WINED3DRESOURCETYPE resource_type,8422 8400 DWORD usage, 8423 8401 WINED3DPOOL pool, -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/wine/wined3d.idl
r20612 r21731 1701 1701 typedef struct _WINED3DADAPTER_IDENTIFIER 1702 1702 { 1703 char *Driver; 1704 char *Description; 1705 char *DeviceName; 1706 LARGE_INTEGER *DriverVersion; 1707 DWORD *VendorId; 1708 DWORD *DeviceId; 1709 DWORD *SubSysId; 1710 DWORD *Revision; 1711 GUID *DeviceIdentifier; 1712 DWORD *WHQLLevel; 1703 char *driver; 1704 UINT driver_size; 1705 char *description; 1706 UINT description_size; 1707 char *device_name; 1708 UINT device_name_size; 1709 LARGE_INTEGER driver_version; 1710 DWORD vendor_id; 1711 DWORD device_id; 1712 DWORD subsystem_id; 1713 DWORD revision; 1714 GUID device_identifier; 1715 DWORD whql_level; 1713 1716 } WINED3DADAPTER_IDENTIFIER; 1714 1717 … … 1734 1737 typedef struct _WINED3DSURFACE_DESC 1735 1738 { 1736 WINED3DFORMAT *Format;1737 WINED3DRESOURCETYPE *Type;1738 DWORD *Usage;1739 WINED3DPOOL *Pool;1740 UINT *Size;1741 WINED3DMULTISAMPLE_TYPE *MultiSampleType;1742 DWORD *MultiSampleQuality;1743 UINT *Width;1744 UINT *Height;1739 WINED3DFORMAT format; 1740 WINED3DRESOURCETYPE resource_type; 1741 DWORD usage; 1742 WINED3DPOOL pool; 1743 UINT size; 1744 WINED3DMULTISAMPLE_TYPE multisample_type; 1745 DWORD multisample_quality; 1746 UINT width; 1747 UINT height; 1745 1748 } WINED3DSURFACE_DESC; 1746 1749 1747 1750 typedef struct _WINED3DVOLUME_DESC 1748 1751 { 1749 WINED3DFORMAT *Format;1750 WINED3DRESOURCETYPE *Type;1751 DWORD *Usage;1752 WINED3DPOOL *Pool;1753 UINT *Size;1754 UINT *Width;1755 UINT *Height;1756 UINT *Depth;1752 WINED3DFORMAT Format; 1753 WINED3DRESOURCETYPE Type; 1754 DWORD Usage; 1755 WINED3DPOOL Pool; 1756 UINT Size; 1757 UINT Width; 1758 UINT Height; 1759 UINT Depth; 1757 1760 } WINED3DVOLUME_DESC; 1758 1761 … … 1892 1895 UINT Size; 1893 1896 } WINED3DBUFFER_DESC; 1894 1895 typedef struct glDescriptor1896 {1897 UINT textureName, srgbTextureName;1898 int level;1899 int /*GLenum*/ target;1900 } glDescriptor;1901 1897 1902 1898 typedef struct WineDirect3DStridedData … … 2539 2535 [in] IWineD3DBase *container 2540 2536 ); 2541 void GetGlDesc(2542 [out] glDescriptor **desc2543 );2544 2537 const void *GetData( 2545 2538 ); … … 2942 2935 [in] UINT level, 2943 2936 [out] IWineD3DSurface **surface, 2944 [in] WINED3DRESOURCETYPE resource_type,2945 2937 [in] DWORD usage, 2946 2938 [in] WINED3DPOOL pool,
Note:
See TracChangeset
for help on using the changeset viewer.