From b3c854b27a8fb1ae0b05407cf6663acf5ae1a53c Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Sat, 26 Jul 2025 18:33:24 +0100 Subject: [PATCH] Add typedefs for the pointers to the sub-structures within struct pvstate_s, so they can be used as types in function declarations (#165). --- src/include/pv-internal.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/include/pv-internal.h b/src/include/pv-internal.h index 44f91bc..78d248a 100644 --- a/src/include/pv-internal.h +++ b/src/include/pv-internal.h @@ -429,8 +429,16 @@ struct pvstate_s { } transfer; }; +typedef struct pvprogramstatus_s *pvprogramstatus_t; +typedef struct pvinputfiles_s *pvinputfiles_t; +typedef struct pvcontrol_s *pvcontrol_t; +typedef struct pvsignal_s *pvsignal_t; +typedef struct pvtransientflags_s *pvtransientflags_t; typedef struct pvdisplay_s *pvdisplay_t; typedef struct pvdisplay_segment_s *pvdisplay_segment_t; +typedef struct pvtransfercalc_s *pvtransfercalc_t; +typedef struct pvipcstate_s *pvipcstate_t; +typedef struct pvtransferstate_s *pvtransferstate_t; /* * Structure containing the parameters used by formatters.