File format.
authorgkostka <kostka.grzegorz@gmail.com>
Mon, 7 Oct 2013 20:17:46 +0000 (20:17 +0000)
committergkostka <kostka.grzegorz@gmail.com>
Mon, 7 Oct 2013 20:17:46 +0000 (20:17 +0000)
src/ext4.h

index 70118b8298c13041e36c4bc32c5385467de24017..e4bcc5669da4d082aec503f17358846f6ded2af2 100644 (file)
@@ -102,7 +102,7 @@ struct ext4_lock {
 /********************************FILE DESCRIPTOR********************************/\r
 \r
 /**@brief      File descriptor*/\r
-typedef struct ext4_file {\r
+typedef struct ext4_file {\r
 \r
        /**@brief       Pountpoint handle.*/\r
        struct ext4_mountpoint *mp;\r
@@ -152,18 +152,19 @@ typedef struct  {
        ext4_direntry   de;\r
 }ext4_dir;\r
 \r
-/********************************MOUNT OPERATIONS*******************************/\r
+/********************************MOUNT OPERATIONS*****************************/\r
 \r
 /**@brief      Register a block device to a name.\r
  *                     @warning Block device has to be filled by\r
  *                     @ref EXT4_BLOCKDEV_STATIC_INSTANCE. Block cache may be created\r
- *                     @ref EXT4_BCACHE_STATIC_INSTANCE. But block cache may by created automaticly when\r
- *                     bc parameter is 0.\r
+ *                     @ref EXT4_BCACHE_STATIC_INSTANCE.\r
+ *                     Block cache may by created automaticly when bc parameter is 0.\r
  * @param      bd block device\r
  * @param      bd block device cache (0 = automatic cache mode)\r
  * @param      dev_name register name\r
  * @param      standard error code*/\r
-int                    ext4_device_register(struct ext4_blockdev *bd, struct ext4_bcache *bc, const char *dev_name);\r
+int    ext4_device_register(struct ext4_blockdev *bd, struct ext4_bcache *bc,\r
+                         const char *dev_name);\r
 \r
 /**@brief      Mount a block device with EXT4 partition to the mountpoint.\r
  * @param      dev_name block device name (@ref ext4_device_register)\r
@@ -172,72 +173,72 @@ int                       ext4_device_register(struct ext4_blockdev *bd, struct ext4_bcache *bc, con
  *                     -       /my_second_partition\r
  *\r
  * @return standard error code */\r
-int                    ext4_mount(const char * dev_name,  char *mount_point);\r
+int    ext4_mount(const char * dev_name,  char *mount_point);\r
 \r
 /**@brief      Umount operation.\r
  * @param      mount_point mount name\r
  * @return  standard error code */\r
-int                    ext4_umount(char *mount_point);\r
+int    ext4_umount(char *mount_point);\r
 \r
-/********************************FILE OPERATIONS********************************/\r
+/********************************FILE OPERATIONS******************************/\r
 \r
 /**@brief      */\r
-int                    ext4_fremove(const char *path);\r
+int    ext4_fremove(const char *path);\r
 \r
 /**@brief      File open function.\r
  * @param      filename, (has to start from mountpoint)\r
  *                     /my_partition/my_file\r
  * @param      flags open file flags\r
- *                             |---------------------------------------------------------------|\r
- *                             |       r or rb                                 O_RDONLY                                                        |\r
- *                             |---------------------------------------------------------------|\r
- *                             |       w or wb                                 O_WRONLY|O_CREAT|O_TRUNC                        |\r
- *                             |---------------------------------------------------------------|\r
- *                             |       a or ab                                 O_WRONLY|O_CREAT|O_APPEND                       |\r
- *                             |---------------------------------------------------------------|\r
- *                             |       r+ or rb+ or r+b                O_RDWR                                                          |\r
- *                             |---------------------------------------------------------------|\r
- *                             |       w+ or wb+ or w+b                O_RDWR|O_CREAT|O_TRUNC                          |\r
- *                             |---------------------------------------------------------------|\r
- *                             |       a+ or ab+ or a+b                O_RDWR|O_CREAT|O_APPEND                         |\r
- *                             |---------------------------------------------------------------|\r
+ *     |---------------------------------------------------------------|\r
+ *     |       r or rb                 O_RDONLY                            |\r
+ *     |---------------------------------------------------------------|\r
+ *     |       w or wb                 O_WRONLY|O_CREAT|O_TRUNC            |\r
+ *     |---------------------------------------------------------------|\r
+ *     |       a or ab                 O_WRONLY|O_CREAT|O_APPEND           |\r
+ *     |---------------------------------------------------------------|\r
+ *     |       r+ or rb+ or r+b        O_RDWR                              |\r
+ *     |---------------------------------------------------------------|\r
+ *     |       w+ or wb+ or w+b                O_RDWR|O_CREAT|O_TRUNC              |\r
+ *     |---------------------------------------------------------------|\r
+ *     |       a+ or ab+ or a+b                O_RDWR|O_CREAT|O_APPEND             |\r
+ *     |---------------------------------------------------------------|\r
  *\r
  * @return     standard error code*/\r
-int                    ext4_fopen (ext4_file *f, const char *path, const char *flags);\r
+int    ext4_fopen (ext4_file *f, const char *path, const char *flags);\r
 \r
 /**@brief      */\r
-int                    ext4_fclose(ext4_file *f);\r
+int    ext4_fclose(ext4_file *f);\r
 \r
 /**@brief      */\r
-int                    ext4_fread (ext4_file *f, void *buf, uint32_t size, uint32_t *rcnt);\r
+int    ext4_fread (ext4_file *f, void *buf, uint32_t size, uint32_t *rcnt);\r
 \r
 /**@brief      */\r
-int                    ext4_fwrite(ext4_file *f, void *buf, uint32_t size, uint32_t *wcnt);\r
+int    ext4_fwrite(ext4_file *f, void *buf, uint32_t size, uint32_t *wcnt);\r
 \r
 /**@brief      */\r
-int            ext4_fseek (ext4_file *f, uint64_t offset, uint32_t origin);\r
+int    ext4_fseek (ext4_file *f, uint64_t offset, uint32_t origin);\r
 \r
 /**@brief      */\r
-uint64_t       ext4_ftell (ext4_file *f);\r
+uint64_t ext4_ftell (ext4_file *f);\r
 \r
 /**@brief      */\r
-uint64_t       ext4_fsize (ext4_file *f);\r
+uint64_t ext4_fsize (ext4_file *f);\r
 \r
-/*********************************DIRECTORY OPERATION***************************/\r
+/*********************************DIRECTORY OPERATION*************************/\r
 /**@brief      */\r
-int                    ext4_mkdir(const char *path);\r
+int    ext4_mkdir(const char *path);\r
 \r
 /**@brief      */\r
-int                    ext4_rmdir(const char *path);\r
+int    ext4_rmdir(const char *path);\r
 \r
 /**@brief      */\r
-int                    ext4_dir_open (ext4_dir *d, const char *path);\r
+int    ext4_dir_open (ext4_dir *d, const char *path);\r
 \r
 /**@brief      */\r
-int                    ext4_dir_close(ext4_dir *d);\r
+int    ext4_dir_close(ext4_dir *d);\r
 \r
 /**@brief      */\r
-ext4_direntry* ext4_entry_get(ext4_dir *d, uint32_t id);\r
+ext4_direntry* ext4_entry_get(ext4_dir *d, uint32_t id);\r
 \r
 #endif /* EXT4_H_ */\r
 \r