summaryrefslogtreecommitdiffhomepage
path: root/lib/bootnet.h
diff options
context:
space:
mode:
authorAmlal <amlal@nekernel.org>2025-04-25 13:28:08 +0200
committerAmlal <amlal@nekernel.org>2025-04-25 13:28:08 +0200
commit1c8414d3348c55fcf132839a04fdedec5efaacbe (patch)
tree5c7386fae0504a798801e0b34b588f4177ba67c1 /lib/bootnet.h
parentd7e35959ebb6b1dd892a99f23c2a7f23c0f99041 (diff)
dev: refactor codebase.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'lib/bootnet.h')
-rw-r--r--lib/bootnet.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/bootnet.h b/lib/bootnet.h
index 81e0981..cba847c 100644
--- a/lib/bootnet.h
+++ b/lib/bootnet.h
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2025, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2025, Amlal EL Mahrouss, all rights reserved.
------------------------------------------- */
@@ -8,25 +8,25 @@
#include <lib/boot.h>
-#define BOOTNET_INET_MAGIC "NETB"
+#define BOOTNET_INET_MAGIC "NETB"
#define BOOTNET_INET_MAGIC_LEN (4)
#define BOOTNET_NAME_LEN (256)
/// @brief Netboot Internet Header
-/// Consists of 4 magic characters, and a set of fields describing the current patch that's being sent (if m_preflight = 0)
+/// Consists of 4 magic characters, and a set of fields describing the current patch that's being
+/// sent (if m_preflight = 0)
/// @note Can be used to patch ROMs too (if m_implies_rom = 1)
-typedef struct bootnet_inet_header
-{
- ascii_char_t m_nb1; /// magic char 1 'N'
- ascii_char_t m_nb2; /// magic char 2 'E'
- ascii_char_t m_nb3; /// magic char 3 'T'
- ascii_char_t m_nb4; /// magic char 4 'B'
-
- ascii_char_t m_patch_name[BOOTNET_NAME_LEN]; /// example: ColdChoco
- int32_t m_length; /// The patch's length.
- ascii_char_t m_target[BOOTNET_NAME_LEN]; /// The target file.
- uint8_t m_implies_program; /// does it imply reprogramming?
- uint8_t m_preflight; /// Do we just check if this endpoint exists/is valid?
- uint8_t m_blob[];
+typedef struct bootnet_inet_header {
+ ascii_char_t m_nb1; /// magic char 1 'N'
+ ascii_char_t m_nb2; /// magic char 2 'E'
+ ascii_char_t m_nb3; /// magic char 3 'T'
+ ascii_char_t m_nb4; /// magic char 4 'B'
+
+ ascii_char_t m_patch_name[BOOTNET_NAME_LEN]; /// example: ColdChoco
+ int32_t m_length; /// The patch's length.
+ ascii_char_t m_target[BOOTNET_NAME_LEN]; /// The target file.
+ uint8_t m_implies_program; /// does it imply reprogramming?
+ uint8_t m_preflight; /// Do we just check if this endpoint exists/is valid?
+ uint8_t m_blob[];
} bootnet_inet_header;