MagickCore 6.9.12-20
Convert, Edit, Or Compose Bitmap Images
mac.h
Go to the documentation of this file.
1/*
2 Copyright 1999-2021 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
4
5 You may not use this file except in compliance with the License. You may
6 obtain a copy of the License at
7
8 https://imagemagick.org/script/license.php
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 MagickCore utility methods.
17*/
18#ifndef MAGICKCORE_MAC_H
19#define MAGICKCORE_MAC_H
20
21#include <locale.h>
22#include <Errors.h>
23#include <Files.h>
24#include <errno.h>
25
26#if defined(MAGICKCORE_POSIX_SUPPORT_VERSION)
27# include <dirent.h>
28# if !defined(DISABLE_SIOUX)
29# include <SIOUX.h>
30# endif
31#else
32# include <stat.h>
33
34#if defined(__cplusplus) || defined(c_plusplus)
35extern "C" {
36#endif
37
38#define S_IREAD 00400
39#define S_IWRITE 00200
40
41typedef struct _DIR
42{
43 int
45
46 long
48
49 int
52
53struct dirent
54{
55 char
56 d_name[255];
57
58 int
60};
61#endif
62
65
66extern MagickExport int
67 Exit(int),
68 MACSystemCommand(const char *);
69
71 MACIsMagickConflict(const char *);
72
73extern MagickExport void
74 MACErrorHandler(const ExceptionType,const char *,const char *),
75 MACWarningHandler(const ExceptionType,const char *,const char *),
76 ProcessPendingEvents(const char *),
77 SetApplicationType(const char *,const char *,OSType);
78
79#if defined(DISABLE_SIOUX)
80typedef void
81 (*MACEventHookPtr)(const char *);
82
83typedef void
84 (*MACErrorHookPtr)(const short,const char *text);
85
86extern MagickExport void
87 MACSetErrorHook(MACErrorHookPtr),
88 MACSetEventHook(MACEventHookPtr),
89 MACFatalErrorHandler(const ExceptionType,const char *,const char *);
90#endif
91
92#if !defined(MAGICKCORE_POSIX_SUPPORT_VERSION)
93extern MagickExport DIR
94 *opendir(const char *);
95
96extern MagickExport long
98
99extern MagickExport struct dirent
101
102extern MagickExport void
103 seekdir(DIR *,long),
105#endif
106
107#if defined(__cplusplus) || defined(c_plusplus)
108}
109#endif
110
111#endif
ExceptionType
Definition: exception.h:29
MagickExport int Exit(int)
MagickExport Image * ReadPICTImage(const ImageInfo *, ExceptionInfo *)
MagickExport int MACSystemCommand(const char *)
MagickExport void SetApplicationType(const char *, const char *, OSType)
MagickExport void closedir(DIR *)
MagickExport DIR * opendir(const char *)
struct _DIR DIR
MagickExport void MACErrorHandler(const ExceptionType, const char *, const char *)
MagickExport void ProcessPendingEvents(const char *)
MagickExport MagickBooleanType MACIsMagickConflict(const char *)
MagickExport long telldir(DIR *)
MagickExport struct dirent * readdir(DIR *)
MagickExport void MACWarningHandler(const ExceptionType, const char *, const char *)
MagickExport void seekdir(DIR *, long)
MagickBooleanType
Definition: magick-type.h:199
#define MagickExport
Definition: method-attribute.h:80
Definition: mac.h:42
long d_DirID
Definition: mac.h:47
int d_VRefNum
Definition: mac.h:44
int d_index
Definition: mac.h:50
Definition: exception.h:103
Definition: image.h:362
Definition: image.h:153
Definition: mac.h:54
char d_name[255]
Definition: mac.h:56
int d_namlen
Definition: mac.h:59