annotate loader/wine/objbase.h @ 33263:5f527a9a9521

Add an exit function. This function will allow performing clean-up operations. (MPlayer calls guiDone() before exiting, but only if the GUI has been initialized, i.e. if guiInit() has been called successfully. Any exit_player()/exit_player_with_rc() after GUI's cfg_read() until guiInit(), or any exit_player() during guiInit() itself will end the GUI without calling guiDone(). This exit function will at least handle abortions during guiInit() itself. It will be called twice in case of an guiExit() after GUI initialization - first directly, next by guiDone() via MPlayer's exit_player_with_rc().)
author ib
date Tue, 03 May 2011 12:19:22 +0000
parents 837cd9762b4e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26045
a8ea87c71d18 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 26024
diff changeset
1 #ifndef MPLAYER_OBJBASE_H
a8ea87c71d18 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 26024
diff changeset
2 #define MPLAYER_OBJBASE_H
24770
6a8be4b73d07 Add Coinitialize function to vfw encoder and win32 loader.
compn
parents:
diff changeset
3
30171
837cd9762b4e Add required header #includes to satisfy 'make checkheaders'.
diego
parents: 26045
diff changeset
4 #include "windef.h"
837cd9762b4e Add required header #includes to satisfy 'make checkheaders'.
diego
parents: 26045
diff changeset
5
24770
6a8be4b73d07 Add Coinitialize function to vfw encoder and win32 loader.
compn
parents:
diff changeset
6 #ifndef STDCALL
6a8be4b73d07 Add Coinitialize function to vfw encoder and win32 loader.
compn
parents:
diff changeset
7 #define STDCALL __attribute__((__stdcall__))
26024
4f056043c2c1 Remove misplaced #endif comment.
diego
parents: 25535
diff changeset
8 #endif
24770
6a8be4b73d07 Add Coinitialize function to vfw encoder and win32 loader.
compn
parents:
diff changeset
9
6a8be4b73d07 Add Coinitialize function to vfw encoder and win32 loader.
compn
parents:
diff changeset
10 /* from objbase.h needed for ve_vfw.c */
6a8be4b73d07 Add Coinitialize function to vfw encoder and win32 loader.
compn
parents:
diff changeset
11 typedef enum tagCOINIT {
6a8be4b73d07 Add Coinitialize function to vfw encoder and win32 loader.
compn
parents:
diff changeset
12 COINIT_APARTMENTTHREADED = 0x2,
6a8be4b73d07 Add Coinitialize function to vfw encoder and win32 loader.
compn
parents:
diff changeset
13 COINIT_MULTITHREADED = 0x0,
6a8be4b73d07 Add Coinitialize function to vfw encoder and win32 loader.
compn
parents:
diff changeset
14 COINIT_DISABLE_OLE1DDE = 0x4,
6a8be4b73d07 Add Coinitialize function to vfw encoder and win32 loader.
compn
parents:
diff changeset
15 COINIT_SPEED_OVER_MEMORY = 0x8
6a8be4b73d07 Add Coinitialize function to vfw encoder and win32 loader.
compn
parents:
diff changeset
16 } COINIT;
6a8be4b73d07 Add Coinitialize function to vfw encoder and win32 loader.
compn
parents:
diff changeset
17
6a8be4b73d07 Add Coinitialize function to vfw encoder and win32 loader.
compn
parents:
diff changeset
18 HRESULT STDCALL CoInitialize(LPVOID pvReserved);
6a8be4b73d07 Add Coinitialize function to vfw encoder and win32 loader.
compn
parents:
diff changeset
19 HRESULT STDCALL CoInitializeEx(LPVOID pvReserved, DWORD dwCoinit);
6a8be4b73d07 Add Coinitialize function to vfw encoder and win32 loader.
compn
parents:
diff changeset
20 void STDCALL CoUninitialize(void);
25535
3baf6a2283da Add explanatory comments to the #endif part of multiple inclusion guards.
diego
parents: 24778
diff changeset
21
26045
a8ea87c71d18 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 26024
diff changeset
22 #endif /* MPLAYER_OBJBASE_H */