blob-private.h revision 45ef08fd6a09813e4a8f5ddadf85ba9e0ec2cdc7
1/*
2  Copyright 1999-2013 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)
22extern "C" {
23#endif
24
25#include "MagickCore/nt-feature.h"
26
27#define MagickMinBlobExtent  32767L
28#if defined(MAGICKCORE_HAVE_FSEEKO)
29# define fseek  fseeko
30# define ftell  ftello
31#endif
32
33typedef enum
34{
35  UndefinedStream,
36  StandardStream,
37  FileStream,
38  PipeStream,
39  ZipStream,
40  BZipStream,
41  FifoStream,
42  BlobStream
43} StreamType;
44
45extern MagickPrivate MagickBooleanType
46  GetBlobError(const Image *),
47  IsBlobExempt(const Image *),
48  IsBlobSeekable(const Image *),
49  IsBlobTemporary(const Image *),
50  SetBlobExtent(Image *,const MagickSizeType);
51
52extern MagickPrivate const struct stat
53  *GetBlobProperties(const Image *);
54
55extern MagickPrivate StreamHandler
56  GetBlobStreamHandler(const Image *);
57
58extern MagickPrivate void
59  GetBlobInfo(BlobInfo *),
60  SetBlobExempt(Image *,const MagickBooleanType);
61
62#if defined(__cplusplus) || defined(c_plusplus)
63}
64#endif
65
66#endif
67