-
Notifications
You must be signed in to change notification settings - Fork 38
APV versioning changes #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
8ebc1ef
b3ef663
184fd24
ae2736a
d00ba13
c517562
a0af74c
80342c7
1c62d66
0235af9
9448256
d1e72dd
bb44b85
3eabf4c
559e92d
35ffde0
99ca127
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| v0.1.13 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2153,5 +2153,26 @@ int oapvd_info(void *au, int au_size, oapv_au_info_t *aui) | |
| #endif // ENABLE_DECODER | ||
| /////////////////////////////////////////////////////////////////////////////// | ||
|
|
||
| #if defined(OAPV_VERSION_HEADER) | ||
|
|
||
| char * oapv_version() { | ||
| static char oapv_ver[64]; | ||
| snprintf(oapv_ver, sizeof(oapv_ver), "%d.%d.%d", OAPV_VERSION_MAJOR, OAPV_VERSION_MINOR, OAPV_VERSION_PATCH); | ||
| return oapv_ver; | ||
| } | ||
|
|
||
| char * oapv_libversion() { | ||
| static char oapv_libver[64]; | ||
| snprintf(oapv_libver, sizeof(oapv_libver), "%d.%d.%d", OAPV_LIB_VERSION_MAJOR, OAPV_LIB_VERSION_MINOR, OAPV_LIB_VERSION_PATCH); | ||
| return oapv_libver; | ||
| } | ||
|
|
||
| #else | ||
|
|
||
| static char *oapv_ver = "0.1.13.1"; | ||
| static char *oapv_libver = "0.1.13.1"; | ||
|
|
||
| char * oapv_version() { return oapv_ver; } | ||
| char * oapv_libversion() { return oapv_libver; } | ||
|
||
|
|
||
| #endif | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why major 0, and why making it match the project version?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess that you're trying to change the major, minor, and patch meanings of version.
It should be discussed carefully because the version numbers are already used many O/S and applications.
We need to have strong reason and evidence to change the number dramatically, if we have to change it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was decided in #91 (comment), and is already implemented. This PR at first reverted it by accident, but it was then rectified.