utility.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. Copyright 1999 ImageMagick Studio LLC, a non-profit organization
  3. dedicated to making software imaging solutions freely available.
  4. You may not use this file except in compliance with the License. You may
  5. obtain a copy of the License at
  6. https://imagemagick.org/script/license.php
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. MagickCore utility methods.
  13. */
  14. #ifndef MAGICKCORE_UTILITY_H
  15. #define MAGICKCORE_UTILITY_H
  16. #if defined(__cplusplus) || defined(c_plusplus)
  17. extern "C" {
  18. #endif
  19. typedef enum
  20. {
  21. UndefinedPath,
  22. MagickPath,
  23. RootPath,
  24. HeadPath,
  25. TailPath,
  26. BasePath,
  27. ExtensionPath,
  28. SubimagePath,
  29. CanonicalPath,
  30. SubcanonicalPath,
  31. BasePathSansCompressExtension
  32. } PathType;
  33. extern MagickExport char
  34. *Base64Encode(const unsigned char *,const size_t,size_t *),
  35. **GetPathComponents(const char *,size_t *),
  36. **ListFiles(const char *,const char *,size_t *);
  37. extern MagickExport MagickBooleanType
  38. AcquireUniqueFilename(char *),
  39. AcquireUniqueSymbolicLink(const char *,char *),
  40. ExpandFilenames(int *,char ***),
  41. GetPathAttributes(const char *,void *),
  42. GetExecutionPath(char *,const size_t),
  43. IsPathAccessible(const char *);
  44. extern MagickExport size_t
  45. MultilineCensus(const char *) magick_attribute((__pure__));
  46. extern MagickExport ssize_t
  47. GetMagickPageSize(void);
  48. extern MagickExport unsigned char
  49. *Base64Decode(const char *, size_t *);
  50. extern MagickExport void
  51. AppendImageFormat(const char *,char *),
  52. ChopPathComponents(char *,const size_t),
  53. ExpandFilename(char *),
  54. GetPathComponent(const char *,PathType,char *),
  55. MagickDelay(const MagickSizeType);
  56. #if defined(__cplusplus) || defined(c_plusplus)
  57. }
  58. #endif
  59. #endif