cristy | e80f9cb | 2013-01-09 01:09:31 +0000 | [diff] [blame] | 1 | /* |
cristy | fe676ee | 2013-11-18 13:03:38 +0000 | [diff] [blame] | 2 | Copyright 1999-2014 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 |
| 37 | hostname[MaxTextExtent]; |
| 38 | |
| 39 | int |
| 40 | port; |
cristy | e80f9cb | 2013-01-09 01:09:31 +0000 | [diff] [blame] | 41 | |
| 42 | size_t |
cristy | 1cbaf97 | 2013-01-09 02:13:23 +0000 | [diff] [blame] | 43 | signature; |
cristy | e80f9cb | 2013-01-09 01:09:31 +0000 | [diff] [blame] | 44 | } DistributeCacheInfo; |
| 45 | |
cristy | ce9db09 | 2013-01-16 22:16:51 +0000 | [diff] [blame] | 46 | extern MagickPrivate const char |
| 47 | *GetDistributeCacheHostname(const DistributeCacheInfo *); |
| 48 | |
cristy | 1cbaf97 | 2013-01-09 02:13:23 +0000 | [diff] [blame] | 49 | extern MagickPrivate DistributeCacheInfo |
cristy | 7edca2b | 2013-01-10 01:55:05 +0000 | [diff] [blame] | 50 | *AcquireDistributeCacheInfo(ExceptionInfo *), |
cristy | 1cbaf97 | 2013-01-09 02:13:23 +0000 | [diff] [blame] | 51 | *DestroyDistributeCacheInfo(DistributeCacheInfo *); |
| 52 | |
cristy | ce9db09 | 2013-01-16 22:16:51 +0000 | [diff] [blame] | 53 | extern MagickPrivate int |
| 54 | GetDistributeCacheFile(const DistributeCacheInfo *), |
| 55 | GetDistributeCachePort(const DistributeCacheInfo *); |
| 56 | |
cristy | bb31fcd | 2013-01-15 20:06:37 +0000 | [diff] [blame] | 57 | extern MagickPrivate MagickBooleanType |
| 58 | OpenDistributePixelCache(DistributeCacheInfo *,Image *), |
cristy | d6e5ed3 | 2013-01-19 17:24:56 +0000 | [diff] [blame] | 59 | RelinquishDistributePixelCache(DistributeCacheInfo *); |
| 60 | |
| 61 | extern MagickPrivate MagickOffsetType |
cristy | ce9db09 | 2013-01-16 22:16:51 +0000 | [diff] [blame] | 62 | ReadDistributePixelCacheMetacontent(DistributeCacheInfo *, |
| 63 | const RectangleInfo *,const MagickSizeType,unsigned char *), |
| 64 | ReadDistributePixelCachePixels(DistributeCacheInfo *,const RectangleInfo *, |
| 65 | const MagickSizeType,unsigned char *), |
cristy | ce9db09 | 2013-01-16 22:16:51 +0000 | [diff] [blame] | 66 | WriteDistributePixelCacheMetacontent(DistributeCacheInfo *, |
| 67 | const RectangleInfo *,const MagickSizeType,const unsigned char *), |
| 68 | WriteDistributePixelCachePixels(DistributeCacheInfo *,const RectangleInfo *, |
| 69 | const MagickSizeType,const unsigned char *); |
cristy | bb31fcd | 2013-01-15 20:06:37 +0000 | [diff] [blame] | 70 | |
cristy | 6d50170 | 2013-02-08 13:55:27 +0000 | [diff] [blame] | 71 | #if defined(__cplusplus) || defined(c_plusplus) |
| 72 | } |
| 73 | #endif |
| 74 | |
cristy | e80f9cb | 2013-01-09 01:09:31 +0000 | [diff] [blame] | 75 | #endif |