MagickCore  6.9.11-60
Convert, Edit, Or Compose Bitmap Images
delegate.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 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 "magick/semaphore.h"
27 
28 typedef struct _DelegateInfo
29 {
30  char
31  *path,
35 
36  ssize_t
38 
43 
44  struct _DelegateInfo
46  *next; /* deprecated, use GetDelegateInfoList() */
47 
48  size_t
50 
54 
55 extern MagickExport char
56  *GetDelegateCommand(const ImageInfo *,Image *,const char *,const char *,
57  ExceptionInfo *),
58  **GetDelegateList(const char *,size_t *,ExceptionInfo *);
59 
60 extern MagickExport const char
62 
63 extern MagickExport const DelegateInfo
64  *GetDelegateInfo(const char *,const char *,ExceptionInfo *exception),
65  **GetDelegateInfoList(const char *,size_t *,ExceptionInfo *);
66 
67 extern MagickExport int
69  const char *,char *,ExceptionInfo *);
70 
71 extern MagickExport ssize_t
73 
77  InvokeDelegate(ImageInfo *,Image *,const char *,const char *,ExceptionInfo *),
79 
80 extern MagickExport void
82 
83 #if defined(__cplusplus) || defined(c_plusplus)
84 }
85 #endif
86 
87 #endif
MagickExport MagickBooleanType InvokeDelegate(ImageInfo *, Image *, const char *, const char *, ExceptionInfo *)
MagickExport ssize_t GetDelegateMode(const DelegateInfo *)
Definition: delegate.c:1548
MagickExport void DelegateComponentTerminus(void)
Definition: delegate.c:278
MagickExport int ExternalDelegateCommand(const MagickBooleanType, const MagickBooleanType, const char *, char *, ExceptionInfo *)
Definition: delegate.c:325
MagickExport char * GetDelegateCommand(const ImageInfo *, Image *, const char *, const char *, ExceptionInfo *)
MagickExport MagickBooleanType DelegateComponentGenesis(void)
MagickExport char ** GetDelegateList(const char *, size_t *, ExceptionInfo *)
Definition: delegate.c:1480
MagickExport MagickBooleanType ListDelegateInfo(FILE *, ExceptionInfo *)
Definition: delegate.c:2009
MagickExport const DelegateInfo * GetDelegateInfo(const char *, const char *, ExceptionInfo *exception)
struct _DelegateInfo DelegateInfo
MagickExport MagickBooleanType GetDelegateThreadSupport(const DelegateInfo *)
MagickExport const char * GetDelegateCommands(const DelegateInfo *)
Definition: delegate.c:1231
MagickExport const DelegateInfo ** GetDelegateInfoList(const char *, size_t *, ExceptionInfo *)
Definition: delegate.c:1384
MagickBooleanType
Definition: magick-type.h:203
#define MagickExport
Definition: method-attribute.h:80
Definition: semaphore.c:61
Definition: delegate.h:29
MagickBooleanType spawn
Definition: delegate.h:41
SemaphoreInfo * semaphore
Definition: delegate.h:52
char * path
Definition: delegate.h:31
MagickBooleanType stealth
Definition: delegate.h:42
char * commands
Definition: delegate.h:34
struct _DelegateInfo * next
Definition: delegate.h:46
char * encode
Definition: delegate.h:33
ssize_t mode
Definition: delegate.h:37
MagickBooleanType thread_support
Definition: delegate.h:40
struct _DelegateInfo * previous
Definition: delegate.h:44
char * decode
Definition: delegate.h:32
size_t signature
Definition: delegate.h:49
Definition: exception.h:103
Definition: image.h:362
Definition: image.h:153