2018-03-15 20:31:19 +03:00
|
|
|
#ifndef SERVE_H
|
|
|
|
#define SERVE_H
|
|
|
|
|
|
|
|
struct argv_array;
|
2019-04-29 11:28:14 +03:00
|
|
|
int has_capability(const struct argv_array *keys, const char *capability,
|
2018-03-15 20:31:19 +03:00
|
|
|
const char **value);
|
|
|
|
|
|
|
|
struct serve_options {
|
|
|
|
unsigned advertise_capabilities;
|
|
|
|
unsigned stateless_rpc;
|
|
|
|
};
|
|
|
|
#define SERVE_OPTIONS_INIT { 0 }
|
2019-04-29 11:28:14 +03:00
|
|
|
void serve(struct serve_options *options);
|
2018-03-15 20:31:19 +03:00
|
|
|
|
|
|
|
#endif /* SERVE_H */
|