File/command access confirmation API in GraphicsMagick
Bob Friesenhahn <[email protected]> Tue, 5 May 2009 17:29:47 -0500 (CDT)
| Newsgroups | gmane.comp.video.graphicsmagick.apis,gmane.comp.video.graphicsmagick.core |
|---|---|
| Message-ID | <[email protected]> |
Development GraphicsMagick now includes an interface whereby a using
application can be notified about any file or execution access in
advance and is able to deny that access via a return code. This can
be more reliable for controlling actions than attempting to validate
input parameters.
Read about it at http://www.graphicsmagick.org/api/confirm_access.html
The above page does not document the enums. This is the definition of
ConfirmAccessMode:
typedef enum
{
UndefinedConfirmAccessMode,
FileExecuteConfirmAccessMode, /* Path is to be opened for execution */
FileReadConfirmAccessMode, /* Path is to be opened for read */
FileWriteConfirmAccessMode, /* Path is to be opened for write */
URLGetFTPConfirmAccessMode, /* ftp:// URL get */
URLGetFileConfirmAccessMode, /* file:// URL get */
URLGetHTTPConfirmAccessMode /* http:// URL get */
} ConfirmAccessMode;
Any and all comments are appreciated before the interface is totally
set in stone.
CVS HEAD and today's development snapshot include the initial
implementation.
Bob
--
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com