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
068a26e8
Commit
068a26e8
authored
Feb 14, 1999
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved process definitions to include/server/process.h
parent
60742b04
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
70 additions
and
0 deletions
+70
-0
process.h
include/server/process.h
+63
-0
console.c
server/console.c
+1
-0
event.c
server/event.c
+1
-0
file.c
server/file.c
+1
-0
mapping.c
server/mapping.c
+1
-0
mutex.c
server/mutex.c
+1
-0
semaphore.c
server/semaphore.c
+1
-0
thread.c
server/thread.c
+1
-0
No files found.
include/server/process.h
0 → 100644
View file @
068a26e8
/*
* Wine server processes
*
* Copyright (C) 1999 Alexandre Julliard
*/
#ifndef __WINE_SERVER_PROCESS_H
#define __WINE_SERVER_PROCESS_H
#ifndef __WINE_SERVER__
#error This file can only be used in the Wine server
#endif
#include "server/object.h"
/* process structures */
struct
process
;
struct
process_snapshot
{
struct
process
*
process
;
/* process ptr */
struct
process
*
parent
;
/* process parent */
int
threads
;
/* number of threads */
int
priority
;
/* priority class */
};
/* process functions */
extern
struct
process
*
create_process
(
void
);
extern
struct
process
*
get_process_from_id
(
void
*
id
);
extern
struct
process
*
get_process_from_handle
(
int
handle
,
unsigned
int
access
);
extern
void
add_process_thread
(
struct
process
*
process
,
struct
thread
*
thread
);
extern
void
remove_process_thread
(
struct
process
*
process
,
struct
thread
*
thread
);
extern
void
kill_process
(
struct
process
*
process
,
int
exit_code
);
extern
void
get_process_info
(
struct
process
*
process
,
struct
get_process_info_reply
*
reply
);
extern
void
set_process_info
(
struct
process
*
process
,
struct
set_process_info_request
*
req
);
extern
int
alloc_console
(
struct
process
*
process
);
extern
int
free_console
(
struct
process
*
process
);
extern
struct
object
*
get_console
(
struct
process
*
process
,
int
output
);
extern
struct
process_snapshot
*
process_snap
(
int
*
count
);
/* handle functions */
/* alloc_handle takes a void *obj for convenience, but you better make sure */
/* that the thing pointed to starts with a struct object... */
extern
int
alloc_handle
(
struct
process
*
process
,
void
*
obj
,
unsigned
int
access
,
int
inherit
);
extern
int
close_handle
(
struct
process
*
process
,
int
handle
);
extern
int
set_handle_info
(
struct
process
*
process
,
int
handle
,
int
mask
,
int
flags
);
extern
struct
object
*
get_handle_obj
(
struct
process
*
process
,
int
handle
,
unsigned
int
access
,
const
struct
object_ops
*
ops
);
extern
int
duplicate_handle
(
struct
process
*
src
,
int
src_handle
,
struct
process
*
dst
,
int
dst_handle
,
unsigned
int
access
,
int
inherit
,
int
options
);
extern
int
open_object
(
const
char
*
name
,
const
struct
object_ops
*
ops
,
unsigned
int
access
,
int
inherit
);
#endif
/* __WINE_SERVER_PROCESS_H */
server/console.c
View file @
068a26e8
...
...
@@ -23,6 +23,7 @@
#include "winerror.h"
#include "winnt.h"
#include "wincon.h"
#include "server/process.h"
#include "server/thread.h"
struct
screen_buffer
;
...
...
server/event.c
View file @
068a26e8
...
...
@@ -10,6 +10,7 @@
#include "winerror.h"
#include "winnt.h"
#include "server/process.h"
#include "server/thread.h"
struct
event
...
...
server/file.c
View file @
068a26e8
...
...
@@ -19,6 +19,7 @@
#include "winerror.h"
#include "winbase.h"
#include "server/process.h"
#include "server/thread.h"
struct
file
...
...
server/mapping.c
View file @
068a26e8
...
...
@@ -11,6 +11,7 @@
#include "winerror.h"
#include "winnt.h"
#include "server/process.h"
#include "server/thread.h"
struct
mapping
...
...
server/mutex.c
View file @
068a26e8
...
...
@@ -10,6 +10,7 @@
#include "winerror.h"
#include "winnt.h"
#include "server/process.h"
#include "server/thread.h"
struct
mutex
...
...
server/semaphore.c
View file @
068a26e8
...
...
@@ -10,6 +10,7 @@
#include "winerror.h"
#include "winnt.h"
#include "server/process.h"
#include "server/thread.h"
struct
semaphore
...
...
server/thread.c
View file @
068a26e8
...
...
@@ -20,6 +20,7 @@
#include "winerror.h"
#include "server.h"
#include "server/thread.h"
#include "server/process.h"
/* thread queues */
...
...
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