MangoHud/src/notify.h

22 lines
397 B
C
Raw Normal View History

#pragma once
#ifndef MANGOHUD_NOTIFY_H
#define MANGOHUD_NOTIFY_H
#include <thread>
#include <mutex>
2020-03-16 15:48:12 +00:00
#include "overlay_params.h"
struct notify_thread
{
int fd = -1, wd = -1;
overlay_params *params = nullptr;
bool quit = false;
std::mutex mutex;
std::thread thread;
};
bool start_notifier(notify_thread& nt);
void stop_notifier(notify_thread& nt);
#endif //MANGOHUD_NOTIFY_H