blob: 9b2ea8d8e99282f5b6f763dcecb7b425745baff1 [file] [log] [blame]
cristye80f9cb2013-01-09 01:09:31 +00001/*
Cristy7ce65e72015-12-12 18:03:16 -05002 Copyright 1999-2016 ImageMagick Studio LLC, a non-profit organization
cristye80f9cb2013-01-09 01:09:31 +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 distributed cache private methods.
17*/
Cristy83bceaa2016-06-03 20:39:35 -040018#ifndef MAGICKCORE_DISTRIBUTE_CACHE_PRIVATE_H
19#define MAGICKCORE_DISTRIBUTE_CACHE_PRIVATE_H
cristye80f9cb2013-01-09 01:09:31 +000020
cristy6398ec72013-11-28 02:00:27 +000021#include "MagickCore/geometry.h"
22#include "MagickCore/exception.h"
23
cristye80f9cb2013-01-09 01:09:31 +000024#if defined(__cplusplus) || defined(c_plusplus)
25extern "C" {
26#endif
27
cristye80f9cb2013-01-09 01:09:31 +000028typedef struct _DistributeCacheInfo
29{
cristye80f9cb2013-01-09 01:09:31 +000030 int
cristybb31fcd2013-01-15 20:06:37 +000031 file;
32
cristy2330a752013-01-28 13:19:51 +000033 size_t
cristybb31fcd2013-01-15 20:06:37 +000034 session_key;
35
36 char
cristy151b66d2015-04-15 10:50:31 +000037 hostname[MagickPathExtent];
cristybb31fcd2013-01-15 20:06:37 +000038
39 int
40 port;
cristye80f9cb2013-01-09 01:09:31 +000041
cristya548dc32013-12-26 13:10:08 +000042 MagickBooleanType
43 debug;
44
cristye80f9cb2013-01-09 01:09:31 +000045 size_t
cristy1cbaf972013-01-09 02:13:23 +000046 signature;
cristye80f9cb2013-01-09 01:09:31 +000047} DistributeCacheInfo;
48
cristyce9db092013-01-16 22:16:51 +000049extern MagickPrivate const char
50 *GetDistributeCacheHostname(const DistributeCacheInfo *);
51
cristy1cbaf972013-01-09 02:13:23 +000052extern MagickPrivate DistributeCacheInfo
cristy7edca2b2013-01-10 01:55:05 +000053 *AcquireDistributeCacheInfo(ExceptionInfo *),
cristy1cbaf972013-01-09 02:13:23 +000054 *DestroyDistributeCacheInfo(DistributeCacheInfo *);
55
cristyce9db092013-01-16 22:16:51 +000056extern MagickPrivate int
57 GetDistributeCacheFile(const DistributeCacheInfo *),
58 GetDistributeCachePort(const DistributeCacheInfo *);
59
cristybb31fcd2013-01-15 20:06:37 +000060extern MagickPrivate MagickBooleanType
61 OpenDistributePixelCache(DistributeCacheInfo *,Image *),
cristyd6e5ed32013-01-19 17:24:56 +000062 RelinquishDistributePixelCache(DistributeCacheInfo *);
63
64extern MagickPrivate MagickOffsetType
cristyce9db092013-01-16 22:16:51 +000065 ReadDistributePixelCacheMetacontent(DistributeCacheInfo *,
66 const RectangleInfo *,const MagickSizeType,unsigned char *),
67 ReadDistributePixelCachePixels(DistributeCacheInfo *,const RectangleInfo *,
dirk05d2ff72015-11-18 23:13:43 +010068 const MagickSizeType,unsigned char *magick_restrict),
cristyce9db092013-01-16 22:16:51 +000069 WriteDistributePixelCacheMetacontent(DistributeCacheInfo *,
70 const RectangleInfo *,const MagickSizeType,const unsigned char *),
71 WriteDistributePixelCachePixels(DistributeCacheInfo *,const RectangleInfo *,
dirk05d2ff72015-11-18 23:13:43 +010072 const MagickSizeType,const unsigned char *magick_restrict);
cristybb31fcd2013-01-15 20:06:37 +000073
cristy6d501702013-02-08 13:55:27 +000074#if defined(__cplusplus) || defined(c_plusplus)
75}
76#endif
77
cristye80f9cb2013-01-09 01:09:31 +000078#endif