1
0
mirror of https://github.com/CPunch/Laika.git synced 2025-09-27 12:20:07 +00:00

Deprecated panel, added shell, lrsa.h -> lsodium.h

- Refactoring
This commit is contained in:
2022-02-24 22:13:05 -06:00
parent 5c31fb861b
commit c092d5a9a0
25 changed files with 808 additions and 40 deletions

View File

@@ -6,7 +6,7 @@
#include "lsocket.h"
#include "lpeer.h"
#include "lpolllist.h"
#include "lrsa.h"
#include "lsodium.h"
struct sLaika_shell;
struct sLaika_bot {

View File

@@ -1,5 +1,5 @@
#include "lmem.h"
#include "lrsa.h"
#include "lsodium.h"
#include "lerror.h"
#include "bot.h"
#include "shell.h"
@@ -135,6 +135,7 @@ bool laikaB_poll(struct sLaika_bot *bot, int timeout) {
struct sLaika_pollEvent *evnt;
int numEvents;
/* flush any events prior (eg. made by a task) */
laikaB_flushQueue(bot);
evnt = laikaP_poll(&bot->pList, timeout, &numEvents);
@@ -155,6 +156,7 @@ _BOTKILL:
laikaS_kill(&bot->peer->sock);
LAIKA_TRYEND
/* flush any events after (eg. made by a packet handler) */
laikaB_flushQueue(bot);
return true;
}