From a97964380e5a6b553a10466e10d063608921a3f3 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Wed, 16 Nov 2022 14:53:18 +0100 Subject: Make CajaIconData type less confusing This is actually an opaque type, and there is no definition of struct CajaIconData anywhere. This actually doesn't change anything as the non-existent struct is equivalent to any other incomplete type, and works fine so long as the pointers are not dereferenced using that incomplete type. However, change this to an explicit `void` to make it clear it's an opaque pointer and stop people from looking for a struct CajaIconData that is nowhere to be found. --- libcaja-private/caja-icon-container.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcaja-private/caja-icon-container.h b/libcaja-private/caja-icon-container.h index d78310d5..749c3b4e 100644 --- a/libcaja-private/caja-icon-container.h +++ b/libcaja-private/caja-icon-container.h @@ -45,7 +45,7 @@ #define CAJA_ICON_CONTAINER_ICON_DATA(pointer) \ ((CajaIconData *) (pointer)) -typedef struct CajaIconData CajaIconData; +typedef void CajaIconData; typedef void (* CajaIconCallback) (CajaIconData *icon_data, gpointer callback_data); -- cgit v1.2.1