distribute-cache-private.h

Go to the documentation of this file.
00001 /*
00002   Copyright 1999-2020 ImageMagick Studio LLC, a non-profit organization
00003   dedicated to making software imaging solutions freely available.
00004   
00005   You may not use this file except in compliance with the License.  You may
00006   obtain a copy of the License at
00007   
00008     https://imagemagick.org/script/license.php
00009   
00010   Unless required by applicable law or agreed to in writing, software
00011   distributed under the License is distributed on an "AS IS" BASIS,
00012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013   See the License for the specific language governing permissions and
00014   limitations under the License.
00015 
00016   MagickCore distributed cache private methods.
00017 */
00018 #ifndef MAGICKCORE_DISTRIBUTE_CACHE_PRIVATE_H
00019 #define MAGICKCORE_DISTRIBUTE_CACHE_PRIVATE_H
00020 
00021 #include "magick/geometry.h"
00022 #include "magick/exception.h"
00023 
00024 #if defined(__cplusplus) || defined(c_plusplus)
00025 extern "C" {
00026 #endif
00027 
00028 typedef struct _DistributeCacheInfo
00029 {
00030   int
00031     file;
00032 
00033   size_t
00034     session_key;
00035 
00036   char
00037     hostname[MaxTextExtent];
00038 
00039   int
00040     port;
00041 
00042   size_t
00043     signature;
00044 
00045   MagickBooleanType
00046     debug;
00047 } DistributeCacheInfo;
00048 
00049 extern MagickPrivate const char
00050   *GetDistributeCacheHostname(const DistributeCacheInfo *);
00051 
00052 extern MagickPrivate DistributeCacheInfo
00053   *AcquireDistributeCacheInfo(ExceptionInfo *),
00054   *DestroyDistributeCacheInfo(DistributeCacheInfo *);
00055 
00056 extern MagickPrivate int
00057   GetDistributeCacheFile(const DistributeCacheInfo *),
00058   GetDistributeCachePort(const DistributeCacheInfo *);
00059 
00060 extern MagickPrivate MagickBooleanType
00061   OpenDistributePixelCache(DistributeCacheInfo *,Image *),
00062   RelinquishDistributePixelCache(DistributeCacheInfo *);
00063 
00064 extern MagickPrivate MagickOffsetType
00065   ReadDistributePixelCacheIndexes(DistributeCacheInfo *,
00066     const RectangleInfo *,const MagickSizeType,unsigned char *),
00067   ReadDistributePixelCachePixels(DistributeCacheInfo *,const RectangleInfo *,
00068     const MagickSizeType,unsigned char *magick_restrict),
00069   WriteDistributePixelCacheIndexes(DistributeCacheInfo *,
00070     const RectangleInfo *,const MagickSizeType,const unsigned char *),
00071   WriteDistributePixelCachePixels(DistributeCacheInfo *,const RectangleInfo *,
00072     const MagickSizeType,const unsigned char *magick_restrict);
00073 
00074 #if defined(__cplusplus) || defined(c_plusplus)
00075 }
00076 #endif
00077 
00078 #endif

Generated on 24 Nov 2020 for MagickCore by  doxygen 1.6.1