annotate loader/qtx/list.c @ 33784:72adb79f5a16

Change fname parameter to const in pngRead().
author ib
date Mon, 11 Jul 2011 11:19:44 +0000
parents 2a681e243c4c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30452
fee09b258e8a Add missing license headers to test programs for external libraries.
diego
parents: 30170
diff changeset
1 /*
fee09b258e8a Add missing license headers to test programs for external libraries.
diego
parents: 30170
diff changeset
2 * To compile edit loader/win32.c and change the #if 0 to 1 at line 1326
fee09b258e8a Add missing license headers to test programs for external libraries.
diego
parents: 30170
diff changeset
3 * to enable quicktime fix!
fee09b258e8a Add missing license headers to test programs for external libraries.
diego
parents: 30170
diff changeset
4 *
fee09b258e8a Add missing license headers to test programs for external libraries.
diego
parents: 30170
diff changeset
5 * This file is part of MPlayer.
fee09b258e8a Add missing license headers to test programs for external libraries.
diego
parents: 30170
diff changeset
6 *
fee09b258e8a Add missing license headers to test programs for external libraries.
diego
parents: 30170
diff changeset
7 * MPlayer is free software; you can redistribute it and/or modify
fee09b258e8a Add missing license headers to test programs for external libraries.
diego
parents: 30170
diff changeset
8 * it under the terms of the GNU General Public License as published by
fee09b258e8a Add missing license headers to test programs for external libraries.
diego
parents: 30170
diff changeset
9 * the Free Software Foundation; either version 2 of the License, or
fee09b258e8a Add missing license headers to test programs for external libraries.
diego
parents: 30170
diff changeset
10 * (at your option) any later version.
fee09b258e8a Add missing license headers to test programs for external libraries.
diego
parents: 30170
diff changeset
11 *
fee09b258e8a Add missing license headers to test programs for external libraries.
diego
parents: 30170
diff changeset
12 * MPlayer is distributed in the hope that it will be useful,
fee09b258e8a Add missing license headers to test programs for external libraries.
diego
parents: 30170
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
fee09b258e8a Add missing license headers to test programs for external libraries.
diego
parents: 30170
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
fee09b258e8a Add missing license headers to test programs for external libraries.
diego
parents: 30170
diff changeset
15 * GNU General Public License for more details.
fee09b258e8a Add missing license headers to test programs for external libraries.
diego
parents: 30170
diff changeset
16 *
fee09b258e8a Add missing license headers to test programs for external libraries.
diego
parents: 30170
diff changeset
17 * You should have received a copy of the GNU General Public License along
fee09b258e8a Add missing license headers to test programs for external libraries.
diego
parents: 30170
diff changeset
18 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
fee09b258e8a Add missing license headers to test programs for external libraries.
diego
parents: 30170
diff changeset
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
5209
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
20 */
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
21
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
22 #include <stdio.h>
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
23 #include <stdlib.h>
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
24 #include <string.h>
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
25
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
26 #include "qtxsdk/components.h"
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
27 #include "qtxsdk/select.h"
30170
008338d7679f Drop -Iloader from CPPFLAGS for the loader subdirectory.
diego
parents: 29263
diff changeset
28 #include "loader/ldt_keeper.h"
31344
5d0b3552ea01 Replace forward declarations by loader/wine/winbase.h #include.
diego
parents: 31342
diff changeset
29 #include "loader/wine/winbase.h"
5209
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
30
28599
3ff0da40013d cosmetics: Replace unused 'argc/argv' in main declarations by 'void'.
diego
parents: 26538
diff changeset
31 int main(void) {
5209
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
32 void *handler;
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
33 ComponentDescription desc;
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
34 Component (*FindNextComponent)(Component prev,ComponentDescription* desc);
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
35 long (*CountComponents)(ComponentDescription* desc);
5211
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
36 OSErr (*InitializeQTML)(long flags);
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
37 OSErr (*EnterMovies)(void);
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
38 OSErr ret;
5209
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
39
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
40 Setup_LDT_Keeper();
25593
96ce0ca753ff /usr/lib/win32 --> /usr/local/lib/codecs
diego
parents: 25592
diff changeset
41 handler = LoadLibraryA("/usr/local/lib/codecs/qtmlClient.dll");
5211
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
42 printf("***************************\n");
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
43 InitializeQTML = 0x1000c870; //GetProcAddress(handler, "InitializeQTML");
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
44 EnterMovies = 0x10003ac0; //GetProcAddress(handler, "EnterMovies");
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
45 FindNextComponent = 0x1000d5f0; //GetProcAddress(handler, "FindNextComponent");
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
46 CountComponents = 0x1000d5d0; //GetProcAddress(handler, "CountComponents");
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
47 // = GetProcAddress(handler, "");
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
48 printf("handler: %p, funcs: %p %p %p, %p\n", handler, InitializeQTML, EnterMovies, FindNextComponent,CountComponents);
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
49
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
50 ret=InitializeQTML(0);
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
51 printf("InitializeQTML->%d\n",ret);
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
52 ret=EnterMovies();
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
53 printf("EnterMovies->%d\n",ret);
5209
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
54
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
55 memset(&desc,0,sizeof(desc));
5211
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
56 desc.componentType= (((unsigned char)'S')<<24)|
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
57 (((unsigned char)'V')<<16)|
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
58 (((unsigned char)'Q')<<8)|
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
59 (((unsigned char)'5'));
5209
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
60 desc.componentSubType=0;
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
61 desc.componentManufacturer=0;
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
62 desc.componentFlags=0;
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
63 desc.componentFlagsMask=0;
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 28599
diff changeset
64
26529
75c404032a70 Adjust printf length modifier, fixes the warning:
diego
parents: 25593
diff changeset
65 printf("Count = %ld\n",CountComponents(&desc));
26538
1b05ff23d572 Remove calls to Restore_LDT_Keeper, exit() is called immediately afterwards
diego
parents: 26537
diff changeset
66
5209
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
67 exit(0);
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
68 }