]> granicus.if.org Git - imagemagick/blobdiff - MagickCore/distribute-cache-private.h
(no commit message)
[imagemagick] / MagickCore / distribute-cache-private.h
index 259c8d7810133a1f94788e24d162dfe48aa7d751..68765b984b0f79d215939887135dde33822e1e06 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
+  Copyright 1999-2014 ImageMagick Studio LLC, a non-profit organization
   dedicated to making software imaging solutions freely available.
   
   You may not use this file except in compliance with the License.
 #ifndef _MAGICKCORE_DISTRIBUTE_CACHE_PRIVATE_H
 #define _MAGICKCORE_DISTRIBUTE_CACHE_PRIVATE_H
 
+#include "MagickCore/geometry.h"
+#include "MagickCore/exception.h"
+
 #if defined(__cplusplus) || defined(c_plusplus)
 extern "C" {
 #endif
 
-#define MaxNumberDistributedCacheClients  32
-
 typedef struct _DistributeCacheInfo
 {
+  int
+    file;
+
   size_t
-    number_connections,
-    session[MaxNumberDistributedCacheClients];
+    session_key;
+
+  char
+    hostname[MaxTextExtent];
 
-#if defined(MAGICKCORE_HAVE_SOCKET)
   int
-    server[MaxNumberDistributedCacheClients];
-#endif
+    port;
+
+  MagickBooleanType
+    debug;
 
   size_t
     signature;
 } DistributeCacheInfo;
 
+extern MagickPrivate const char
+  *GetDistributeCacheHostname(const DistributeCacheInfo *);
+
 extern MagickPrivate DistributeCacheInfo
-  *AcquireDistributeCacheInfo(void),
+  *AcquireDistributeCacheInfo(ExceptionInfo *),
   *DestroyDistributeCacheInfo(DistributeCacheInfo *);
 
+extern MagickPrivate int
+  GetDistributeCacheFile(const DistributeCacheInfo *),
+  GetDistributeCachePort(const DistributeCacheInfo *);
+
+extern MagickPrivate MagickBooleanType
+  OpenDistributePixelCache(DistributeCacheInfo *,Image *),
+  RelinquishDistributePixelCache(DistributeCacheInfo *);
+
+extern MagickPrivate MagickOffsetType
+  ReadDistributePixelCacheMetacontent(DistributeCacheInfo *,
+    const RectangleInfo *,const MagickSizeType,unsigned char *),
+  ReadDistributePixelCachePixels(DistributeCacheInfo *,const RectangleInfo *,
+    const MagickSizeType,unsigned char *),
+  WriteDistributePixelCacheMetacontent(DistributeCacheInfo *,
+    const RectangleInfo *,const MagickSizeType,const unsigned char *),
+  WriteDistributePixelCachePixels(DistributeCacheInfo *,const RectangleInfo *,
+    const MagickSizeType,const unsigned char *);
+
+#if defined(__cplusplus) || defined(c_plusplus)
+}
+#endif
+
 #endif