X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/c38e3ce98599a410a47dc10253faa4d5830f13b2..427c49bcad63d042b29ada2ac27e3dfc4845c779:/utilities/SecurityTool/security_tool_commands.h?ds=inline diff --git a/utilities/SecurityTool/security_tool_commands.h b/utilities/SecurityTool/security_tool_commands.h new file mode 100644 index 00000000..48a50f7a --- /dev/null +++ b/utilities/SecurityTool/security_tool_commands.h @@ -0,0 +1,28 @@ +// +// security_tool_commands.h +// Security +// +// Created by Mitch Adler on 1/9/13. +// +// + +// This is included to make SECURITY_COMMAND macros result in declarations of +// commands for use in SecurityTool + +#ifndef SECURITY_COMMAND +#define SECURITY_COMMAND(name, function, parameters, description) int function(int argc, char * const *argv); + +#if TARGET_OS_EMBEDDED +#define SECURITY_COMMAND_IOS(name, function, parameters, description) int function(int argc, char * const *argv); +#else +#define SECURITY_COMMAND_IOS(name, function, parameters, description) extern int command_not_on_this_platform(int argc, char * const *argv); +#endif + +#if (TARGET_OS_MAC && !(TARGET_OS_EMBEDDED || TARGET_OS_IPHONE)) +#define SECURITY_COMMAND_MAC(name, function, parameters, description) int function(int argc, char * const *argv); +#else +#define SECURITY_COMMAND_MAC(name, function, parameters, description) extern int command_not_on_this_platform(int argc, char * const *argv); +#endif + + +#endif