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 0 : struct continue_background
12 : {
13 : typedef std::vector<std::string> prefix_list;
14 : // Пустой список - все префиксы
15 : prefix_list prefixes;
16 : bool force = false;
17 : typedef std::unique_ptr<continue_background> ptr;
18 : };
19 : }
20 :
21 : namespace response
22 : {
23 0 : struct continue_background
24 : {
25 : common_status status = common_status::OK;
26 : typedef std::unique_ptr<continue_background> ptr;
27 : typedef std::function< void(ptr) > handler;
28 : };
29 : }
30 :
31 : }}
|