wininet: Support the Cache-Control max-age directive for setting url cache entry...
[wine/testsucceed.git] / dlls / wineqtdecoder / main.c
blobd209bdb46079dc9e27180f6718d34ec5f490be47
1 /*
2 * DirectShow filter for QuickTime Toolkit on Mac OS X
4 * Copyright (C) 2010 Aric Stewart, CodeWeavers
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #include "config.h"
22 #include <assert.h>
23 #include <stdio.h>
24 #include <stdarg.h>
26 #define COBJMACROS
27 #define NONAMELESSSTRUCT
28 #define NONAMELESSUNION
30 #include "windef.h"
31 #include "winbase.h"
32 #include "wingdi.h"
33 #include "winerror.h"
34 #include "objbase.h"
35 #include "uuids.h"
36 #include "strmif.h"
38 #include "wine/unicode.h"
39 #include "wine/debug.h"
40 #include "wine/strmbase.h"
42 #include "initguid.h"
43 DEFINE_GUID(CLSID_QTVDecoder, 0x683DDACB, 0x4354, 0x490C, 0xA0,0x58, 0xE0,0x5A,0xD0,0xF2,0x05,0x37);
45 WINE_DEFAULT_DEBUG_CHANNEL(qtdecoder);
47 extern IUnknown * CALLBACK QTVDecoder_create(IUnknown * pUnkOuter, HRESULT* phr);
49 static const WCHAR wQTVName[] =
50 {'Q','T',' ','V','i','d','e','o',' ','D','e','c','o','d','e','r',0};
51 static WCHAR wNull[] = {'\0'};
53 static const AMOVIESETUP_MEDIATYPE amfMTvideo[] =
54 { { &MEDIATYPE_Video, &MEDIASUBTYPE_NULL } };
56 static const AMOVIESETUP_PIN amfQTVPin[] =
57 { { wNull,
58 FALSE, FALSE, FALSE, FALSE,
59 &GUID_NULL,
60 NULL,
62 amfMTvideo
65 wNull,
66 FALSE, TRUE, FALSE, FALSE,
67 &GUID_NULL,
68 NULL,
70 amfMTvideo
74 static const AMOVIESETUP_FILTER amfQTV =
75 { &CLSID_QTVDecoder,
76 wQTVName,
77 MERIT_NORMAL,
79 amfQTVPin
82 FactoryTemplate const g_Templates[] = {
84 wQTVName,
85 &CLSID_QTVDecoder,
86 QTVDecoder_create,
87 NULL,
88 &amfQTV,
92 int g_cTemplates = sizeof(g_Templates) / sizeof(g_Templates[0]);
94 /***********************************************************************
95 * Dll EntryPoint (wineqtdecoder.@)
97 BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
99 return STRMBASE_DllMain(hInstDLL,fdwReason,lpv);
102 /***********************************************************************
103 * DllGetClassObject
105 HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
107 return STRMBASE_DllGetClassObject( rclsid, riid, ppv );
110 /***********************************************************************
111 * DllRegisterServer (wineqtdecoder.@)
113 HRESULT WINAPI DllRegisterServer(void)
115 TRACE("()\n");
116 return AMovieDllRegisterServer2(TRUE);
119 /***********************************************************************
120 * DllUnregisterServer (wineqtdecoder.@)
122 HRESULT WINAPI DllUnregisterServer(void)
124 TRACE("\n");
125 return AMovieDllRegisterServer2(FALSE);
128 /***********************************************************************
129 * DllCanUnloadNow (wineqtdecoder.@)
131 HRESULT WINAPI DllCanUnloadNow(void)
133 TRACE("\n");
134 return STRMBASE_DllCanUnloadNow();