Skip to content

Commit

Permalink
Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Aang23 committed May 18, 2024
1 parent 3c0e9ea commit 65bcb09
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions src-interface/main_ui.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define SATDUMP_DLL_EXPORT 1
#include "main_ui.h"
#include "imgui/imgui_flags.h"
#include "imgui/imgui.h"
Expand Down Expand Up @@ -26,11 +27,11 @@ ImageViewWidget ivw;

namespace satdump
{
std::shared_ptr<RecorderApplication> recorder_app;
std::shared_ptr<ViewerApplication> viewer_app;
SATDUMP_DLL std::shared_ptr<RecorderApplication> recorder_app;
SATDUMP_DLL std::shared_ptr<ViewerApplication> viewer_app;
std::vector<std::shared_ptr<Application>> other_apps;

bool update_ui = true;
SATDUMP_DLL bool update_ui = true;
bool in_app = false; // true;
bool open_recorder;

Expand Down Expand Up @@ -216,5 +217,5 @@ namespace satdump
backend::endFrame();
}

ctpl::thread_pool ui_thread_pool(8);
SATDUMP_DLL ctpl::thread_pool ui_thread_pool(8);
}
9 changes: 5 additions & 4 deletions src-interface/main_ui.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include "dll_export.h"
#include <string>
#include "libs/ctpl/ctpl_stl.h"
#include "app.h"
Expand All @@ -9,11 +10,11 @@

namespace satdump
{
extern bool update_ui;
extern ctpl::thread_pool ui_thread_pool;
SATDUMP_DLL extern bool update_ui;
SATDUMP_DLL extern ctpl::thread_pool ui_thread_pool;

extern std::shared_ptr<RecorderApplication> recorder_app;
extern std::shared_ptr<ViewerApplication> viewer_app;
SATDUMP_DLL extern std::shared_ptr<RecorderApplication> recorder_app;
SATDUMP_DLL extern std::shared_ptr<ViewerApplication> viewer_app;

void initMainUI();
void exitMainUI();
Expand Down

0 comments on commit 65bcb09

Please sign in to comment.