ObjFW  Diff

Differences From Artifact [6ab46f1eca]:

To Artifact [cb05d48dd9]:


20
21
22
23
24
25
26

27
28
29
30
31
32
33
34
35
36
37
38
39
20
21
22
23
24
25
26
27
28
29
30
31
32

33
34
35
36
37
38
39







+





-







#ifndef __STDC_CONSTANT_MACROS
# define __STDC_CONSTANT_MACROS
#endif

#include <sys/types.h>

#import "OFStream.h"
#import "OFString.h"

#ifdef _WIN32
# include <windows.h>
#endif

@class OFString;
@class OFArray;
@class OFDictionary;

/*!
 * @brief A class for stream-like communication with a newly created process.
 */
@interface OFProcess: OFStream
163
164
165
166
167
168
169
170

171
172
173
174
175
176
177
178
179
180
181
163
164
165
166
167
168
169

170
171
172
173
174
175
176
177
178
179
180
181







-
+











      programName: (OFString*)programName
	arguments: (OFArray*)arguments
      environment: (OFDictionary*)environment;

#ifndef _WIN32
- (char**)OF_environmentForDictionary: (OFDictionary*)dictionary;
#else
- (uint16_t*)OF_environmentForDictionary: (OFDictionary*)dictionary;
- (of_char16_t*)OF_environmentForDictionary: (OFDictionary*)dictionary;
#endif

/*!
 * @brief Closes the write direction of the process.
 *
 * This method needs to be called for some programs before data can be read,
 * since some programs don't start processing before the write direction is
 * closed.
 */
- (void)closeForWriting;
@end