Anklang-0.3.0.dev835+g24d8ae08 anklang-0.3.0.dev835+g24d8ae08
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
webui.hh
Go to the documentation of this file.
1 // This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
2#pragma once
3
4#include <ase/atquit.hh>
5#include <ase/cxxaux.hh>
6
7namespace Ase {
8
9enum class WebuiFlags : uint32_t {
10 NONE = 0,
11 HEADLESS = 1 << 0,
12 STDIO_REDIRECT = 1 << 1,
13 CONSOLE_LOGS = 1 << 2,
14};
15ASE_DEFINE_FLAGS_ARITHMETIC (WebuiFlags);
16
17ErrorReason webui_start_browser (const std::string &mode, LoopP loop, const std::string &url, const std::function<void()> &onclose, WebuiFlags flags = WebuiFlags::NONE);
18// check errno
19String webui_create_auth_redirect (const std::string &executable, unsigned port, const std::string &token, const std::string &snapmode = "");
20
21} // Ase
The Anklang C++ API namespace.
Definition api.hh:9
std::string String
Convenience alias for std::string.
Definition cxxaux.hh:35
typedef uint32_t