summaryrefslogtreecommitdiff
path: root/dmagick/c/utility.d
diff options
context:
space:
mode:
authorMike Wey2011-01-08 17:48:30 +0100
committerMike Wey2011-01-08 17:48:30 +0100
commitcbac78bbec726017355cb455a776f193e7fc3022 (patch)
treea41c564c7ef5aec9dd2b18e58e94b213193044be /dmagick/c/utility.d
initial checkin
Diffstat (limited to 'dmagick/c/utility.d')
-rw-r--r--dmagick/c/utility.d51
1 files changed, 51 insertions, 0 deletions
diff --git a/dmagick/c/utility.d b/dmagick/c/utility.d
new file mode 100644
index 0000000..bc4e2db
--- /dev/null
+++ b/dmagick/c/utility.d
@@ -0,0 +1,51 @@
+module dmagick.c.utility;
+
+import core.stdc.stdio;
+import core.sys.posix.sys.types;
+
+import dmagick.c.exception;
+import dmagick.c.magickType;
+
+extern(C)
+{
+ enum PathType
+ {
+ UndefinedPath,
+ MagickPath,
+ RootPath,
+ HeadPath,
+ TailPath,
+ BasePath,
+ ExtensionPath,
+ SubimagePath,
+ CanonicalPath
+ }
+
+ char* Base64Encode(const ubyte*, const size_t, size_t*);
+ char** GetPathComponents(const char*, size_t*);
+ char** ListFiles(const char*, const char*, size_t*);
+
+ FILE* OpenMagickStream(const char*, const char*);
+
+ int SystemCommand(const MagickBooleanType, const MagickBooleanType, const char*, ExceptionInfo*);
+
+ MagickBooleanType AcquireUniqueFilename(char*);
+ MagickBooleanType AcquireUniqueSymbolicLink(const char*, char*);
+ MagickBooleanType ExpandFilenames(int*, char***);
+ MagickBooleanType GetPathAttributes(const char*, void*);
+ MagickBooleanType GetExecutionPath(char*, const size_t);
+ MagickBooleanType IsMagickTrue(const char*);
+ MagickBooleanType IsPathAccessible(const char*);
+
+ size_t MultilineCensus(const char*);
+
+ ssize_t GetMagickPageSize();
+
+ ubyte* Base64Decode(const char*, size_t*);
+
+ void AppendImageFormat(const char*, char*);
+ void ChopPathComponents(char*, const size_t);
+ void ExpandFilename(char*);
+ void GetPathComponent(const char*, PathType, char*);
+ void MagickDelay(const MagickSizeType);
+}