Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kProcess.h
Go to the documentation of this file.
1
11 #ifndef K_API_PROCESS_H
12 #define K_API_PROCESS_H
13
14 #include <kApi/kApiDef.h>
15
27 //typedef kObject kProcess; --forward-declared in kApiDef.x.h
28
29
46 kFx(kStatus) kProcess_Construct(kProcess* process, const kChar* path, kAlloc allocator);
47
56 kFx(kStatus) kProcess_AddArgument(kProcess process, const kChar* argument);
57
67 kFx(kStatus) kProcess_AddArguments(kProcess process, const kChar* arguments[], kSize argCount);
68
76 kFx(kStatus) kProcess_ClearArguments(kProcess process);
77
89 kFx(kStatus) kProcess_Start(kProcess process);
90
98 kFx(kBool) kProcess_IsAlive(kProcess process);
99
112 kFx(kStatus) kProcess_Wait(kProcess process, k64u timeout, k64s* exitCode);
113
124 kFx(kStream) kProcess_StdIn(kProcess process);
125
136 kFx(kStream) kProcess_StdOut(kProcess process);
137
148 kFx(kStream) kProcess_StdErr(kProcess process);
149
150 #include <kApi/Utils/kProcess.x.h>
151
152 #endif
k64u
Represents a 64-bit unsigned integer.
kProcess::kProcess_Construct
kStatus kProcess_Construct(kProcess *process, const kChar *path, kAlloc allocator)
Constructs a kProcess object.
kSize
Represents an unsigned integer that can store a pointer address.
kAlloc
Abstract base class for memory allocator types.
kChar
Represents a single unit (byte) in a UTF-8 character.
kProcess::kProcess_StdOut
kStream kProcess_StdOut(kProcess process)
Returns the stdout of the process as kStream.
kProcess::kProcess_StdIn
kStream kProcess_StdIn(kProcess process)
Returns the stdin of the process as kStream.
kProcess::kProcess_IsAlive
kBool kProcess_IsAlive(kProcess process)
Determines if the process is still alive.
kApiDef.h
Core Zen type declarations.
kStream
Represents an I/O stream.
k64s
Represents a 64-bit signed integer.
kProcess::kProcess_AddArguments
kStatus kProcess_AddArguments(kProcess process, const kChar *arguments[], kSize argCount)
Adds an array of arguments.
kProcess
Represents a process.
kProcess::kProcess_StdErr
kStream kProcess_StdErr(kProcess process)
Returns the stderr of the process as kStream.
kProcess::kProcess_Wait
kStatus kProcess_Wait(kProcess process, k64u timeout, k64s *exitCode)
Waits for child process completion, otherwise terminates child after the timeout. ...
kProcess::kProcess_Start
kStatus kProcess_Start(kProcess process)
Starts the new process.
kStatus
Represents an error code.
kProcess::kProcess_AddArgument
kStatus kProcess_AddArgument(kProcess process, const kChar *argument)
Adds an argument.
kProcess::kProcess_ClearArguments
kStatus kProcess_ClearArguments(kProcess process)
Deletes all arguments.
kBool
Represents a boolean value.