mirror of
https://github.com/mpv-player/mpv
synced 2025-01-03 13:32:16 +00:00
loader/qtx: cleanup
Remove unused function ComponentDummy(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31406 b3059339-0415-0410-9bf9-f77b7e298cf2 Remove unnecessary get_path() declaration. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31408 b3059339-0415-0410-9bf9-f77b7e298cf2 Remove unnecessary get_path() declaration. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31409 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace forward declarations by loader/wine/winbase.h #include. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31410 b3059339-0415-0410-9bf9-f77b7e298cf2 Remove unnecessary and unused #defines. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31411 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e6078b8f59
commit
29bdac6cd6
@ -26,14 +26,7 @@
|
|||||||
#include "qtxsdk/components.h"
|
#include "qtxsdk/components.h"
|
||||||
#include "qtxsdk/select.h"
|
#include "qtxsdk/select.h"
|
||||||
#include "loader/ldt_keeper.h"
|
#include "loader/ldt_keeper.h"
|
||||||
|
#include "loader/wine/winbase.h"
|
||||||
char* get_path(const char* x){ return strdup(x);}
|
|
||||||
void* LoadLibraryA(char* name);
|
|
||||||
void* GetProcAddress(void* handle,char* func);
|
|
||||||
|
|
||||||
#define __stdcall __attribute__((__stdcall__))
|
|
||||||
#define __cdecl __attribute__((__cdecl__))
|
|
||||||
#define APIENTRY
|
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
void *handler;
|
void *handler;
|
||||||
|
@ -23,30 +23,9 @@
|
|||||||
#include "qtxsdk/components.h"
|
#include "qtxsdk/components.h"
|
||||||
#include "qtxsdk/select.h"
|
#include "qtxsdk/select.h"
|
||||||
#include "loader/ldt_keeper.h"
|
#include "loader/ldt_keeper.h"
|
||||||
|
#include "loader/wine/winbase.h"
|
||||||
#include "mp_msg.h"
|
#include "mp_msg.h"
|
||||||
|
|
||||||
/* this is what a plain component looks like */
|
|
||||||
ComponentResult ComponentDummy(
|
|
||||||
ComponentParameters *params,
|
|
||||||
void **globals,
|
|
||||||
ComponentResult (*ComponentDispatch)(ComponentParameters *, void **))
|
|
||||||
{
|
|
||||||
printf("ComponentDummy(params: %p, globals: %p, dispatcher: %p) called!\n",
|
|
||||||
params, globals, ComponentDispatch);
|
|
||||||
printf(" Dummy: global datas: %p\n", *globals);
|
|
||||||
printf(" Dummy: returning 0\n");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
char *get_path(const char* x){ return strdup(x);}
|
|
||||||
|
|
||||||
void* LoadLibraryA(char* name);
|
|
||||||
void* GetProcAddress(void* handle,char* func);
|
|
||||||
|
|
||||||
#define __stdcall __attribute__((__stdcall__))
|
|
||||||
#define __cdecl __attribute__((__cdecl__))
|
|
||||||
#define APIENTRY
|
|
||||||
|
|
||||||
unsigned int* x_table[0x00001837];
|
unsigned int* x_table[0x00001837];
|
||||||
|
|
||||||
static OSErr (*InitializeQTML)(long flags);
|
static OSErr (*InitializeQTML)(long flags);
|
||||||
|
Loading…
Reference in New Issue
Block a user