A TUI to monitor YouTube channels
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

14 lines
537 B

#pragma once
#include <functional>
#include <string>
struct application_host {
std::function<bool()> quit = nullptr;
std::function<void(const std::string &channel, const std::string &title)> notify_channel_single_video = nullptr;
std::function<void(const std::string &channel, const int count)> notify_channel_multiple_videos = nullptr;
std::function<void(const int channels, const int count)> notify_channels_multiple_videos = nullptr;
};
void run_standalone();
void run_embedded(int pty_fd, application_host *host);