]> git.ozlabs.org Git - yaboot.git/blobdiff - include/file.h
Commit yaboot 1.3.4-pre1
[yaboot.git] / include / file.h
index c68d84f66eeec8e0cbd08efd7806fc2923450a79..03c5c6fe3e40877d317237b17196503384cb8e7a 100644 (file)
@@ -31,18 +31,6 @@ struct boot_file_t;
 
 #define FILE_MAX_PATH          1024
 
-/* Simple error codes */
-#define FILE_ERR_OK            0
-#define FILE_ERR_EOF           -1
-#define FILE_ERR_NOTFOUND      -2
-#define FILE_CANT_SEEK         -3
-#define FILE_IOERR             -4
-#define FILE_BAD_PATH          -5
-#define FILE_ERR_BAD_TYPE       -6
-#define FILE_ERR_BAD_FSYS       -7
-#define FILE_ERR_SYMLINK_LOOP   -8
-#define FILE_ERR_LENGTH         -9
-
 /* Device kind */
 #define FILE_DEVICE_BLOCK      1
 #define FILE_DEVICE_NET                2
@@ -73,9 +61,15 @@ struct boot_file_t {
 //     unsigned int    part_count;
 };
 
-extern int open_file(  const struct boot_fspec_t*      spec,
-                       struct boot_file_t*             file);
+extern int
+open_file(const struct boot_fspec_t*   spec,
+         struct boot_file_t*           file);
+
+extern int
+parse_device_path(char *imagepath, char *defdevice, int defpart,
+                 char *deffile, struct boot_fspec_t *result);
 
+#if 0
 extern int validate_fspec(
                        struct boot_fspec_t*    spec,
                        char*                   default_device,
@@ -84,7 +78,7 @@ extern char *parse_device_path(
                        char*                   of_device,
                        char**                  file_spec,
                        int*                    partition);
-
+#endif
 
 
 #endif