MagickCore 6.9.13
Loading...
Searching...
No Matches
delegate.h
1/*
2 Copyright 1999 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)
22extern "C" {
23#endif
24
25#include <stdarg.h>
26#include "magick/semaphore.h"
27
28typedef struct _DelegateInfo
29{
30 char
31 *path,
32 *decode,
33 *encode,
34 *commands;
35
36 ssize_t
37 mode;
38
39 MagickBooleanType
40 thread_support,
41 spawn,
42 stealth;
43
44 struct _DelegateInfo
45 *previous,
46 *next; /* deprecated, use GetDelegateInfoList() */
47
48 size_t
49 signature;
50
52 *semaphore;
54
55extern MagickExport char
56 *GetDelegateCommand(const ImageInfo *,Image *,const char *,const char *,
58 **GetDelegateList(const char *,size_t *,ExceptionInfo *);
59
60extern MagickExport const char
61 *GetDelegateCommands(const DelegateInfo *);
62
63extern MagickExport const DelegateInfo
64 *GetDelegateInfo(const char *,const char *,ExceptionInfo *exception),
65 **GetDelegateInfoList(const char *,size_t *,ExceptionInfo *);
66
67extern MagickExport int
68 ExternalDelegateCommand(const MagickBooleanType,const MagickBooleanType,
69 const char *,char *,ExceptionInfo *);
70
71extern MagickExport ssize_t
72 GetDelegateMode(const DelegateInfo *);
73
74extern MagickExport MagickBooleanType
75 DelegateComponentGenesis(void),
76 GetDelegateThreadSupport(const DelegateInfo *),
77 InvokeDelegate(ImageInfo *,Image *,const char *,const char *,ExceptionInfo *),
78 ListDelegateInfo(FILE *,ExceptionInfo *);
79
80extern MagickExport void
81 DelegateComponentTerminus(void);
82
83#if defined(__cplusplus) || defined(c_plusplus)
84}
85#endif
86
87#endif