Re-sync with internal repository
[hiphop-php.git] / third-party / thrift / src / thrift / compiler / test / fixtures / namespace / gen-py3 / hsmodule / services_wrapper.h
blob07ef799553fff5617febd06e52aca644616f60aa
1 /**
2 * Autogenerated by Thrift
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 * @generated
6 */
8 #pragma once
9 #if __has_include(<gen-cpp2/HsTestService.h>)
10 #include <gen-cpp2/HsTestService.h>
11 #else
12 #include <gen-cpp2/hsmodule_handlers.h>
13 #endif
14 #include <folly/python/futures.h>
15 #include <Python.h>
17 #include <memory>
19 namespace cpp2 {
21 class HsTestServiceWrapper : virtual public HsTestServiceSvIf {
22 protected:
23 PyObject *if_object;
24 folly::Executor *executor;
25 public:
26 explicit HsTestServiceWrapper(PyObject *if_object, folly::Executor *exc);
27 void async_tm_init(std::unique_ptr<apache::thrift::HandlerCallback<int64_t>> callback
28 , int64_t int1
29 ) override;
30 folly::SemiFuture<folly::Unit> semifuture_onStartServing() override;
31 folly::SemiFuture<folly::Unit> semifuture_onStopRequested() override;
34 std::shared_ptr<apache::thrift::ServerInterface> HsTestServiceInterface(PyObject *if_object, folly::Executor *exc);
35 } // namespace cpp2