mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
SemVer toxav too
This commit is contained in:
parent
4c7856b346
commit
2d361228cd
@ -106,24 +106,27 @@ void call_kill_transmission(ToxAVCall *call);
|
||||
|
||||
uint32_t toxav_version_major(void)
|
||||
{
|
||||
return 0;
|
||||
return TOXAV_VERSION_MAJOR;
|
||||
}
|
||||
|
||||
uint32_t toxav_version_minor(void)
|
||||
{
|
||||
return 0;
|
||||
return TOXAV_VERSION_MINOR;
|
||||
}
|
||||
|
||||
uint32_t toxav_version_patch(void)
|
||||
{
|
||||
return 0;
|
||||
return TOXAV_VERSION_PATCH;
|
||||
}
|
||||
|
||||
bool toxav_version_is_compatible(uint32_t major, uint32_t minor, uint32_t patch)
|
||||
{
|
||||
(void)major;
|
||||
(void)minor;
|
||||
(void)patch;
|
||||
|
||||
return 1;
|
||||
if (major != TOXAV_VERSION_MAJOR)
|
||||
return 0;
|
||||
else
|
||||
return 1;
|
||||
}
|
||||
|
||||
ToxAV *toxav_new(Tox *tox, TOXAV_ERR_NEW *error)
|
||||
{
|
||||
TOXAV_ERR_NEW rc = TOXAV_ERR_NEW_OK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user