Added espFsInit call

This commit is contained in:
Jindra Dolezy
2015-04-11 00:35:55 +02:00
parent 7e21cbe3ca
commit d8afde3cc1
6 changed files with 59 additions and 12 deletions
+7
View File
@@ -22,6 +22,7 @@ int main(int argc, char **argv) {
char buff[128];
EspFsFile *ef;
off_t size;
EspFsInitResult ir;
if (argc!=3) {
printf("Usage: %s espfs-image file\nExpands file from the espfs-image archive.\n", argv[0]);
@@ -40,6 +41,12 @@ int main(int argc, char **argv) {
exit(1);
}
ir=espFsInit(espFsData);
if (ir != ESPFS_INIT_RESULT_OK) {
printf("Couldn't init espfs filesystem (code %d)\n", ir);
exit(1);
}
ef=espFsOpen(argv[2]);
if (ef==NULL) {
printf("Couldn't find %s in image.\n", argv[2]);
+17
View File
@@ -0,0 +1,17 @@
body {
background-color: #404040;
font-family: sans-serif;
}
#main {
background-color: #d0d0FF;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
border: 2px solid #000000;
width: 800px;
margin: 0 auto;
padding: 20px
}