/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. /* applied some modification to make make our xine friend more happy */
  13. /*
  14. * Modified for use with MPlayer, detailed changelog at
  15. * http://svn.mplayerhq.hu/mplayer/trunk/
  16. * $Id: ldt_keeper.c 22733 2007-03-18 22:18:11Z nicodvb $
  17. */
  18. #ifdef __cplusplus
  19. extern "C"
  20. {
  21. #endif
  22. typedef struct {
  23. void* fs_seg;
  24. char* prev_struct;
  25. int fd;
  26. } ldt_fs_t;
  27. void Setup_FS_Segment(void);
  28. ldt_fs_t* Setup_LDT_Keeper(void);
  29. void Restore_LDT_Keeper(ldt_fs_t* ldt_fs);
  30. #ifdef __cplusplus
  31. }
  32. #endif