Add version field

This commit is contained in:
jl777
2019-07-25 04:29:07 -11:00
parent 1247c0fa43
commit 0c8f9b3729
4 changed files with 5 additions and 1 deletions

View File

@@ -133,6 +133,7 @@ int32_t NSPV_getinfo(struct NSPV_inforesp *ptr,int32_t reqheight)
if ( reqheight == 0 )
reqheight = ptr->height;
ptr->hdrheight = reqheight;
ptr->version = NSPV_PROTOCOL_VERSION;
if ( NSPV_setequihdr(&ptr->H,reqheight) < 0 )
return(-1);
return(sizeof(*ptr));