Brandon Williams | ed10cb9 | 2018-03-15 10:31:19 -0700 | [diff] [blame] | 1 | #ifndef SERVE_H |
| 2 | #define SERVE_H |
| 3 | |
| 4 | struct argv_array; |
Denton Liu | 5545442 | 2019-04-29 04:28:14 -0400 | [diff] [blame] | 5 | int has_capability(const struct argv_array *keys, const char *capability, |
Denton Liu | ad6dad0 | 2019-04-29 04:28:23 -0400 | [diff] [blame] | 6 | const char **value); |
Brandon Williams | ed10cb9 | 2018-03-15 10:31:19 -0700 | [diff] [blame] | 7 | |
| 8 | struct serve_options { |
| 9 | unsigned advertise_capabilities; |
| 10 | unsigned stateless_rpc; |
| 11 | }; |
| 12 | #define SERVE_OPTIONS_INIT { 0 } |
Denton Liu | 5545442 | 2019-04-29 04:28:14 -0400 | [diff] [blame] | 13 | void serve(struct serve_options *options); |
Brandon Williams | ed10cb9 | 2018-03-15 10:31:19 -0700 | [diff] [blame] | 14 | |
| 15 | #endif /* SERVE_H */ |