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:
diego 2010-06-14 11:30:59 +00:00 committed by Uoti Urpala
parent e6078b8f59
commit 29bdac6cd6
2 changed files with 2 additions and 30 deletions

View File

@ -26,14 +26,7 @@
#include "qtxsdk/components.h"
#include "qtxsdk/select.h"
#include "loader/ldt_keeper.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
#include "loader/wine/winbase.h"
int main(void) {
void *handler;

View File

@ -23,30 +23,9 @@
#include "qtxsdk/components.h"
#include "qtxsdk/select.h"
#include "loader/ldt_keeper.h"
#include "loader/wine/winbase.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];
static OSErr (*InitializeQTML)(long flags);