This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1] utility functions for using the extended VV interface to FIS


On Sun, Jan 07, 2007 at 06:34:25AM -0700, Gary Thomas wrote:
> Neundorf, Alexander wrote:
> >Hi,
> >
> >in spring last year finally my extension to the Redboot VV interface got 
> >committed (which I had since fall 2004), and since we are using this 
> >extended VV interface for updating the firmware and as a read-only 
> >filesystem, here comes the next patch.
> >The attached patch adds a fisfs package which offers three utility 
> >functions to work with the FIS from within eCos applications, from the 
> >header:
> >
> >/* Get the fis_table_entry for the image with the given name, the index
> > of the image is returned, -1 if no such image exists.
> > If a NULL pointer is used for entry, only the index is returned. */
> >int fis_get_entry(const char* name, struct fis_table_entry* entry);
> >
> >/* Remove the image with the given name from the FIS */
> >int fis_remove_image(const char* name);
> >
> >/* Create a new image with the specified name.
> >If backup is false, it fails if an image with the given name already 
> >exists.
> >If backup is true and an image with the given name already exists,
> >a "~" is appended to its name and a new image with the name is created.
> >The other arguments are the same ones as known from the fis create RedBoot 
> >command.*/
> >int fis_create_image(const char* name, char* buf,
> >                CYG_ADDRESS flash_base, CYG_ADDRESS mem_base, unsigned 
> >                long size,
> >                CYG_ADDRESS entry_point, unsigned long data_length, int 
> >                backup);

I would like to see all these global scope functions have cyg_ prefix
otherwise they cause name space pollution.

          Andrew


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]