Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
LibSymbolsResolver Class Reference

#include <qffmpegsymbolsresolveutils_p.h>

+ Collaboration diagram for LibSymbolsResolver:

Public Types

using FunctionSetter = void (*)(QFunctionPointer)
 
using LibsLoader = Libs (*)()
 

Public Member Functions

 LibSymbolsResolver (const char *libName, size_t symbolsCount, LibsLoader libsLoader)
 
bool resolve ()
 
void registerSymbol (const char *name, FunctionSetter setter)
 

Static Public Member Functions

static void unload (const Libs &libs)
 
static bool tryLoad (const Libs &libs)
 

Detailed Description

Definition at line 30 of file qffmpegsymbolsresolveutils_p.h.

Member Typedef Documentation

◆ FunctionSetter

using LibSymbolsResolver::FunctionSetter = void (*)(QFunctionPointer)

Definition at line 33 of file qffmpegsymbolsresolveutils_p.h.

◆ LibsLoader

Definition at line 34 of file qffmpegsymbolsresolveutils_p.h.

Constructor & Destructor Documentation

◆ LibSymbolsResolver()

LibSymbolsResolver::LibSymbolsResolver ( const char * libName,
size_t symbolsCount,
LibsLoader libsLoader )

Definition at line 14 of file qffmpegsymbolsresolveutils.cpp.

References Q_ASSERT, and symbolsCount.

Member Function Documentation

◆ registerSymbol()

void LibSymbolsResolver::registerSymbol ( const char * name,
FunctionSetter setter )

Definition at line 63 of file qffmpegsymbolsresolveutils.cpp.

References Q_ASSERT, resolve(), and QBasicAtomicInteger< T >::testAndSetRelease().

+ Here is the call graph for this function:

◆ resolve()

bool LibSymbolsResolver::resolve ( )

Definition at line 23 of file qffmpegsymbolsresolveutils.cpp.

References i, Q_ASSERT, qCDebug, qCWarning, qScopeGuard(), resolve(), QBasicAtomicInteger< T >::testAndSetAcquire(), QBasicAtomicInteger< T >::testAndSetRelaxed(), and unload().

Referenced by registerSymbol(), and resolve().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ tryLoad()

bool LibSymbolsResolver::tryLoad ( const Libs & libs)
static

Definition at line 83 of file qffmpegsymbolsresolveutils.cpp.

References load(), and unload().

Referenced by loadLibs(), and loadLibs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unload()

void LibSymbolsResolver::unload ( const Libs & libs)
static

Definition at line 77 of file qffmpegsymbolsresolveutils.cpp.

Referenced by resolve(), and tryLoad().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: