blob: 7c0146a25c68acc045a417788baf6684261d6045 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001/*
cristyb56bb242014-11-25 17:12:48 +00002 Copyright 1999-2015 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
cristy6398ec72013-11-28 02:00:27 +000021#include "MagickCore/nt-feature.h"
dirkb78a1532014-02-10 12:06:36 +000022#include "MagickCore/nt-base-private.h"
cristy6398ec72013-11-28 02:00:27 +000023
cristy3ed852e2009-09-05 21:47:34 +000024#if defined(__cplusplus) || defined(c_plusplus)
25extern "C" {
26#endif
27
cristy3ed852e2009-09-05 21:47:34 +000028#define MagickMinBlobExtent 32767L
cristy7f317702011-02-18 20:40:28 +000029#if defined(MAGICKCORE_HAVE_FSEEKO)
30# define fseek fseeko
31# define ftell ftello
32#endif
cristy3ed852e2009-09-05 21:47:34 +000033
34typedef enum
35{
cristy3ed852e2009-09-05 21:47:34 +000036 UndefinedStream,
cristy3ed852e2009-09-05 21:47:34 +000037 StandardStream,
cristybc20d112012-07-29 20:27:00 +000038 FileStream,
cristy3ed852e2009-09-05 21:47:34 +000039 PipeStream,
40 ZipStream,
41 BZipStream,
42 FifoStream,
43 BlobStream
44} StreamType;
45
cristy7832dc22011-09-05 01:21:53 +000046extern MagickPrivate MagickBooleanType
47 GetBlobError(const Image *),
48 IsBlobExempt(const Image *),
49 IsBlobSeekable(const Image *),
50 IsBlobTemporary(const Image *),
51 SetBlobExtent(Image *,const MagickSizeType);
cristy3ed852e2009-09-05 21:47:34 +000052
cristy7832dc22011-09-05 01:21:53 +000053extern MagickPrivate const struct stat
cristy3ed852e2009-09-05 21:47:34 +000054 *GetBlobProperties(const Image *);
55
cristy7832dc22011-09-05 01:21:53 +000056extern MagickPrivate StreamHandler
57 GetBlobStreamHandler(const Image *);
cristy3ed852e2009-09-05 21:47:34 +000058
cristy7832dc22011-09-05 01:21:53 +000059extern MagickPrivate void
cristy10f10ec2014-09-20 01:00:50 +000060 DisassociateBlob(Image *),
cristy3ed852e2009-09-05 21:47:34 +000061 GetBlobInfo(BlobInfo *),
cristy7832dc22011-09-05 01:21:53 +000062 SetBlobExempt(Image *,const MagickBooleanType);
cristy3ed852e2009-09-05 21:47:34 +000063
64#if defined(__cplusplus) || defined(c_plusplus)
65}
66#endif
67
68#endif