blob: 78a78fce993fb6d4b98f3cf146c4a73182d00195 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001/*
cristy1454be72011-12-19 01:52:48 +00002 Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization
cristy3ed852e2009-09-05 21:47:34 +00003 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
cristy04a6fc82012-02-20 16:36:50 +000025#include "MagickCore/nt-feature.h"
cristy0740a982011-10-13 15:01:01 +000026
cristy3ed852e2009-09-05 21:47:34 +000027#define MagickMinBlobExtent 32767L
cristy7f317702011-02-18 20:40:28 +000028#if defined(MAGICKCORE_HAVE_FSEEKO)
29# define fseek fseeko
30# define ftell ftello
31#endif
cristy3ed852e2009-09-05 21:47:34 +000032
33typedef enum
34{
cristy3ed852e2009-09-05 21:47:34 +000035 UndefinedStream,
cristy3ed852e2009-09-05 21:47:34 +000036 StandardStream,
cristybc20d112012-07-29 20:27:00 +000037 FileStream,
cristy3ed852e2009-09-05 21:47:34 +000038 PipeStream,
39 ZipStream,
40 BZipStream,
41 FifoStream,
42 BlobStream
43} StreamType;
44
cristy7832dc22011-09-05 01:21:53 +000045extern MagickPrivate MagickBooleanType
46 GetBlobError(const Image *),
47 IsBlobExempt(const Image *),
48 IsBlobSeekable(const Image *),
49 IsBlobTemporary(const Image *),
50 SetBlobExtent(Image *,const MagickSizeType);
cristy3ed852e2009-09-05 21:47:34 +000051
cristy7832dc22011-09-05 01:21:53 +000052extern MagickPrivate const struct stat
cristy3ed852e2009-09-05 21:47:34 +000053 *GetBlobProperties(const Image *);
54
cristy7832dc22011-09-05 01:21:53 +000055extern MagickPrivate StreamHandler
56 GetBlobStreamHandler(const Image *);
cristy3ed852e2009-09-05 21:47:34 +000057
cristy7832dc22011-09-05 01:21:53 +000058extern MagickPrivate void
cristy3ed852e2009-09-05 21:47:34 +000059 GetBlobInfo(BlobInfo *),
cristy7832dc22011-09-05 01:21:53 +000060 SetBlobExempt(Image *,const MagickBooleanType);
cristy3ed852e2009-09-05 21:47:34 +000061
62#if defined(__cplusplus) || defined(c_plusplus)
63}
64#endif
65
66#endif