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
f181d5ce
Commit
f181d5ce
authored
Mar 19, 2020
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: Only update protocol version if something changed.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
90233748
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
server_protocol.h
include/wine/server_protocol.h
+4
-0
make_requests
tools/make_requests
+15
-2
No files found.
include/wine/server_protocol.h
View file @
f181d5ce
...
...
@@ -6706,6 +6706,10 @@ union generic_reply
struct
resume_process_reply
resume_process_reply
;
};
/* ### protocol_version begin ### */
#define SERVER_PROTOCOL_VERSION 596
/* ### protocol_version end ### */
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
tools/make_requests
View file @
f181d5ce
...
...
@@ -406,10 +406,23 @@ print SERVER_PROT " struct reply_header reply_header;\n";
foreach
my
$req
(
@requests
)
{
print
SERVER_PROT
" struct ${req}_reply ${req}_reply;\n"
;
}
print
SERVER_PROT
"};\n\n"
;
printf
SERVER_PROT
"#define SERVER_PROTOCOL_VERSION %d\n\n"
,
$protocol
+
1
;
print
SERVER_PROT
"/* ### protocol_version begin ### */\n\n"
;
printf
SERVER_PROT
"#define SERVER_PROTOCOL_VERSION %d\n\n"
,
$protocol
;
print
SERVER_PROT
"/* ### protocol_version end ### */\n\n"
;
print
SERVER_PROT
"#endif /* __WINE_WINE_SERVER_PROTOCOL_H */\n"
;
close
SERVER_PROT
;
update_file
(
"include/wine/server_protocol.h"
);
if
(
update_file
(
"include/wine/server_protocol.h"
))
{
my
@version_lines
=
();
push
@version_lines
,
sprintf
(
"#define SERVER_PROTOCOL_VERSION %d\n"
,
$protocol
+
1
);
replace_in_file
(
"include/wine/server_protocol.h"
,
"### protocol_version begin ###"
,
"### protocol_version end ###"
,
@version_lines
);
}
### Output the dumping function tables
...
...
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