1
0
mirror of https://github.com/CPunch/Laika.git synced 2026-02-05 07:50:03 +00:00

Lib: Minor refactoring, boilerplate content packet handlers

- content contexts now have events
- minor comments
This commit is contained in:
2022-05-18 12:04:19 -05:00
parent 83002faa62
commit 3e60cc3c0f
5 changed files with 130 additions and 80 deletions

View File

@@ -2,6 +2,8 @@
#include "lmem.h"
#include "lpolllist.h"
/* ===========================================[[ Helper Functions ]]============================================= */
typedef struct sLaika_hashMapElem {
SOCKET fd;
struct sLaika_socket *sock;
@@ -19,6 +21,8 @@ uint64_t elem_hash(const void *item, uint64_t seed0, uint64_t seed1) {
return (uint64_t)(u->fd);
}
/* ==============================================[[ PollList API ]]============================================== */
void laikaP_initPList(struct sLaika_pollList *pList) {
laikaS_init();