blob: 68765b984b0f79d215939887135dde33822e1e06 [file] [log] [blame]
cristye80f9cb2013-01-09 01:09:31 +00001/*
cristyfe676ee2013-11-18 13:03:38 +00002 Copyright 1999-2014 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*/
18#ifndef _MAGICKCORE_DISTRIBUTE_CACHE_PRIVATE_H
19#define _MAGICKCORE_DISTRIBUTE_CACHE_PRIVATE_H
20
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
37 hostname[MaxTextExtent];
38
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 *,
68 const MagickSizeType,unsigned char *),
cristyce9db092013-01-16 22:16:51 +000069 WriteDistributePixelCacheMetacontent(DistributeCacheInfo *,
70 const RectangleInfo *,const MagickSizeType,const unsigned char *),
71 WriteDistributePixelCachePixels(DistributeCacheInfo *,const RectangleInfo *,
72 const MagickSizeType,const unsigned char *);
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