blob: 86381a5681af76eed4ce026b8237716e19be0740 [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
42 size_t
cristy1cbaf972013-01-09 02:13:23 +000043 signature;
cristye80f9cb2013-01-09 01:09:31 +000044} DistributeCacheInfo;
45
cristyce9db092013-01-16 22:16:51 +000046extern MagickPrivate const char
47 *GetDistributeCacheHostname(const DistributeCacheInfo *);
48
cristy1cbaf972013-01-09 02:13:23 +000049extern MagickPrivate DistributeCacheInfo
cristy7edca2b2013-01-10 01:55:05 +000050 *AcquireDistributeCacheInfo(ExceptionInfo *),
cristy1cbaf972013-01-09 02:13:23 +000051 *DestroyDistributeCacheInfo(DistributeCacheInfo *);
52
cristyce9db092013-01-16 22:16:51 +000053extern MagickPrivate int
54 GetDistributeCacheFile(const DistributeCacheInfo *),
55 GetDistributeCachePort(const DistributeCacheInfo *);
56
cristybb31fcd2013-01-15 20:06:37 +000057extern MagickPrivate MagickBooleanType
58 OpenDistributePixelCache(DistributeCacheInfo *,Image *),
cristyd6e5ed32013-01-19 17:24:56 +000059 RelinquishDistributePixelCache(DistributeCacheInfo *);
60
61extern MagickPrivate MagickOffsetType
cristyce9db092013-01-16 22:16:51 +000062 ReadDistributePixelCacheMetacontent(DistributeCacheInfo *,
63 const RectangleInfo *,const MagickSizeType,unsigned char *),
64 ReadDistributePixelCachePixels(DistributeCacheInfo *,const RectangleInfo *,
65 const MagickSizeType,unsigned char *),
cristyce9db092013-01-16 22:16:51 +000066 WriteDistributePixelCacheMetacontent(DistributeCacheInfo *,
67 const RectangleInfo *,const MagickSizeType,const unsigned char *),
68 WriteDistributePixelCachePixels(DistributeCacheInfo *,const RectangleInfo *,
69 const MagickSizeType,const unsigned char *);
cristybb31fcd2013-01-15 20:06:37 +000070
cristy6d501702013-02-08 13:55:27 +000071#if defined(__cplusplus) || defined(c_plusplus)
72}
73#endif
74
cristye80f9cb2013-01-09 01:09:31 +000075#endif