@@ -111,9 +111,6 @@ static int read_file_def(char *host_path, struct ss_file *file)
111111 return 0 ;
112112}
113113
114- /*! Get file definition for file (tip of the path).
115- * \param[inout] path to the file for which the definition should be read.
116- * \returns 0 on success, -EINVAL on failure */
117114int ss_storage_get_file_def (struct ss_list * path )
118115{
119116 /*! Note: This function will allocate memory in file to store the file
@@ -134,11 +131,6 @@ int ss_storage_get_file_def(struct ss_list *path)
134131 return read_file_def (host_path , file );
135132}
136133
137- /*! Get content from file (tip of the path).
138- * \param[in] path path to the file to be read.
139- * \param[in] read_offset offset to start reading the file at.
140- * \param[in] read_len length of data to read.
141- * \returns buffer with content data on success, NULL on failure. */
142134struct ss_buf * ss_storage_read_file (const struct ss_list * path , size_t read_offset , size_t read_len )
143135{
144136 /*! Note: This function will allocate memory in fileto store the file
@@ -196,11 +188,6 @@ struct ss_buf *ss_storage_read_file(const struct ss_list *path, size_t read_offs
196188 return result ;
197189}
198190
199- /*! Write data to a file (tip of the path).
200- * \param[in] path path to the file to be written.
201- * \param[in] write_offset offset to start writing the file at.
202- * \param[in] write_len length of data to be written.
203- * \returns 0 on success, -EINVAL on failure. */
204191int ss_storage_write_file (const struct ss_list * path , const uint8_t * data , size_t write_offset , size_t write_len )
205192{
206193 char host_path [SS_STORAGE_PATH_MAX + 1 ];
@@ -245,9 +232,6 @@ int ss_storage_write_file(const struct ss_list *path, const uint8_t *data, size_
245232 return 0 ;
246233}
247234
248- /*! Get the total size in bytes of a file.
249- * \param[in] path path to the file that gets selected.
250- * \returns size in bytes on success, 0 on failure. */
251235size_t ss_storage_get_file_len (const struct ss_list * path )
252236{
253237 char host_path [SS_STORAGE_PATH_MAX + 1 ];
@@ -274,9 +258,6 @@ size_t ss_storage_get_file_len(const struct ss_list *path)
274258 return file_size ;
275259}
276260
277- /*! Delete file or directory in the file system.
278- * \param[in] path path to the file or directory to delete.
279- * \returns 0 on success, -EINVAL on failure. */
280261int ss_storage_delete (const struct ss_list * path )
281262{
282263 char host_path_def [SS_STORAGE_PATH_MAX + 1 ];
@@ -312,9 +293,6 @@ int ss_storage_delete(const struct ss_list *path)
312293 return 0 ;
313294}
314295
315- /*! Update definition file in the file system.
316- * \param[in] path path to the file to update.
317- * \returns 0 on success, -EINVAL on failure */
318296int ss_storage_update_def (const struct ss_list * path )
319297{
320298 char host_path [SS_STORAGE_PATH_MAX + 1 ];
@@ -358,10 +336,6 @@ int ss_storage_update_def(const struct ss_list *path)
358336 return 0 ;
359337}
360338
361- /*! Create a file in the file system.
362- * \param[in] path path to the file that gets selected.
363- * \param[in] file_len length of the file to create (filled with 0xff).
364- * \returns 0 success, -EINVAL on failure */
365339int ss_storage_create_file (const struct ss_list * path , size_t file_len )
366340{
367341 /*! Note: This function must not be called with pathes that point to
@@ -402,14 +376,9 @@ int ss_storage_create_file(const struct ss_list *path, size_t file_len)
402376 return 0 ;
403377}
404378
405- /*! Create a directory in the file system.
406- * \param[in] path path to the directory to create.
407- * \returns 0 on success, -EINVAL on failure */
408379int ss_storage_create_dir (const struct ss_list * path )
409380{
410- /*! Note: This function must not be called with pathes that point to
411- * a directory! */
412-
381+ /*! Note: This function must not be called with pathes that point to a directory! */
413382 char host_path [SS_STORAGE_PATH_MAX + 1 ];
414383 int rc ;
415384
0 commit comments