Audacity 3.2.0
DynamicLibraryHelpers.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 DynamicLibraryHelpers.h
6
7 Dmitry Vedenko
8
9**********************************************************************/
10
11#pragma once
12
13class wxDynamicLibrary;
14struct FFMPegVersion;
15
17#define GET_SYMBOL(name) (lib.HasSymbol(#name) ? functions.name = reinterpret_cast<decltype(functions.name)>(lib.GetSymbol(#name)) : functions.name = nullptr)
19#define RESOLVE(name) if (nullptr == GET_SYMBOL(name)) return false
20
21bool GetAVVersion(
22 const wxDynamicLibrary& lib, const char* name, FFMPegVersion& version);
bool GetAVVersion(const wxDynamicLibrary &lib, const char *name, FFMPegVersion &version)
wxString name
Definition: TagsEditor.cpp:166