summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2022-11-16 14:53:18 +0100
committerLuke from DC <[email protected]>2022-12-23 11:00:02 +0000
commita97964380e5a6b553a10466e10d063608921a3f3 (patch)
treef851d7a72d29105fd3d26eb1709cceebd0455324 /libcaja-private
parent7e7a47ac17ff0ae1ee18f2a709c6dd4cb42a8ca7 (diff)
downloadcaja-a97964380e5a6b553a10466e10d063608921a3f3.tar.bz2
caja-a97964380e5a6b553a10466e10d063608921a3f3.tar.xz
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.
Diffstat (limited to 'libcaja-private')
-rw-r--r--libcaja-private/caja-icon-container.h2
1 files changed, 1 insertions, 1 deletions
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);