2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

util: New function set_program_name_version().

With this function, users of the Open vSwitch libraries which
should not have the same version as Open vSwitch will have their
version displayed in unixctl and at the command line.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
Ethan Jackson
2012-04-06 11:47:51 -07:00
parent 2b540ecba2
commit e385ef551a
2 changed files with 21 additions and 6 deletions

View File

@@ -162,9 +162,10 @@ rightmost_1bit(uintmax_t x)
extern "C" {
#endif
void set_program_name__(const char *name, const char *date, const char *time);
void set_program_name__(const char *name, const char *version,
const char *date, const char *time);
#define set_program_name(name) \
set_program_name__(name, __DATE__, __TIME__)
set_program_name__(name, VERSION, __DATE__, __TIME__)
const char *get_program_version(void);
void ovs_print_version(uint8_t min_ofp, uint8_t max_ofp);