MagickCore  6.7.5
utility.h
Go to the documentation of this file.
00001 /*
00002   Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization
00003   dedicated to making software imaging solutions freely available.
00004   
00005   You may not use this file except in compliance with the License.
00006   obtain a copy of the License at
00007   
00008     http://www.imagemagick.org/script/license.php
00009   
00010   Unless required by applicable law or agreed to in writing, software
00011   distributed under the License is distributed on an "AS IS" BASIS,
00012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013   See the License for the specific language governing permissions and
00014   limitations under the License.
00015 
00016   MagickCore utility methods.
00017 */
00018 #ifndef _MAGICKCORE_UTILITY_H
00019 #define _MAGICKCORE_UTILITY_H
00020 
00021 #if defined(__cplusplus) || defined(c_plusplus)
00022 extern "C" {
00023 #endif
00024 
00025 typedef enum
00026 {
00027   UndefinedPath,
00028   MagickPath,
00029   RootPath,
00030   HeadPath,
00031   TailPath,
00032   BasePath,
00033   ExtensionPath,
00034   SubimagePath,
00035   CanonicalPath
00036 } PathType;
00037 
00038 extern MagickExport char
00039   *Base64Encode(const unsigned char *,const size_t,size_t *);
00040 
00041 extern MagickExport int
00042   SystemCommand(const MagickBooleanType,const MagickBooleanType,const char *,
00043     ExceptionInfo *);
00044 
00045 extern MagickExport MagickBooleanType
00046   AcquireUniqueFilename(char *),
00047   AcquireUniqueSymbolicLink(const char *,char *),
00048   ExpandFilenames(int *,char ***),
00049   GetPathAttributes(const char *,void *),
00050   IsMagickTrue(const char *),
00051   IsPathAccessible(const char *);
00052 
00053 extern MagickExport size_t
00054   MultilineCensus(const char *);
00055 
00056 extern MagickExport unsigned char
00057   *Base64Decode(const char *, size_t *);
00058 
00059 extern MagickExport void
00060   AppendImageFormat(const char *,char *),
00061   GetPathComponent(const char *,PathType,char *);
00062 
00063 #if defined(__cplusplus) || defined(c_plusplus)
00064 }
00065 #endif
00066 
00067 #endif