blob-private.h revision 6e2dd24fb3516862066ebb90385e7daa0b5917ea
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-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 GetBlobInfo(BlobInfo *), 61 SetBlobExempt(Image *,const MagickBooleanType); 62 63#if defined(__cplusplus) || defined(c_plusplus) 64} 65#endif 66 67#endif 68