Anklang-0.3.0.dev835+g24d8ae08
anklang-0.3.0.dev835+g24d8ae08
ASE — Anklang Sound Engine (C++)
« « « Anklang Documentation
Loading...
Searching...
No Matches
ase
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
7
namespace
Ase
{
8
9
enum class
WebuiFlags :
uint32_t
{
10
NONE = 0,
11
HEADLESS = 1 << 0,
12
STDIO_REDIRECT = 1 << 1,
13
CONSOLE_LOGS = 1 << 2,
14
};
15
ASE_DEFINE_FLAGS_ARITHMETIC (WebuiFlags);
16
17
ErrorReason 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
19
String
webui_create_auth_redirect (
const
std::string
&executable,
unsigned
port,
const
std::string
&token,
const
std::string
&snapmode =
""
);
20
21
}
// Ase
atquit.hh
std::string
cxxaux.hh
std::function
Ase
The Anklang C++ API namespace.
Definition
api.hh:9
Ase::String
std::string String
Convenience alias for std::string.
Definition
cxxaux.hh:35
uint32_t
typedef uint32_t
« « « Anklang Documentation