~ubuntu-branches/ubuntu/intrepid/graphicsmagick/intrepid

« back to all changes in this revision

Viewing changes to magick/mac.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2006-05-06 16:28:08 UTC
  • Revision ID: james.westby@ubuntu.com-20060506162808-vt2ni3r5nytcszms
Tags: upstream-1.1.7
ImportĀ upstreamĀ versionĀ 1.1.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  Copyright (C) 2003 GraphicsMagick Group
 
3
  Copyright (C) 2002 ImageMagick Studio
 
4
  Copyright 1991-1999 E. I. du Pont de Nemours and Company
 
5
 
 
6
  This program is covered by multiple licenses, which are described in
 
7
  Copyright.txt. You should have received a copy of Copyright.txt with this
 
8
  package; otherwise see http://www.graphicsmagick.org/www/Copyright.html.
 
9
 
 
10
  Macintosh Utility Methods for ImageMagick.
 
11
*/
 
12
#ifndef _MAGICK_MAC_H
 
13
#define _MAGICK_MAC_H
 
14
 
 
15
#if defined(__cplusplus) || defined(c_plusplus)
 
16
extern "C" {
 
17
#endif
 
18
 
 
19
#include <locale.h>
 
20
#include <stat.h>
 
21
#include <errno.h>
 
22
#include <Errors.h>
 
23
#include <Files.h>
 
24
 
 
25
/*
 
26
  Define declarations.
 
27
*/
 
28
#define S_IREAD  00400
 
29
#define S_IWRITE  00200
 
30
 
 
31
/*
 
32
  Typedef declarations.
 
33
*/
 
34
typedef struct _DIR
 
35
{
 
36
  int
 
37
    d_VRefNum;
 
38
 
 
39
  long int
 
40
    d_DirID;
 
41
 
 
42
  int
 
43
    d_index;
 
44
} DIR;
 
45
 
 
46
struct dirent
 
47
{
 
48
  char
 
49
    d_name[255];
 
50
 
 
51
  int
 
52
    d_namlen;
 
53
};
 
54
 
 
55
/*
 
56
  Macintosh utilities routines.
 
57
*/
 
58
extern MagickExport DIR
 
59
  *opendir(const char *);
 
60
 
 
61
MagickExport Image
 
62
  *ReadPICTImage(const ImageInfo *,ExceptionInfo *);
 
63
 
 
64
extern MagickExport int
 
65
  Exit(int),
 
66
  MACSystemCommand(const char *);
 
67
 
 
68
extern MagickExport long
 
69
  telldir(DIR *);
 
70
 
 
71
extern MagickExport struct dirent
 
72
  *readdir(DIR *);
 
73
 
 
74
extern MagickExport unsigned int
 
75
  MACIsMagickConflict(const char *);
 
76
 
 
77
extern MagickExport void
 
78
  closedir(DIR *),
 
79
  MACErrorHandler(const ExceptionType,const char *,const char *),
 
80
  MACWarningHandler(const ExceptionType,const char *,const char *),
 
81
  ProcessPendingEvents(const char *),
 
82
  seekdir(DIR *,long),
 
83
  SetApplicationType(const char *,const char *,OSType);
 
84
 
 
85
#if defined(__cplusplus) || defined(c_plusplus)
 
86
}
 
87
#endif
 
88
 
 
89
#endif