Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c349a34e
Commit
c349a34e
authored
Jun 14, 2011
by
Andrew Nguyen
Committed by
Alexandre Julliard
Jun 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxdiag: Introduce the information collection infrastructure.
parent
4122cf2d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
56 additions
and
3 deletions
+56
-3
Makefile.in
programs/dxdiag/Makefile.in
+1
-0
dxdiag_private.h
programs/dxdiag/dxdiag_private.h
+7
-1
information.c
programs/dxdiag/information.c
+36
-0
main.c
programs/dxdiag/main.c
+11
-1
output.c
programs/dxdiag/output.c
+1
-1
No files found.
programs/dxdiag/Makefile.in
View file @
c349a34e
...
...
@@ -4,6 +4,7 @@ APPMODE = -mwindows -municode
IMPORTS
=
user32
C_SRCS
=
\
information.c
\
main.c
\
output.c
...
...
programs/dxdiag/dxdiag_private.h
View file @
c349a34e
...
...
@@ -26,6 +26,12 @@
#define STRING_DXDIAG_TOOL 101
#define STRING_USAGE 102
/* Information collection definitions. */
struct
dxdiag_information
;
struct
dxdiag_information
*
collect_dxdiag_information
(
BOOL
whql_check
);
void
free_dxdiag_information
(
struct
dxdiag_information
*
dxdiag_info
);
/* Output backend definitions. */
enum
output_type
{
...
...
@@ -50,4 +56,4 @@ static inline const char *debugstr_output_type(enum output_type type)
}
const
WCHAR
*
get_output_extension
(
enum
output_type
type
);
BOOL
output_dxdiag_information
(
const
WCHAR
*
filename
,
enum
output_type
type
);
BOOL
output_dxdiag_information
(
struct
dxdiag_information
*
dxdiag_info
,
const
WCHAR
*
filename
,
enum
output_type
type
);
programs/dxdiag/information.c
0 → 100644
View file @
c349a34e
/*
* DxDiag information collection
*
* Copyright 2011 Andrew Nguyen
*
* 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 "wine/debug.h"
#include "dxdiag_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
dxdiag
);
void
free_dxdiag_information
(
struct
dxdiag_information
*
system_info
)
{
/* Do nothing for now. */
}
struct
dxdiag_information
*
collect_dxdiag_information
(
BOOL
whql_check
)
{
WINE_FIXME
(
"DxDiag information collection is not implemented
\n
"
);
return
NULL
;
}
programs/dxdiag/main.c
View file @
c349a34e
...
...
@@ -174,6 +174,7 @@ static BOOL process_command_line(const WCHAR *cmdline, struct command_line_info
int
WINAPI
wWinMain
(
HINSTANCE
hInst
,
HINSTANCE
hPrevInst
,
LPWSTR
cmdline
,
int
cmdshow
)
{
struct
command_line_info
info
;
struct
dxdiag_information
*
dxdiag_info
;
hInstance
=
hInst
;
...
...
@@ -185,10 +186,19 @@ int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPWSTR cmdline, int cm
if
(
info
.
output_type
!=
OUTPUT_NONE
)
WINE_TRACE
(
"Output filename: %s
\n
"
,
debugstr_output_type
(
info
.
output_type
));
dxdiag_info
=
collect_dxdiag_information
(
info
.
whql_check
);
if
(
!
dxdiag_info
)
{
WINE_ERR
(
"DxDiag information collection failed
\n
"
);
return
1
;
}
if
(
info
.
output_type
!=
OUTPUT_NONE
)
output_dxdiag_information
(
info
.
outfile
,
info
.
output_type
);
output_dxdiag_information
(
dxdiag_info
,
info
.
outfile
,
info
.
output_type
);
else
WINE_FIXME
(
"Information dialog is not implemented
\n
"
);
free_dxdiag_information
(
dxdiag_info
);
return
0
;
}
programs/dxdiag/output.c
View file @
c349a34e
...
...
@@ -48,7 +48,7 @@ const WCHAR *get_output_extension(enum output_type type)
return
output_backends
[
type
-
1
].
filename_ext
;
}
BOOL
output_dxdiag_information
(
const
WCHAR
*
filename
,
enum
output_type
type
)
BOOL
output_dxdiag_information
(
struct
dxdiag_information
*
dxdiag_info
,
const
WCHAR
*
filename
,
enum
output_type
type
)
{
WINE_FIXME
(
"File information output is not implemented
\n
"
);
return
FALSE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment