you can add the following in line and you do not need to include venc h if h and and venc vp  if h  struct venc h handle  struct venc vp  handle then here you can use union venc h handle  h e venc vp  handle  vp e h enc 