summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/stdx/cgi.hpp8
-rw-r--r--lib/stdx/embdfs.hpp20
2 files changed, 20 insertions, 8 deletions
diff --git a/lib/stdx/cgi.hpp b/lib/stdx/cgi.hpp
index 6d50994..5213c15 100644
--- a/lib/stdx/cgi.hpp
+++ b/lib/stdx/cgi.hpp
@@ -30,12 +30,12 @@ namespace stdx
public:
explicit cgi_writer() = default;
- ~cgi_writer() = default;
+ ~cgi_writer() = default;
- cgi_writer& operator=(const cgi_writer&) = default;
- cgi_writer(const cgi_writer&) = default;
+ cgi_writer& operator=(const cgi_writer&) = default;
+ cgi_writer(const cgi_writer&) = default;
- public:
+ public:
cgi_writer& eval_html(const std::stringstream& ss_html)
{
return this->eval_("text/html", ss_html);
diff --git a/lib/stdx/embdfs.hpp b/lib/stdx/embdfs.hpp
index 05e2fc9..5cc8496 100644
--- a/lib/stdx/embdfs.hpp
+++ b/lib/stdx/embdfs.hpp
@@ -12,13 +12,25 @@
#include <cstdint>
#include <cstddef>
-/// @brief A Fail-safe filesystem designed for tiny MCUs.
+/// @brief A Filesystem designed for tiny storage.
/// @author Amlal EL Mahrouss (amlal@nekernel.org)
namespace stdx::freestanding
{
- struct embdfs_superblock;
- struct embdfs_inode;
-}
+ struct embdfs_superblock;
+ struct embdfs_inode;
+
+ /// @brief Superblock data structure
+ struct embdfs_superblock
+ {
+ std::int16_t s_block_mag;
+ std::int32_t s_num_inodes;
+ std::int32_t s_part_size;
+ std::int32_t s_part_used;
+ std::int16_t s_sector_sz;
+ std::uint32_t s_inode_start, s_inode_end;
+ char s_name[16];
+ };
+} // namespace stdx::freestanding
#endif // ifndef _STDX_EMBDFS_HPP \ No newline at end of file