MagickCore  6.9.12-19
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,
32  *decode,
33  *encode,
34  *commands;
35 
36  ssize_t
38 
41  spawn,
42  stealth;
43 
45  *previous,
46  *next; /* deprecated, use GetDelegateInfoList() */
47 
48  size_t
50 
53 } DelegateInfo;
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 GetDelegateThreadSupport(const DelegateInfo *delegate_info)
Definition: delegate.c:1592
MagickExport const DelegateInfo ** GetDelegateInfoList(const char *pattern, size_t *number_delegates, ExceptionInfo *exception)
Definition: delegate.c:1396
Definition: exception.h:102
MagickExport char ** GetDelegateList(const char *pattern, size_t *number_delegates, ExceptionInfo *exception)
Definition: delegate.c:1492
Definition: image.h:361
MagickExport const DelegateInfo * GetDelegateInfo(const char *decode, const char *encode, ExceptionInfo *exception)
Definition: delegate.c:1280
struct _DelegateInfo * previous
Definition: delegate.h:44
MagickExport ssize_t GetDelegateMode(const DelegateInfo *delegate_info)
Definition: delegate.c:1560
MagickExport const char * GetDelegateCommands(const DelegateInfo *delegate_info)
Definition: delegate.c:1243
char * commands
Definition: delegate.h:31
MagickBooleanType thread_support
Definition: delegate.h:40
Definition: image.h:152
SemaphoreInfo * semaphore
Definition: delegate.h:52
MagickBooleanType
Definition: magick-type.h:198
MagickExport char * GetDelegateCommand(const ImageInfo *image_info, Image *image, const char *decode, const char *encode, ExceptionInfo *exception)
Definition: delegate.c:1174
char * decode
Definition: delegate.h:31
MagickExport void DelegateComponentTerminus(void)
Definition: delegate.c:286
size_t signature
Definition: delegate.h:49
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:333
MagickBooleanType spawn
Definition: delegate.h:40
MagickBooleanType stealth
Definition: delegate.h:40
Definition: delegate.h:28
MagickExport MagickBooleanType ListDelegateInfo(FILE *file, ExceptionInfo *exception)
Definition: delegate.c:2021
char * path
Definition: delegate.h:31
struct _DelegateInfo * next
Definition: delegate.h:44
MagickExport MagickBooleanType InvokeDelegate(ImageInfo *image_info, Image *image, const char *decode, const char *encode, ExceptionInfo *exception)
Definition: delegate.c:1741
#define MagickExport
Definition: method-attribute.h:80
char * encode
Definition: delegate.h:31
MagickExport MagickBooleanType DelegateComponentGenesis(void)
Definition: delegate.c:240
struct _DelegateInfo DelegateInfo
Definition: semaphore.c:60