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