You should be able to issue a 'ocpidev clean' from the component library or worker directory then rebuild them using `ocpidev build` the act of rebuilding will update the header file with the correct value based on the OpenCPI component specification (OCS). 

Aaron 

On Tue, May 16, 2023 at 9:24 AM <dwp@md1tech.co.uk> wrote:

Hello,

I have a custom protocol that contains a variable of type Short within a struct which I have now realised would be better off using a Long.
I have used this protocol in a lot of custom components and workers and so it would be frustrating if I have to manually recreate workers for each component that uses it in order to have the workers’ header files match the XML.

Is there a command I can run that will automatically update the workers to match the updated XML
Alternatively can I just change the underlying data type from int16_t to int32_t in the Properties struct of each header file?

Many thanks,
Dan

_______________________________________________
discuss mailing list -- discuss@lists.opencpi.org
To unsubscribe send an email to discuss-leave@lists.opencpi.org