Make namespaces more consistent (#92)

This commit is contained in:
Ken Van Hoeylandt
2024-11-26 18:30:54 +01:00
committed by GitHub
parent ca5d4b8226
commit a312bd5527
75 changed files with 108 additions and 109 deletions
+23
View File
@@ -0,0 +1,23 @@
#pragma once
#include <dirent.h>
#include "lvgl.h"
namespace tt::app::files {
#define MAX_PATH_LENGTH 256
typedef struct {
char current_path[MAX_PATH_LENGTH];
struct dirent** dir_entries;
int dir_entries_count;
lv_obj_t* list;
} Data;
Data* data_alloc();
void data_free(Data* data);
void data_free_entries(Data* data);
bool data_set_entries_for_child_path(Data* data, const char* child_path);
bool data_set_entries_for_path(Data* data, const char* path);
} // namespace