cristy | e80f9cb | 2013-01-09 01:09:31 +0000 | [diff] [blame] | 1 | /* |
Cristy | 7ce65e7 | 2015-12-12 18:03:16 -0500 | [diff] [blame] | 2 | Copyright 1999-2016 ImageMagick Studio LLC, a non-profit organization |
cristy | e80f9cb | 2013-01-09 01:09:31 +0000 | [diff] [blame] | 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 distributed cache private methods. |
| 17 | */ |
| 18 | #ifndef _MAGICKCORE_DISTRIBUTE_CACHE_PRIVATE_H |
| 19 | #define _MAGICKCORE_DISTRIBUTE_CACHE_PRIVATE_H |
| 20 | |
cristy | 6398ec7 | 2013-11-28 02:00:27 +0000 | [diff] [blame] | 21 | #include "MagickCore/geometry.h" |
| 22 | #include "MagickCore/exception.h" |
| 23 | |
cristy | e80f9cb | 2013-01-09 01:09:31 +0000 | [diff] [blame] | 24 | #if defined(__cplusplus) || defined(c_plusplus) |
| 25 | extern "C" { |
| 26 | #endif |
| 27 | |
cristy | e80f9cb | 2013-01-09 01:09:31 +0000 | [diff] [blame] | 28 | typedef struct _DistributeCacheInfo |
| 29 | { |
cristy | e80f9cb | 2013-01-09 01:09:31 +0000 | [diff] [blame] | 30 | int |
cristy | bb31fcd | 2013-01-15 20:06:37 +0000 | [diff] [blame] | 31 | file; |
| 32 | |
cristy | 2330a75 | 2013-01-28 13:19:51 +0000 | [diff] [blame] | 33 | size_t |
cristy | bb31fcd | 2013-01-15 20:06:37 +0000 | [diff] [blame] | 34 | session_key; |
| 35 | |
| 36 | char |
cristy | 151b66d | 2015-04-15 10:50:31 +0000 | [diff] [blame] | 37 | hostname[MagickPathExtent]; |
cristy | bb31fcd | 2013-01-15 20:06:37 +0000 | [diff] [blame] | 38 | |
| 39 | int |
| 40 | port; |
cristy | e80f9cb | 2013-01-09 01:09:31 +0000 | [diff] [blame] | 41 | |
cristy | a548dc3 | 2013-12-26 13:10:08 +0000 | [diff] [blame] | 42 | MagickBooleanType |
| 43 | debug; |
| 44 | |
cristy | e80f9cb | 2013-01-09 01:09:31 +0000 | [diff] [blame] | 45 | size_t |
cristy | 1cbaf97 | 2013-01-09 02:13:23 +0000 | [diff] [blame] | 46 | signature; |
cristy | e80f9cb | 2013-01-09 01:09:31 +0000 | [diff] [blame] | 47 | } DistributeCacheInfo; |
| 48 | |
cristy | ce9db09 | 2013-01-16 22:16:51 +0000 | [diff] [blame] | 49 | extern MagickPrivate const char |
| 50 | *GetDistributeCacheHostname(const DistributeCacheInfo *); |
| 51 | |
cristy | 1cbaf97 | 2013-01-09 02:13:23 +0000 | [diff] [blame] | 52 | extern MagickPrivate DistributeCacheInfo |
cristy | 7edca2b | 2013-01-10 01:55:05 +0000 | [diff] [blame] | 53 | *AcquireDistributeCacheInfo(ExceptionInfo *), |
cristy | 1cbaf97 | 2013-01-09 02:13:23 +0000 | [diff] [blame] | 54 | *DestroyDistributeCacheInfo(DistributeCacheInfo *); |
| 55 | |
cristy | ce9db09 | 2013-01-16 22:16:51 +0000 | [diff] [blame] | 56 | extern MagickPrivate int |
| 57 | GetDistributeCacheFile(const DistributeCacheInfo *), |
| 58 | GetDistributeCachePort(const DistributeCacheInfo *); |
| 59 | |
cristy | bb31fcd | 2013-01-15 20:06:37 +0000 | [diff] [blame] | 60 | extern MagickPrivate MagickBooleanType |
| 61 | OpenDistributePixelCache(DistributeCacheInfo *,Image *), |
cristy | d6e5ed3 | 2013-01-19 17:24:56 +0000 | [diff] [blame] | 62 | RelinquishDistributePixelCache(DistributeCacheInfo *); |
| 63 | |
| 64 | extern MagickPrivate MagickOffsetType |
cristy | ce9db09 | 2013-01-16 22:16:51 +0000 | [diff] [blame] | 65 | ReadDistributePixelCacheMetacontent(DistributeCacheInfo *, |
| 66 | const RectangleInfo *,const MagickSizeType,unsigned char *), |
| 67 | ReadDistributePixelCachePixels(DistributeCacheInfo *,const RectangleInfo *, |
dirk | 05d2ff7 | 2015-11-18 23:13:43 +0100 | [diff] [blame] | 68 | const MagickSizeType,unsigned char *magick_restrict), |
cristy | ce9db09 | 2013-01-16 22:16:51 +0000 | [diff] [blame] | 69 | WriteDistributePixelCacheMetacontent(DistributeCacheInfo *, |
| 70 | const RectangleInfo *,const MagickSizeType,const unsigned char *), |
| 71 | WriteDistributePixelCachePixels(DistributeCacheInfo *,const RectangleInfo *, |
dirk | 05d2ff7 | 2015-11-18 23:13:43 +0100 | [diff] [blame] | 72 | const MagickSizeType,const unsigned char *magick_restrict); |
cristy | bb31fcd | 2013-01-15 20:06:37 +0000 | [diff] [blame] | 73 | |
cristy | 6d50170 | 2013-02-08 13:55:27 +0000 | [diff] [blame] | 74 | #if defined(__cplusplus) || defined(c_plusplus) |
| 75 | } |
| 76 | #endif |
| 77 | |
cristy | e80f9cb | 2013-01-09 01:09:31 +0000 | [diff] [blame] | 78 | #endif |