Line data Source code
1 : #pragma once
2 :
3 : #include <prefixdb/api/common_status.hpp>
4 : #include <memory>
5 : #include <string>
6 :
7 : namespace wamba { namespace prefixdb {
8 :
9 : namespace request
10 : {
11 : struct get_all_prefixes
12 : {
13 : typedef std::unique_ptr<get_all_prefixes> ptr;
14 : };
15 : }
16 :
17 : namespace response
18 : {
19 0 : struct get_all_prefixes
20 : {
21 : typedef std::vector<std::string> prefix_list;
22 : prefix_list prefixes;
23 : common_status status = common_status::OK;
24 :
25 : typedef std::unique_ptr<get_all_prefixes> ptr;
26 : typedef std::function< void(ptr) > handler;
27 : };
28 :
29 : }
30 :
31 : }}
|