| David Tolnay | 7db7369 | 2019-10-20 14:51:12 -0400 | [diff] [blame^] | 1 | #pragma once |
| 2 | #include "../include/cxxbridge.h" | ||||
| 3 | #include <memory> | ||||
| 4 | #include <string> | ||||
| 5 | |||||
| 6 | namespace org { | ||||
| 7 | namespace rust { | ||||
| 8 | |||||
| 9 | class ThingC { | ||||
| 10 | public: | ||||
| 11 | ThingC(std::string appname); | ||||
| 12 | ~ThingC(); | ||||
| 13 | |||||
| 14 | std::string appname; | ||||
| 15 | }; | ||||
| 16 | |||||
| 17 | struct SharedThing; | ||||
| 18 | |||||
| 19 | std::unique_ptr<ThingC> make_demo(cxxbridge::RustStr appname); | ||||
| 20 | const std::string &get_name(const ThingC &thing); | ||||
| 21 | void do_thing(SharedThing state); | ||||
| 22 | |||||
| 23 | } // namespace rust | ||||
| 24 | } // namespace org | ||||