string: strerror_r() for windows.
[sliver-openvswitch.git] / lib / ofp-version-opt.h
1 #ifndef OFP_VERSION_H
2 #define OFP_VERSION_H 1
3
4 #include <openflow/openflow-common.h>
5 #include "util.h"
6 #include "ofp-util.h"
7
8 #define OFP_VERSION_LONG_OPTIONS                                \
9         {"version",     no_argument, NULL, 'V'},                \
10         {"protocols", required_argument, NULL, 'O'}
11
12 #define OFP_VERSION_OPTION_HANDLERS                             \
13         case 'V':                                               \
14             ovs_print_version(OFP10_VERSION, OFP13_VERSION);    \
15             exit(EXIT_SUCCESS);                                 \
16                                                                 \
17         case 'O':                                               \
18             set_allowed_ofp_versions(optarg);                   \
19             break;
20
21 uint32_t get_allowed_ofp_versions(void);
22 void set_allowed_ofp_versions(const char *string);
23 void mask_allowed_ofp_versions(uint32_t);
24 void ofp_version_usage(void);
25
26 #endif