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