MagickCore  7.0.7
Convert, Edit, Or Compose Bitmap Images
delegate.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2018 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://www.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 delegates methods.
17 */
18 #ifndef MAGICKCORE_DELEGATE_H
19 #define MAGICKCORE_DELEGATE_H
20 
21 #if defined(__cplusplus) || defined(c_plusplus)
22 extern "C" {
23 #endif
24 
25 #include <stdarg.h>
26 #include "MagickCore/semaphore.h"
27 
28 typedef struct _DelegateInfo
29 {
30  char
31  *path,
32  *decode,
33  *encode,
34  *commands;
35 
36  ssize_t
38 
41  spawn,
42  stealth;
43 
46 
47  size_t
49 } DelegateInfo;
50 
51 extern MagickExport char
52  *GetDelegateCommand(const ImageInfo *,Image *,const char *,const char *,
53  ExceptionInfo *),
54  **GetDelegateList(const char *,size_t *,ExceptionInfo *);
55 
56 extern MagickExport const char
58 
59 extern MagickExport const DelegateInfo
60  *GetDelegateInfo(const char *,const char *,ExceptionInfo *exception),
61  **GetDelegateInfoList(const char *,size_t *,ExceptionInfo *);
62 
63 extern MagickExport int
65  const char *,char *,ExceptionInfo *);
66 
67 extern MagickExport ssize_t
69 
72  InvokeDelegate(ImageInfo *,Image *,const char *,const char *,ExceptionInfo *),
74 
75 #if defined(__cplusplus) || defined(c_plusplus)
76 }
77 #endif
78 
79 #endif
MagickExport int ExternalDelegateCommand(const MagickBooleanType, const MagickBooleanType, const char *, char *, ExceptionInfo *)
Definition: delegate.c:325
MagickExport MagickBooleanType GetDelegateThreadSupport(const DelegateInfo *)
char * commands
Definition: delegate.h:31
MagickBooleanType thread_support
Definition: delegate.h:40
Definition: image.h:151
SemaphoreInfo * semaphore
Definition: delegate.h:45
MagickExport const char * GetDelegateCommands(const DelegateInfo *)
Definition: delegate.c:1120
MagickExport const DelegateInfo ** GetDelegateInfoList(const char *, size_t *, ExceptionInfo *)
Definition: delegate.c:1274
MagickBooleanType
Definition: magick-type.h:156
char * decode
Definition: delegate.h:31
MagickExport const DelegateInfo * GetDelegateInfo(const char *, const char *, ExceptionInfo *exception)
size_t signature
Definition: delegate.h:48
MagickExport MagickBooleanType ListDelegateInfo(FILE *, ExceptionInfo *)
Definition: delegate.c:1888
ssize_t mode
Definition: delegate.h:37
MagickExport char * GetDelegateCommand(const ImageInfo *, Image *, const char *, const char *, ExceptionInfo *)
MagickBooleanType spawn
Definition: delegate.h:40
MagickBooleanType stealth
Definition: delegate.h:40
char * path
Definition: delegate.h:31
MagickExport char ** GetDelegateList(const char *, size_t *, ExceptionInfo *)
Definition: delegate.c:1371
MagickExport ssize_t GetDelegateMode(const DelegateInfo *)
Definition: delegate.c:1440
#define MagickExport
char * encode
Definition: delegate.h:31
struct _DelegateInfo DelegateInfo
MagickExport MagickBooleanType InvokeDelegate(ImageInfo *, Image *, const char *, const char *, ExceptionInfo *)