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.
lokinet/include/llarp/logic.h

30 lines
699 B
C

6 years ago
#ifndef LLARP_LOGIC_H
#define LLARP_LOGIC_H
#include <llarp/threadpool.h>
#include <llarp/timer.h>
#ifdef __cplusplus
extern "C" {
#endif
6 years ago
struct llarp_logic;
6 years ago
6 years ago
struct llarp_logic* llarp_init_logic();
6 years ago
6 years ago
void llarp_free_logic(struct llarp_logic** logic);
6 years ago
6 years ago
void llarp_logic_queue_job(struct llarp_logic* logic,
struct llarp_thread_job job);
6 years ago
6 years ago
uint32_t llarp_logic_call_later(struct llarp_logic* logic,
struct llarp_timeout_job job);
void llarp_logic_cancel_call(struct llarp_logic* logic, uint32_t id);
6 years ago
6 years ago
void llarp_logic_stop(struct llarp_logic* logic);
void llarp_logic_mainloop(struct llarp_logic* logic);
6 years ago
#ifdef __cplusplus
}
#endif
#endif