2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
670 B

  1. #ifndef IZ_NET_H
  2. #define IZ_NET_H
  3. #include <minIni.h>
  4. #include "../IZ_common.h"
  5. #include "../IZ_config.h"
  6. #include "core/IZ_websocket.h"
  7. typedef struct {
  8. u16 port;
  9. char name[64];
  10. char motd[128];
  11. } IZ_NetConfig;
  12. typedef struct {
  13. IZ_NetConfig config;
  14. IZ_Websocket ws;
  15. } IZ_NetState;
  16. static IZ_NetState IZ_NET_DEFAULT_STATE = {
  17. .config = {
  18. .port = 42069,
  19. .name = IZ_APP_NAME,
  20. .motd = "",
  21. },
  22. .ws = {
  23. .interrupted = false,
  24. .context = NULL,
  25. .connection = NULL,
  26. .user_data = NULL,
  27. },
  28. };
  29. IZ_ProcedureResult IZ_NetInitialize(IZ_NetState*, void*, const char*, u8, const char**);
  30. IZ_ProcedureResult IZ_NetSaveConfig(IZ_NetState*, const char*);
  31. #endif