MagickCore  7.0.3
delegate.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. 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 "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 MagickBooleanType GetDelegateThreadSupport(const DelegateInfo *delegate_info)
Definition: delegate.c:1496
MagickExport const DelegateInfo ** GetDelegateInfoList(const char *pattern, size_t *number_delegates, ExceptionInfo *exception)
Definition: delegate.c:1297
MagickExport char ** GetDelegateList(const char *pattern, size_t *number_delegates, ExceptionInfo *exception)
Definition: delegate.c:1394
MagickExport const DelegateInfo * GetDelegateInfo(const char *decode, const char *encode, ExceptionInfo *exception)
Definition: delegate.c:1181
MagickExport ssize_t GetDelegateMode(const DelegateInfo *delegate_info)
Definition: delegate.c:1463
MagickExport const char * GetDelegateCommands(const DelegateInfo *delegate_info)
Definition: delegate.c:1143
char * commands
Definition: delegate.h:31
MagickBooleanType thread_support
Definition: delegate.h:40
Definition: image.h:151
SemaphoreInfo * semaphore
Definition: delegate.h:45
MagickBooleanType
Definition: magick-type.h:158
MagickExport char * GetDelegateCommand(const ImageInfo *image_info, Image *image, const char *decode, const char *encode, ExceptionInfo *exception)
Definition: delegate.c:1072
char * decode
Definition: delegate.h:31
size_t signature
Definition: delegate.h:48
ssize_t mode
Definition: delegate.h:37
MagickExport int ExternalDelegateCommand(const MagickBooleanType asynchronous, const MagickBooleanType verbose, const char *command, char *message, ExceptionInfo *exception)
Definition: delegate.c:341
MagickBooleanType spawn
Definition: delegate.h:40
MagickBooleanType stealth
Definition: delegate.h:40
MagickExport MagickBooleanType ListDelegateInfo(FILE *file, ExceptionInfo *exception)
Definition: delegate.c:1911
char * path
Definition: delegate.h:31
MagickExport MagickBooleanType InvokeDelegate(ImageInfo *image_info, Image *image, const char *decode, const char *encode, ExceptionInfo *exception)
Definition: delegate.c:1646
#define MagickExport
char * encode
Definition: delegate.h:31
struct _DelegateInfo DelegateInfo