mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Add documentation for shell_execute
and kill_process
functions
This commit is contained in:
parent
725ebc929e
commit
4d206ffab3
|
@ -2517,26 +2517,23 @@ typedef pid_t PROCESS;
|
|||
constexpr PROCESS INVALID_PROCESS = 0;
|
||||
#endif
|
||||
|
||||
/*
|
||||
Function: shell_execute
|
||||
Executes a given file.
|
||||
|
||||
Returns:
|
||||
handle/pid of the new process
|
||||
*/
|
||||
/**
|
||||
* Executes a given file.
|
||||
*
|
||||
* @param file The file to execute.
|
||||
*
|
||||
* @return Handle of the new process, or `INVALID_PROCESS` on error.
|
||||
*/
|
||||
PROCESS shell_execute(const char *file);
|
||||
|
||||
/*
|
||||
Function: kill_process
|
||||
Sends kill signal to a process.
|
||||
|
||||
Parameters:
|
||||
process - handle/pid of the process
|
||||
|
||||
Returns:
|
||||
0 - Error
|
||||
1 - Success
|
||||
*/
|
||||
/**
|
||||
* Sends kill signal to a process.
|
||||
*
|
||||
* @param process Handle of the process to kill.
|
||||
*
|
||||
* @return 1 on success, 0 on error.
|
||||
*/
|
||||
int kill_process(PROCESS process);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue