blob: ba3bba6629a117717995095ede3c6e4f6fdc5538 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001/*
cristy7e41fe82010-12-04 23:12:08 +00002 Copyright 1999-2011 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
cristy3ed852e2009-09-05 21:47:34 +000025#define MagickMinBlobExtent 32767L
cristy7f317702011-02-18 20:40:28 +000026#if defined(MAGICKCORE_HAVE_FSEEKO)
27# define fseek fseeko
28# define ftell ftello
29#endif
cristy3ed852e2009-09-05 21:47:34 +000030
31typedef enum
32{
cristy3ed852e2009-09-05 21:47:34 +000033 UndefinedStream,
34 FileStream,
35 StandardStream,
36 PipeStream,
37 ZipStream,
38 BZipStream,
39 FifoStream,
40 BlobStream
41} StreamType;
42
cristy7832dc22011-09-05 01:21:53 +000043extern MagickPrivate MagickBooleanType
44 GetBlobError(const Image *),
45 IsBlobExempt(const Image *),
46 IsBlobSeekable(const Image *),
47 IsBlobTemporary(const Image *),
48 SetBlobExtent(Image *,const MagickSizeType);
cristy3ed852e2009-09-05 21:47:34 +000049
cristy7832dc22011-09-05 01:21:53 +000050extern MagickPrivate const struct stat
cristy3ed852e2009-09-05 21:47:34 +000051 *GetBlobProperties(const Image *);
52
cristy7832dc22011-09-05 01:21:53 +000053extern MagickPrivate StreamHandler
54 GetBlobStreamHandler(const Image *);
cristy3ed852e2009-09-05 21:47:34 +000055
cristy7832dc22011-09-05 01:21:53 +000056extern MagickPrivate void
cristy3ed852e2009-09-05 21:47:34 +000057 GetBlobInfo(BlobInfo *),
cristy7832dc22011-09-05 01:21:53 +000058 SetBlobExempt(Image *,const MagickBooleanType);
cristy3ed852e2009-09-05 21:47:34 +000059
60#if defined(__cplusplus) || defined(c_plusplus)
61}
62#endif
63
64#endif