]> git.saurik.com Git - apple/security.git/blob - utilities/SecurityTool/security_tool_commands.h
Security-55471.14.tar.gz
[apple/security.git] / utilities / SecurityTool / security_tool_commands.h
1 //
2 // security_tool_commands.h
3 // Security
4 //
5 // Created by Mitch Adler on 1/9/13.
6 //
7 //
8
9 // This is included to make SECURITY_COMMAND macros result in declarations of
10 // commands for use in SecurityTool
11
12 #ifndef SECURITY_COMMAND
13 #define SECURITY_COMMAND(name, function, parameters, description) int function(int argc, char * const *argv);
14
15 #if TARGET_OS_EMBEDDED
16 #define SECURITY_COMMAND_IOS(name, function, parameters, description) int function(int argc, char * const *argv);
17 #else
18 #define SECURITY_COMMAND_IOS(name, function, parameters, description) extern int command_not_on_this_platform(int argc, char * const *argv);
19 #endif
20
21 #if (TARGET_OS_MAC && !(TARGET_OS_EMBEDDED || TARGET_OS_IPHONE))
22 #define SECURITY_COMMAND_MAC(name, function, parameters, description) int function(int argc, char * const *argv);
23 #else
24 #define SECURITY_COMMAND_MAC(name, function, parameters, description) extern int command_not_on_this_platform(int argc, char * const *argv);
25 #endif
26
27
28 #endif