various: encapsulate all code in the olive namespace to avoid name collisions

Large-scale code cleanup. Also adds a license to the top of all files that were
missing it.
This commit is contained in:
itsmattkc
2020-04-06 15:29:53 +10:00
parent 82b6ddccc8
commit 1aa87cbda6
519 changed files with 7939 additions and 158 deletions
+5 -5
View File
@@ -40,8 +40,8 @@ extern "C" {
#include "common/debug.h"
int main(int argc, char *argv[]) {
signal(SIGSEGV, crash_handler);
signal(SIGABRT, crash_handler);
signal(SIGSEGV, OLIVE_NAMESPACE::crash_handler);
signal(SIGABRT, OLIVE_NAMESPACE::crash_handler);
// Set OpenGL display profile (3.2 Core)
QSurfaceFormat format;
@@ -75,7 +75,7 @@ int main(int argc, char *argv[]) {
#endif
// Set up debug handler
qInstallMessageHandler(DebugHandler);
qInstallMessageHandler(OLIVE_NAMESPACE::DebugHandler);
// Register FFmpeg codecs and filters (deprecated in 4.0+)
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58, 9, 100)
@@ -86,13 +86,13 @@ int main(int argc, char *argv[]) {
#endif
// Start core
Core::instance()->Start();
OLIVE_NAMESPACE::Core::instance()->Start();
// Run application loop and receive exit code
int exit_code = a.exec();
// Clear core memory
Core::instance()->Stop();
OLIVE_NAMESPACE::Core::instance()->Stop();
return exit_code;
}