blob: 220eeadf83e1bc84561e23cb645db72c9b0820b1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/*
* Copyright (c) 2023 Egor Tensin <Egor.Tensin@gmail.com>
* This file is part of the "cimple" project.
* For details, see https://github.com/egor-tensin/cimple.
* Distributed under the MIT License.
*/
#ifndef __PROTOCOL_H__
#define __PROTOCOL_H__
#include "json_rpc.h"
#include "process.h"
#include "run_queue.h"
int request_create_queue_run(struct jsonrpc_request **, const struct run *);
int request_parse_queue_run(const struct jsonrpc_request *, struct run **);
int request_create_new_worker(struct jsonrpc_request **);
int request_parse_new_worker(const struct jsonrpc_request *);
int request_create_start_run(struct jsonrpc_request **, const struct run *);
int request_parse_start_run(const struct jsonrpc_request *, struct run **);
int request_create_finished_run(struct jsonrpc_request **, int run_id, const struct proc_output *);
int request_parse_finished_run(const struct jsonrpc_request *, int *run_id, struct proc_output **);
#endif
|