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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user