[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pdf-devel] FS module, file size and free space with different inter
From: |
jemarch |
Subject: |
Re: [pdf-devel] FS module, file size and free space with different interface |
Date: |
Mon, 28 Jul 2008 00:30:11 +0200 |
User-agent: |
Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
Hi Hans.
just a minor one. The two functions
pdf_size_t pdf_fsys_get_free_space (pdf_fsys_t file_system,
pdf_text_t path_name)
pdf_status_t pdf_fsys_file_get_size (pdf_fsys_file_t file,
pdf_size_t *size)
are very simelar, but provide a different interface. The first one
returns the size, the second one stores it in a reference and
returns a status code. Shouldn't both functions be used in the same
way?
Yes, definitely. Since pdf_fsys_file_get_size operates in a
pdf_fsys_file_t and not in a path we can expect that should not be no
error in the execution of the function.
I would say to change the pdf_fsys_file_get size to
pdf_size_t pdf_fsys_file_get_size (pdf_fsys_file_t file);