blob: d8d96c3ba4375a0e471d651058dd0472a9a4147b [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001/*
Cristy7ce65e72015-12-12 18:03:16 -05002 Copyright 1999-2016 ImageMagick Studio LLC, a non-profit organization
cristy3ed852e2009-09-05 21:47:34 +00003 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)
22extern "C" {
23#endif
24
cristy191ba5c2014-03-16 21:26:40 +000025#include <stdarg.h>
26#include "MagickCore/semaphore.h"
27
cristy3ed852e2009-09-05 21:47:34 +000028typedef struct _DelegateInfo
29{
30 char
31 *path,
32 *decode,
33 *encode,
34 *commands;
dirka7fc6892014-10-18 16:44:49 +000035
cristybb503372010-05-27 20:51:26 +000036 ssize_t
cristy3ed852e2009-09-05 21:47:34 +000037 mode;
dirka7fc6892014-10-18 16:44:49 +000038
cristy3ed852e2009-09-05 21:47:34 +000039 MagickBooleanType
40 thread_support,
41 spawn,
42 stealth;
cristy191ba5c2014-03-16 21:26:40 +000043
44 SemaphoreInfo
45 *semaphore;
dirka7fc6892014-10-18 16:44:49 +000046
cristybb503372010-05-27 20:51:26 +000047 size_t
cristy3ed852e2009-09-05 21:47:34 +000048 signature;
49} DelegateInfo;
50
51extern MagickExport char
52 *GetDelegateCommand(const ImageInfo *,Image *,const char *,const char *,
53 ExceptionInfo *),
cristybb503372010-05-27 20:51:26 +000054 **GetDelegateList(const char *,size_t *,ExceptionInfo *);
cristy3ed852e2009-09-05 21:47:34 +000055
56extern MagickExport const char
57 *GetDelegateCommands(const DelegateInfo *);
58
59extern MagickExport const DelegateInfo
60 *GetDelegateInfo(const char *,const char *,ExceptionInfo *exception),
cristybb503372010-05-27 20:51:26 +000061 **GetDelegateInfoList(const char *,size_t *,ExceptionInfo *);
cristy3ed852e2009-09-05 21:47:34 +000062
cristy83b793b2014-10-18 13:21:13 +000063extern MagickExport int
64 ExternalDelegateCommand(const MagickBooleanType,const MagickBooleanType,
65 const char *,char *,ExceptionInfo *);
66
cristybb503372010-05-27 20:51:26 +000067extern MagickExport ssize_t
cristy3ed852e2009-09-05 21:47:34 +000068 GetDelegateMode(const DelegateInfo *);
69
70extern MagickExport MagickBooleanType
71 GetDelegateThreadSupport(const DelegateInfo *),
72 InvokeDelegate(ImageInfo *,Image *,const char *,const char *,ExceptionInfo *),
73 ListDelegateInfo(FILE *,ExceptionInfo *);
74
cristy3ed852e2009-09-05 21:47:34 +000075#if defined(__cplusplus) || defined(c_plusplus)
76}
77#endif
78
79#endif