Audacity 3.2.0
Functions | Variables
macos/SchemeRegistrar.cpp File Reference
#include <string_view>
#include <functional>
Include dependency graph for macos/SchemeRegistrar.cpp:

Go to the source code of this file.

Functions

void SetSchemaRegistrar (std::function< bool(std::string_view)> registrar)
 

Variables

auto registrar
 

Function Documentation

◆ SetSchemaRegistrar()

void SetSchemaRegistrar ( std::function< bool(std::string_view)>  registrar)

Audacity: A Digital Audio Editor

SchemeRegistrar.cpp

Dmitry Vedenko

Definition at line 25 of file URLSchemesRegistry.cpp.

26{
27 // Only a single registrar is allowed.
28 assert(!SchemeRegistrar);
29
30 SchemeRegistrar = std::move(registrar);
31}
auto registrar
std::function< bool(std::string_view)> SchemeRegistrar

References registrar, and anonymous_namespace{URLSchemesRegistry.cpp}::SchemeRegistrar.

Variable Documentation

◆ registrar

auto registrar
Initial value:
= ([]() {
SetSchemaRegistrar([](std::string_view) { return true; });
return true;
})()
void SetSchemaRegistrar(std::function< bool(std::string_view)> registrar)

Definition at line 17 of file macos/SchemeRegistrar.cpp.

Referenced by SetSchemaRegistrar().