| 1 | #ifndef _GI_GLIB_MAINLOOP_EXTRA_DEF_HPP_ |
| 2 | #define _GI_GLIB_MAINLOOP_EXTRA_DEF_HPP_ |
| 3 | |
| 4 | namespace gi |
| 5 | { |
| 6 | namespace repository |
| 7 | { |
| 8 | namespace GLib |
| 9 | { |
| 10 | namespace base |
| 11 | { |
| 12 | class MainLoopExtra : public GI_GLIB_MAINLOOP_BASE |
| 13 | { |
| 14 | typedef GI_GLIB_MAINLOOP_BASE super; |
| 15 | |
| 16 | public: |
| 17 | // preserve existing |
| 18 | using super::new_; |
| 19 | |
| 20 | // add another convenience one |
| 21 | static GI_INLINE_DECL gi::rv<GLib::MainLoop>::type new_() |
| 22 | GI_NOEXCEPT_DECL(true); |
| 23 | |
| 24 | }; // class |
| 25 | |
| 26 | #undef GI_GLIB_MAINLOOP_BASE |
| 27 | #define GI_GLIB_MAINLOOP_BASE base::MainLoopExtra |
| 28 | |
| 29 | } // namespace base |
| 30 | |
| 31 | } // namespace GLib |
| 32 | |
| 33 | } // namespace repository |
| 34 | |
| 35 | } // namespace gi |
| 36 | |
| 37 | #endif |