MagickCore  6.8.9
delegate.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2014 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  http://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 "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 ssize_t
69 
73  InvokeDelegate(ImageInfo *,Image *,const char *,const char *,ExceptionInfo *),
75 
76 extern MagickExport void
78 
79 #if defined(__cplusplus) || defined(c_plusplus)
80 }
81 #endif
82 
83 #endif
Definition: exception.h:102
Definition: image.h:356
struct _DelegateInfo * previous
Definition: delegate.h:44
MagickExport MagickBooleanType GetDelegateThreadSupport(const DelegateInfo *)
char * commands
Definition: delegate.h:31
MagickBooleanType thread_support
Definition: delegate.h:40
Definition: image.h:150
SemaphoreInfo * semaphore
Definition: delegate.h:52
MagickExport const char * GetDelegateCommands(const DelegateInfo *)
Definition: delegate.c:391
MagickExport const DelegateInfo ** GetDelegateInfoList(const char *, size_t *, ExceptionInfo *)
Definition: delegate.c:540
MagickBooleanType
Definition: magick-type.h:211
char * decode
Definition: delegate.h:31
MagickExport const DelegateInfo * GetDelegateInfo(const char *, const char *, ExceptionInfo *exception)
size_t signature
Definition: delegate.h:49
MagickExport MagickBooleanType ListDelegateInfo(FILE *, ExceptionInfo *)
Definition: delegate.c:1196
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
Definition: delegate.h:28
MagickExport void DelegateComponentTerminus(void)
Definition: delegate.c:274
char * path
Definition: delegate.h:31
struct _DelegateInfo * next
Definition: delegate.h:44
MagickExport char ** GetDelegateList(const char *, size_t *, ExceptionInfo *)
Definition: delegate.c:636
MagickExport MagickBooleanType DelegateComponentGenesis(void)
MagickExport ssize_t GetDelegateMode(const DelegateInfo *)
Definition: delegate.c:704
#define MagickExport
Definition: method-attribute.h:98
char * encode
Definition: delegate.h:31
struct _DelegateInfo DelegateInfo
Definition: semaphore.c:58
MagickExport MagickBooleanType InvokeDelegate(ImageInfo *, Image *, const char *, const char *, ExceptionInfo *)