nshell/src/job.h

20 lines
391 B
C
Raw Normal View History

2021-09-12 20:34:21 +02:00
#ifndef UNS_JOB_H
#define UNS_JOB_H
#include <stdint.h>
#include <wren.h>
#define UNS_MAX_JOBS 128
extern WrenVM *job_vms[UNS_MAX_JOBS];
extern void *job_stacks[UNS_MAX_JOBS];
extern int current_job_id;
2021-09-13 23:17:06 +02:00
int job_start(const char *name, const char *source);
2021-09-15 18:59:59 +02:00
void job_GC(int job_id);
2021-09-12 20:34:21 +02:00
void job_resume(int job_id);
void job_free(int job_id);
void next_job(void);
#endif // #ifndef UNS_JOB_H