2020-01-12 00:36:56 +01:00
|
|
|
#ifndef SERVE_H
|
|
|
|
#define SERVE_H
|
|
|
|
|
2020-11-21 19:20:35 +01:00
|
|
|
struct strvec;
|
|
|
|
int has_capability(const struct strvec *keys, const char *capability,
|
2020-01-12 00:36:56 +01:00
|
|
|
const char **value);
|
|
|
|
|
|
|
|
struct serve_options {
|
|
|
|
unsigned advertise_capabilities;
|
|
|
|
unsigned stateless_rpc;
|
|
|
|
};
|
|
|
|
#define SERVE_OPTIONS_INIT { 0 }
|
|
|
|
void serve(struct serve_options *options);
|
|
|
|
|
|
|
|
#endif /* SERVE_H */
|