[Discuss OpenCPI] Re: Changing protocol spec after use

From: Aaron Olivarez <aaron_at_olivarez.info>
Date: Tue, 16 May 23 09:40:46 -0500

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_at_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_at_lists.opencpi.org
> To unsubscribe send an email to discuss-leave_at_lists.opencpi.org
>






Received on Tue May 16 2023 - 14:40:46 CDT

This archive was generated by hypermail 2.3.0 : Fri Jun 05 2026 - 08:45:25 CDT