aboutsummaryrefslogtreecommitdiff
path: root/runloop.h
blob: fc1f7e888f0654bba60a540db3c48f8622ed436a (plain)
1
2
3
4
5
6
7
8
9
10
#pragma once

#include "global.h"


// Return true to remove fd from runloop
typedef bool runloop_callback(int fd);

void runloop_add_fd(int fd,runloop_callback *func);
void runloop_run(void);  // Returns when empty