MagickCore  6.9.10
Convert, Edit, Or Compose Bitmap Images
mac.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2019 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.
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)
35 extern "C" {
36 #endif
37 
38 #define S_IREAD 00400
39 #define S_IWRITE 00200
40 
41 typedef struct _DIR
42 {
43  int
45 
46  long
48 
49  int
51 } DIR;
52 
53 struct dirent
54 {
55  char
56  d_name[255];
57 
58  int
60 };
61 #endif
62 
65 
66 extern MagickExport int
67  Exit(int),
68  MACSystemCommand(const char *);
69 
71  MACIsMagickConflict(const char *);
72 
73 extern 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)
80 typedef void
81  (*MACEventHookPtr)(const char *);
82 
83 typedef void
84  (*MACErrorHookPtr)(const short,const char *text);
85 
86 extern 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)
93 extern MagickExport DIR
94  *opendir(const char *);
95 
96 extern MagickExport long
97  telldir(DIR *);
98 
99 extern MagickExport struct dirent
100  *readdir(DIR *);
101 
102 extern MagickExport void
103  seekdir(DIR *,long),
104  closedir(DIR *);
105 #endif
106 
107 #if defined(__cplusplus) || defined(c_plusplus)
108 }
109 #endif
110 
111 #endif
MACIsMagickConflict
MagickExport MagickBooleanType MACIsMagickConflict(const char *)
MagickExport
#define MagickExport
Definition: method-attribute.h:80
_Image::debug
MagickBooleanType debug
Definition: image.h:290
SetImageProgress
MagickExport MagickBooleanType SetImageProgress(const Image *image, const char *tag, const MagickOffsetType offset, const MagickSizeType extent)
Definition: monitor.c:136
magick.h
_DIR
Definition: mac.h:41
GetMagickModule
#define GetMagickModule()
Definition: log.h:29
_LogInfo::path
char * path
Definition: log.c:114
FormatLocaleString
MagickExport ssize_t FormatLocaleString(char *magick_restrict string, const size_t length, const char *magick_restrict format,...)
Definition: locale.c:502
CloseBlob
MagickExport MagickBooleanType CloseBlob(Image *)
dirent::d_namlen
int d_namlen
Definition: mac.h:59
CorruptImageError
@ CorruptImageError
Definition: exception.h:60
ReadBinaryBlobMode
@ ReadBinaryBlobMode
Definition: blob-private.h:39
SetPixelRed
#define SetPixelRed(pixel, value)
Definition: pixel-accessor.h:82
image-private.h
monitor.h
_Image::columns
size_t columns
Definition: image.h:174
AcquireImageColormap
MagickExport MagickBooleanType AcquireImageColormap(Image *image, const size_t colors)
Definition: colormap.c:102
SetPixelGreen
#define SetPixelGreen(pixel, value)
Definition: pixel-accessor.h:77
OpenBlob
MagickExport MagickBooleanType OpenBlob(const ImageInfo *, Image *, const BlobMode, ExceptionInfo *)
IndexPacket
Quantum IndexPacket
Definition: pixel.h:129
PixelsPerInchResolution
@ PixelsPerInchResolution
Definition: image.h:93
ResourceLimitError
@ ResourceLimitError
Definition: exception.h:55
GetAuthenticIndexQueue
MagickExport IndexPacket * GetAuthenticIndexQueue(const Image *image)
Definition: cache.c:1325
Exit
MagickExport int Exit(int)
_PixelPacket::blue
Quantum blue
Definition: pixel.h:143
utility.h
readdir
MagickExport struct dirent * readdir(DIR *)
string_.h
quantum.h
MagickTrue
@ MagickTrue
Definition: magick-type.h:194
blob.h
GetBlobSize
MagickExport MagickSizeType GetBlobSize(const Image *image)
Definition: blob.c:1507
CopyMagickString
MagickExport size_t CopyMagickString(char *destination, const char *source, const size_t length)
Definition: string.c:752
AcquireImage
MagickExport Image * AcquireImage(const ImageInfo *image_info)
Definition: image.c:152
TraceEvent
@ TraceEvent
Definition: log.h:38
ProcessPendingEvents
MagickExport void ProcessPendingEvents(const char *)
AcquireMagickMemory
MagickExport void * AcquireMagickMemory(const size_t size)
Definition: memory.c:473
_Image::colormap
PixelPacket * colormap
Definition: image.h:180
FormatLocaleFile
MagickExport ssize_t FormatLocaleFile(FILE *file, const char *magick_restrict format,...)
Definition: locale.c:407
_Image
Definition: image.h:152
seekdir
MagickExport void seekdir(DIR *, long)
QueueAuthenticPixels
MagickExport PixelPacket * QueueAuthenticPixels(Image *image, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
Definition: cache.c:4514
MagickMax
#define MagickMax(x, y)
Definition: image-private.h:26
_LogInfo::filename
char * filename
Definition: log.c:116
dirent
Definition: mac.h:53
LocaleCompare
MagickExport int LocaleCompare(const char *p, const char *q)
Definition: locale.c:1440
_Image::colors
size_t colors
Definition: image.h:177
_Image::y_resolution
double y_resolution
Definition: image.h:210
_Image::x_resolution
double x_resolution
Definition: image.h:209
SetPixelBlue
#define SetPixelBlue(pixel, value)
Definition: pixel-accessor.h:71
_ImageInfo
Definition: image.h:361
LoadImageTag
const MagickExport char LoadImageTag[]
Definition: image-private.h:46
MagickFalse
@ MagickFalse
Definition: magick-type.h:193
SyncAuthenticPixels
MagickExport MagickBooleanType SyncAuthenticPixels(Image *image, ExceptionInfo *exception)
Definition: cache.c:5589
STDIN_FILENO
#define STDIN_FILENO
Definition: studio.h:350
MACErrorHandler
MagickExport void MACErrorHandler(const ExceptionType, const char *, const char *)
ExceptionType
ExceptionType
Definition: exception.h:28
_DIR::d_DirID
long d_DirID
Definition: mac.h:47
ThrowReaderException
#define ThrowReaderException(severity, tag)
Definition: exception-private.h:76
_PixelPacket::red
Quantum red
Definition: pixel.h:145
ReadPICTImage
MagickExport Image * ReadPICTImage(const ImageInfo *, ExceptionInfo *)
_LogInfo::name
char * name
Definition: log.c:115
_Image::rows
size_t rows
Definition: image.h:175
_PixelPacket::green
Quantum green
Definition: pixel.h:144
MagickBooleanType
MagickBooleanType
Definition: magick-type.h:191
SetApplicationType
MagickExport void SetApplicationType(const char *, const char *, OSType)
RelinquishMagickMemory
MagickExport void * RelinquishMagickMemory(void *memory)
Definition: memory.c:1077
_ExceptionInfo
Definition: exception.h:102
DIR
struct _DIR DIR
SetPixelIndex
#define SetPixelIndex(indexes, value)
Definition: pixel-accessor.h:78
studio.h
_Image::storage_class
ClassType storage_class
Definition: image.h:155
telldir
MagickExport long telldir(DIR *)
MACSystemCommand
MagickExport int MACSystemCommand(const char *)
closedir
MagickExport void closedir(DIR *)
monitor-private.h
mac.h
PseudoClass
@ PseudoClass
Definition: magick-type.h:188
_DIR::d_VRefNum
int d_VRefNum
Definition: mac.h:44
_DIR::d_index
int d_index
Definition: mac.h:50
pixel-accessor.h
exception-private.h
exception.h
MACWarningHandler
MagickExport void MACWarningHandler(const ExceptionType, const char *, const char *)
GetClientName
const MagickExport char * GetClientName(void)
Definition: client.c:64
list.h
LogMagickEvent
MagickExport MagickBooleanType LogMagickEvent(const LogEventType type, const char *module, const char *function, const size_t line, const char *format,...)
Definition: log.c:1399
MagickCoreTerminus
MagickExport void MagickCoreTerminus(void)
Definition: magick.c:1365
MaxTextExtent
#define MaxTextExtent
Definition: method-attribute.h:89
_Image::units
ResolutionType units
Definition: image.h:198
ReadBlob
MagickExport ssize_t ReadBlob(Image *, const size_t, unsigned char *)
MagickMin
#define MagickMin(x, y)
Definition: image-private.h:27
client.h
dirent::d_name
char d_name[255]
Definition: mac.h:56
opendir
MagickExport DIR * opendir(const char *)
_PixelPacket
Definition: pixel.h:131