view req.h @ 2:5fa3d2f479b2

sci: initial upload support
author David Demelier <markand@malikania.fr>
date Thu, 10 Jun 2021 10:39:21 +0200
parents 5afdb14df924
children 215c0c3b3609
line wrap: on
line source

#ifndef SCI_REQ_H
#define SCI_REQ_H

#include <stddef.h>

struct req {
	int status;
	char msg[1024];
};

struct worker;
struct project;
struct job;
struct job_result;

int
req_connect(const char *);

struct req
req_job_queue(const struct job *);

struct req
req_job_list(struct job_result *, size_t *, const char *);

struct req
req_job_save(const struct job_result *);

struct req
req_project_add(const struct project *);

struct req
req_project_list(struct project *, size_t *);

struct req
req_script_get(const char *, char *, size_t);

struct req
req_worker_add(const struct worker *);

struct req
req_worker_list(struct worker *, size_t *);

void
req_finish(void);

#endif /* !SCI_REQ_H */