You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
558 B
C
20 lines
558 B
C
#ifndef SPAWN_H
|
|
#define SPAWN_H
|
|
|
|
#include <lua.h>
|
|
|
|
#define PROCESS_HANDLE "process"
|
|
struct process;
|
|
struct spawn_params;
|
|
|
|
struct spawn_params *spawn_param_init(lua_State *L);
|
|
void spawn_param_filename(struct spawn_params *p, const char *filename);
|
|
void spawn_param_args(struct spawn_params *p);
|
|
void spawn_param_env(struct spawn_params *p);
|
|
void spawn_param_redirect(struct spawn_params *p, const char *stdname, FILE *f);
|
|
int spawn_param_execute(struct spawn_params *p);
|
|
int process_wait(lua_State *L);
|
|
int process_tostring(lua_State *L);
|
|
|
|
#endif/*SPAWN_H*/
|