From a3254ced93e2db103d7395c4d5a727260ae69894 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 24 Aug 2017 16:45:49 +0200 Subject: libdiskfs: Use control class for the singleton 'bootinfo'. * libdiskfs/boot-start.c (bootinfo): New variable. (diskfs_start_bootstrap): Create 'bootinfo' as an instance of 'diskfs_control_class'. (diskfs_S_fsys_getpriv): Only allow operation on 'bootinfo'. (diskfs_S_fsys_init): Allow operation on any control object, but only once. * libdiskfs/diskfs.h (diskfs_initboot_class): Drop declaration. * libdiskfs/init-init.c (diskfs_initboot_class): Drop variable. (diskfs_init_diskfs): Adapt. --- libdiskfs/diskfs.h | 1 - 1 file changed, 1 deletion(-) (limited to 'libdiskfs/diskfs.h') diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h index ea79a1d2..402b65e5 100644 --- a/libdiskfs/diskfs.h +++ b/libdiskfs/diskfs.h @@ -216,7 +216,6 @@ struct pager; extern struct port_class *diskfs_protid_class; extern struct port_class *diskfs_control_class; extern struct port_class *diskfs_execboot_class; -extern struct port_class *diskfs_initboot_class; extern struct port_class *diskfs_shutdown_notification_class; extern struct port_bucket *diskfs_port_bucket; -- cgit v1.2.3