Audacity 3.2.0
Namespaces | Functions | Variables
URLSchemesRegistry.cpp File Reference
#include "URLSchemesRegistry.h"
#include <cassert>
#include <string>
#include <vector>
#include <memory>
Include dependency graph for URLSchemesRegistry.cpp:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{URLSchemesRegistry.cpp}
 

Functions

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

Variables

std::function< bool(std::string_view)> anonymous_namespace{URLSchemesRegistry.cpp}::SchemeRegistrar
 

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.