PageRenderTime 21ms CodeModel.GetById 13ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/xbmc/cores/DllLoader/ldt_keeper.h

http://github.com/xbmc/xbmc
C Header | 38 lines | 15 code | 6 blank | 17 comment | 0 complexity | d46bae4cc8bc22bfec962e611cb7cbb5 MD5 | raw file
 1/**
 2 * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 3 * This file MUST be in main library because LDT must
 4 * be modified before program creates first thread
 5 * - avifile includes this file from C++ code
 6 * and initializes it at the start of player!
 7 * it might sound like a hack and it really is - but
 8 * as aviplay is decoding video with more than just one
 9 * thread currently it's necessary to do it this way
10 * this might change in the future
11 */
12
13/* applied some modification to make make our xine friend more happy */
14
15/*
16 * Modified for use with MPlayer, detailed changelog at
17 * http://svn.mplayerhq.hu/mplayer/trunk/
18 * $Id: ldt_keeper.c 22733 2007-03-18 22:18:11Z nicodvb $
19 */
20
21#ifdef __cplusplus
22extern "C"
23{
24#endif
25
26typedef struct {
27  void* fs_seg;
28  char* prev_struct;
29  int fd;
30} ldt_fs_t;
31
32void      Setup_FS_Segment(void);
33ldt_fs_t* Setup_LDT_Keeper(void);
34void      Restore_LDT_Keeper(ldt_fs_t* ldt_fs);
35#ifdef __cplusplus
36}
37#endif
38