Lei Zhang : qedit: Skeleton implementation of qedit.dll.
Alexandre Julliard
julliard at winehq.org
Tue Feb 19 13:59:02 CST 2008
Module: wine
Branch: master
Commit: 6de8be71b3b849ab2c510829977ee7f6c33d359c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6de8be71b3b849ab2c510829977ee7f6c33d359c
Author: Lei Zhang <thestig at google.com>
Date: Mon Feb 11 18:07:45 2008 -0800
qedit: Skeleton implementation of qedit.dll.
---
Makefile.in | 2 +
configure | 3 ++
configure.ac | 1 +
dlls/Makefile.in | 1 +
dlls/qedit/Makefile.in | 15 ++++++++++
dlls/qedit/main.c | 65 ++++++++++++++++++++++++++++++++++++++++++++
dlls/qedit/qedit.spec | 4 +++
dlls/qedit/qedit_private.h | 37 +++++++++++++++++++++++++
dlls/qedit/regsvr.c | 46 +++++++++++++++++++++++++++++++
9 files changed, 174 insertions(+), 0 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index 509162d..b6efebe 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -380,6 +380,7 @@ ALL_MAKEFILES = \
dlls/psapi/tests/Makefile \
dlls/pstorec/Makefile \
dlls/qcap/Makefile \
+ dlls/qedit/Makefile \
dlls/qmgr/Makefile \
dlls/qmgrprxy/Makefile \
dlls/quartz/Makefile \
@@ -791,6 +792,7 @@ dlls/psapi/Makefile: dlls/psapi/Makefile.in dlls/Makedll.rules
dlls/psapi/tests/Makefile: dlls/psapi/tests/Makefile.in dlls/Maketest.rules
dlls/pstorec/Makefile: dlls/pstorec/Makefile.in dlls/Makedll.rules
dlls/qcap/Makefile: dlls/qcap/Makefile.in dlls/Makedll.rules
+dlls/qedit/Makefile: dlls/qedit/Makefile.in dlls/Makedll.rules
dlls/qmgr/Makefile: dlls/qmgr/Makefile.in dlls/Makedll.rules
dlls/qmgrprxy/Makefile: dlls/qmgrprxy/Makefile.in dlls/Makedll.rules
dlls/quartz/Makefile: dlls/quartz/Makefile.in dlls/Makedll.rules
diff --git a/configure b/configure
index abf1a71..9ae32d3 100755
--- a/configure
+++ b/configure
@@ -21611,6 +21611,8 @@ ac_config_files="$ac_config_files dlls/pstorec/Makefile"
ac_config_files="$ac_config_files dlls/qcap/Makefile"
+ac_config_files="$ac_config_files dlls/qedit/Makefile"
+
ac_config_files="$ac_config_files dlls/qmgr/Makefile"
ac_config_files="$ac_config_files dlls/qmgrprxy/Makefile"
@@ -22747,6 +22749,7 @@ do
"dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
"dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;;
"dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
+ "dlls/qedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qedit/Makefile" ;;
"dlls/qmgr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qmgr/Makefile" ;;
"dlls/qmgrprxy/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qmgrprxy/Makefile" ;;
"dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
diff --git a/configure.ac b/configure.ac
index d3e5ddc..e2ba38e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1879,6 +1879,7 @@ AC_CONFIG_FILES([dlls/psapi/Makefile])
AC_CONFIG_FILES([dlls/psapi/tests/Makefile])
AC_CONFIG_FILES([dlls/pstorec/Makefile])
AC_CONFIG_FILES([dlls/qcap/Makefile])
+AC_CONFIG_FILES([dlls/qedit/Makefile])
AC_CONFIG_FILES([dlls/qmgr/Makefile])
AC_CONFIG_FILES([dlls/qmgrprxy/Makefile])
AC_CONFIG_FILES([dlls/quartz/Makefile])
diff --git a/dlls/Makefile.in b/dlls/Makefile.in
index 7b0741e..4be9323 100644
--- a/dlls/Makefile.in
+++ b/dlls/Makefile.in
@@ -184,6 +184,7 @@ BASEDIRS = \
psapi \
pstorec \
qcap \
+ qedit \
qmgr \
qmgrprxy \
quartz \
diff --git a/dlls/qedit/Makefile.in b/dlls/qedit/Makefile.in
new file mode 100644
index 0000000..146a05e
--- /dev/null
+++ b/dlls/qedit/Makefile.in
@@ -0,0 +1,15 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR = @srcdir@
+VPATH = @srcdir@
+MODULE = qedit.dll
+IMPORTS = kernel32
+EXTRALIBS =
+
+C_SRCS = \
+ main.c \
+ regsvr.c
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@ # everything below this line is overwritten by make depend
diff --git a/dlls/qedit/main.c b/dlls/qedit/main.c
new file mode 100644
index 0000000..d6e792c
--- /dev/null
+++ b/dlls/qedit/main.c
@@ -0,0 +1,65 @@
+/* DirectShow Editing Services (qedit.dll)
+ *
+ * Copyright 2008 Google (Lei Zhang)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "qedit_private.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(qedit);
+
+BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
+{
+ switch(fdwReason) {
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hInstDLL);
+ break;
+ case DLL_PROCESS_DETACH:
+ break;
+ }
+ return TRUE;
+}
+
+/***********************************************************************
+ * DllCanUnloadNow (QEDIT.@)
+ */
+HRESULT WINAPI DllCanUnloadNow(void)
+{
+ return S_OK;
+}
+
+/*******************************************************************************
+ * DllGetClassObject [QEDIT.@]
+ * Retrieves class object from a DLL object
+ *
+ * PARAMS
+ * rclsid [I] CLSID for the class object
+ * riid [I] Reference to identifier of interface for class object
+ * ppv [O] Address of variable to receive interface pointer for riid
+ *
+ * RETURNS
+ * Success: S_OK
+ * Failure: CLASS_E_CLASSNOTAVAILABLE, E_OUTOFMEMORY, E_INVALIDARG,
+ * E_UNEXPECTED, E_NOINTERFACE
+ */
+
+HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
+{
+ TRACE("(%s,%s,%p)\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
+
+ return E_NOINTERFACE;
+}
diff --git a/dlls/qedit/qedit.spec b/dlls/qedit/qedit.spec
new file mode 100644
index 0000000..b16365d
--- /dev/null
+++ b/dlls/qedit/qedit.spec
@@ -0,0 +1,4 @@
+@ stdcall -private DllCanUnloadNow()
+@ stdcall -private DllGetClassObject(ptr ptr ptr)
+@ stdcall -private DllRegisterServer()
+@ stdcall -private DllUnregisterServer()
diff --git a/dlls/qedit/qedit_private.h b/dlls/qedit/qedit_private.h
new file mode 100644
index 0000000..661e5d9
--- /dev/null
+++ b/dlls/qedit/qedit_private.h
@@ -0,0 +1,37 @@
+/* DirectShow Editing Services (qedit.dll)
+ *
+ * Copyright 2008 Google (Lei Zhang)
+ *
+ * This file contains the (internal) driver registration functions,
+ * driver enumeration APIs and DirectDraw creation functions.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef __QEDIT_PRIVATE_INCLUDED__
+#define __QEDIT_PRIVATE_INCLUDED__
+
+#include <stdarg.h>
+
+#define COBJMACROS
+
+#include "windef.h"
+#include "winbase.h"
+#include "wtypes.h"
+#include "wingdi.h"
+#include "winuser.h"
+#include "dshow.h"
+
+#endif /* __QEDIT_PRIVATE_INCLUDED__ */
diff --git a/dlls/qedit/regsvr.c b/dlls/qedit/regsvr.c
new file mode 100644
index 0000000..e49ab93
--- /dev/null
+++ b/dlls/qedit/regsvr.c
@@ -0,0 +1,46 @@
+/*
+ * self-registerable dll functions for qedit.dll
+ *
+ * Copyright (C) 2008 Google (Lei Zhang)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include <stdarg.h>
+
+#include "winerror.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(qedit);
+
+/***********************************************************************
+ * DllRegisterServer (QEDIT.@)
+ */
+HRESULT WINAPI DllRegisterServer(void)
+{
+ TRACE("\n");
+
+ return S_OK;
+}
+
+/***********************************************************************
+ * DllUnregisterServer (QEDIT.@)
+ */
+HRESULT WINAPI DllUnregisterServer(void)
+{
+ TRACE("\n");
+
+ return S_OK;
+}
More information about the wine-cvs
mailing list