Re: DiskDevice API v2.1

Tyler Dauwalder <tyler-cyCl/[email protected]>
Newsgroups gmane.os.openbeos.storage
Message-ID <[email protected]>
> > > All the BDiskSystem hooks should have counterparts in the FS API.
> > > There
> > > could also be one function that processes them all, like
> > > fs=3D3D5Fvalidate=3D3D5Foperation(uint32 operation, void 
> > > *parameters).
> > 
> > Yeah, that would also work, although it probably wouldn't be too 
> > easy
> > to check the arguments in that case. The FS add-on shouldn't be
> > bothered with this, at least.
> 
> Yes, the caller would have to make sure, that the parameters are 
> valid.

Doesn't it seem like it would be clearer and less error prone just to 
have a specific function per operation? Yes, that means more functions, 
but IMHO that's a reasonable tradeoff for better typechecking and 
greater ease of implementation.

-Tyler
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.