You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
397 B
C++
22 lines
397 B
C++
#pragma once
|
|
#ifndef MANGOHUD_NOTIFY_H
|
|
#define MANGOHUD_NOTIFY_H
|
|
|
|
#include <thread>
|
|
#include <mutex>
|
|
#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
|