Mercurial > mplayer.hg
annotate loader/loader.h @ 9787:c3b63fb0e8db
Added a test for "s->fd == NULL" to the start of "stream_fill_buffer()".
("fd" is NULL if the session is defined by a SDP file, for example.)
It turns out that this test is necessary only for Solaris, not Linux,
because in Linux, "s->eof" got set after the prior (failing) call to
"lseek()" in "stream_seek_long()". In Solaris, however, "lseek(NULL, ...)"
returns 0 (go figure!) rather than -1, so "s->eof" doesn't get set in
"stream_seek_long()".
author | rsf |
---|---|
date | Wed, 02 Apr 2003 01:46:47 +0000 |
parents | 174e2a58b4cd |
children | f5537cc95b02 |
rev | line source |
---|---|
1 | 1 /******************************************************** |
2 | |
3 Win32 binary loader interface | |
128 | 4 Copyright 2000 Eugene Kuznetsov (divx@euro.ru) |
1 | 5 Shamelessly stolen from Wine project |
6 | |
7 *********************************************************/ | |
8 | |
9 #ifndef _LOADER_H | |
10 #define _LOADER_H | |
7386 | 11 |
1 | 12 #ifdef __cplusplus |
13 extern "C" { | |
14 #endif | |
15 | |
7386 | 16 #include "wine/windef.h" |
17 #include "wine/driver.h" | |
18 #include "wine/mmreg.h" | |
19 #include "wine/vfw.h" | |
20 #include "wine/msacm.h" | |
1494 | 21 |
1 | 22 unsigned int _GetPrivateProfileIntA(const char* appname, const char* keyname, int default_value, const char* filename); |
23 int _GetPrivateProfileStringA(const char* appname, const char* keyname, | |
24 const char* def_val, char* dest, unsigned int len, const char* filename); | |
25 int _WritePrivateProfileStringA(const char* appname, const char* keyname, | |
26 const char* string, const char* filename); | |
27 | |
1307
d8c1b0b38edc
Add prototypes to wine/loader stuff, so that we can catch __stdcall function
jkeil
parents:
128
diff
changeset
|
28 INT WINAPI LoadStringA( HINSTANCE instance, UINT resource_id, |
d8c1b0b38edc
Add prototypes to wine/loader stuff, so that we can catch __stdcall function
jkeil
parents:
128
diff
changeset
|
29 LPSTR buffer, INT buflen ); |
128 | 30 |
1 | 31 #ifdef __cplusplus |
32 } | |
33 #endif | |
34 #endif /* __LOADER_H */ | |
35 |