aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gplinclude/disk/msdos.h
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-08-05 21:03:04 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-08-05 21:29:35 -0700
commit9636a1bbb1c1394fc9fb7cf66d97ffe5f5f43ff3 (patch)
tree94c9c850b9c323ebf2a19ba32203e7a757e5a2d5 /com32/gplinclude/disk/msdos.h
parent22a679c93b85c064844b0a12cb1e59eba1cf4aa4 (diff)
downloadsyslinux-9636a1bbb1c1394fc9fb7cf66d97ffe5f5f43ff3.tar.gz
syslinux-9636a1bbb1c1394fc9fb7cf66d97ffe5f5f43ff3.tar.xz
syslinux-9636a1bbb1c1394fc9fb7cf66d97ffe5f5f43ff3.zip
gpllib: Introduce typedefs for callbacks
typedefs are evil but useful for function pointers as it makes them more readable and maintainable. This fixes a bug by the way: we had void *callback(struct driveinfo *, struct part_entry *, int, int) where we should have had void (*callback)(struct driveinfo *, struct part_entry *, int, int) Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32/gplinclude/disk/msdos.h')
-rw-r--r--com32/gplinclude/disk/msdos.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/com32/gplinclude/disk/msdos.h b/com32/gplinclude/disk/msdos.h
index c8dcb1de..405b9b99 100644
--- a/com32/gplinclude/disk/msdos.h
+++ b/com32/gplinclude/disk/msdos.h
@@ -11,7 +11,9 @@
#define _MSDOS_H_
#include <disk/geom.h>
+#include <disk/partition.h>
-int parse_partition_table(struct driveinfo *, void *);
+typedef void (*p_callback)(struct driveinfo *, struct part_entry *, int, int);
+int parse_partition_table(struct driveinfo *, p_callback);
#endif /* _MSDOS_H_ */