]> granicus.if.org Git - imagemagick/blob - MagickCore/blob-private.h
(no commit message)
[imagemagick] / MagickCore / blob-private.h
1 /*
2   Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization
3   dedicated to making software imaging solutions freely available.
4   
5   You may not use this file except in compliance with the License.
6   obtain a copy of the License at
7   
8     http://www.imagemagick.org/script/license.php
9   
10   Unless required by applicable law or agreed to in writing, software
11   distributed under the License is distributed on an "AS IS" BASIS,
12   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   See the License for the specific language governing permissions and
14   limitations under the License.
15
16   MagickCore Binary Large OBjects private methods.
17 */
18 #ifndef _MAGICKCORE_BLOB_PRIVATE_H
19 #define _MAGICKCORE_BLOB_PRIVATE_H
20
21 #if defined(__cplusplus) || defined(c_plusplus)
22 extern "C" {
23 #endif
24
25 #define MagickMinBlobExtent  32767L
26 #if defined(MAGICKCORE_HAVE_FSEEKO)
27 # define fseek  fseeko
28 # define ftell  ftello
29 #endif
30
31 typedef enum
32 {
33   UndefinedStream,
34   FileStream,
35   StandardStream,
36   PipeStream,
37   ZipStream,
38   BZipStream,
39   FifoStream,
40   BlobStream
41 } StreamType;
42
43 extern MagickPrivate MagickBooleanType
44   GetBlobError(const Image *),
45   IsBlobExempt(const Image *),
46   IsBlobSeekable(const Image *),
47   IsBlobTemporary(const Image *),
48   SetBlobExtent(Image *,const MagickSizeType);
49
50 extern MagickPrivate const struct stat
51   *GetBlobProperties(const Image *);
52
53 extern MagickPrivate StreamHandler
54   GetBlobStreamHandler(const Image *);
55
56 extern MagickPrivate void
57   GetBlobInfo(BlobInfo *),
58   SetBlobExempt(Image *,const MagickBooleanType);
59
60 #if defined(__cplusplus) || defined(c_plusplus)
61 }
62 #endif
63
64 #endif