Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-03-13 09:14:28

0001 /*
0002   Copyright @ 2002 ImageMagick Studio LLC, a non-profit organization
0003   dedicated to making software imaging solutions freely available.
0004   
0005   You may not use this file except in compliance with the License.  You may
0006   obtain a copy of the License at
0007   
0008     https://imagemagick.org/script/license.php
0009   
0010   Unless required by applicable law or agreed to in writing, software
0011   distributed under the License is distributed on an "AS IS" BASIS,
0012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0013   See the License for the specific language governing permissions and
0014   limitations under the License.
0015 
0016   MagickCore resource methods.
0017 */
0018 #ifndef MAGICKCORE_RESOURCE_H
0019 #define MAGICKCORE_RESOURCE_H
0020 
0021 #if defined(__cplusplus) || defined(c_plusplus)
0022 extern "C" {
0023 #endif
0024 
0025 typedef enum
0026 {
0027   UndefinedResource,
0028   AreaResource,
0029   DiskResource,
0030   FileResource,
0031   HeightResource,
0032   MapResource,
0033   MemoryResource,
0034   ThreadResource,
0035   ThrottleResource,
0036   TimeResource,
0037   WidthResource,
0038   ListLengthResource
0039 } ResourceType;
0040 
0041 #define MagickResourceInfinity  (MagickULLConstant(~0) >> 1)
0042 
0043 extern MagickExport int
0044   AcquireUniqueFileResource(char *);
0045 
0046 extern MagickExport MagickBooleanType
0047   AcquireMagickResource(const ResourceType,const MagickSizeType),
0048   GetPathTemplate(char *),
0049   ListMagickResourceInfo(FILE *,ExceptionInfo *),
0050   RelinquishUniqueFileResource(const char *),
0051   SetMagickResourceLimit(const ResourceType,const MagickSizeType);
0052 
0053 extern MagickExport MagickSizeType
0054   GetMagickResource(const ResourceType),
0055   GetMagickResourceLimit(const ResourceType);
0056 
0057 extern MagickExport void
0058   RelinquishMagickResource(const ResourceType,const MagickSizeType);
0059 
0060 #if defined(__cplusplus) || defined(c_plusplus)
0061 }
0062 #endif
0063 
0064 #endif