diff options
author | phk <phk@FreeBSD.org> | 1995-05-03 22:36:52 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-05-03 22:36:52 +0000 |
commit | 3a333cad859d44b252ad9f74ed4e333d4c0eeaeb (patch) | |
tree | d3172256de629248edc621730939916b87dcf99f /lib/libdisk/libdisk.h | |
parent | 455d2a327bf7898d4a18138d09508e0f2318e82f (diff) | |
download | FreeBSD-src-3a333cad859d44b252ad9f74ed4e333d4c0eeaeb.zip FreeBSD-src-3a333cad859d44b252ad9f74ed4e333d4c0eeaeb.tar.gz |
Add the private void *pointer to the chunks, and the functions to manage it.
Make the reassignment of partition names less bogus.
Diffstat (limited to 'lib/libdisk/libdisk.h')
-rw-r--r-- | lib/libdisk/libdisk.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/libdisk/libdisk.h b/lib/libdisk/libdisk.h index b3305a5..dfe5db0 100644 --- a/lib/libdisk/libdisk.h +++ b/lib/libdisk/libdisk.h @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: libdisk.h,v 1.9 1995/05/03 06:30:57 phk Exp $ + * $Id: libdisk.h,v 1.10 1995/05/03 17:37:59 jkh Exp $ * */ @@ -40,6 +40,10 @@ struct chunk { u_long size; u_long end; char *name; + char *oname; + /* Used during Fixup_Names() to avoid renaming more than + * absolutely needed. + */ chunk_e type; int subtype; u_long flags; @@ -54,6 +58,15 @@ struct chunk { # define CHUNK_ALIGN 8 # define CHUNK_IS_ROOT 16 /* This 'part' is a rootfs, allocate 'a' */ + + void (*private_free)(void*); + void *(*private_clone)(void*); + void *private; + /* For data private to the application, and the management + * thereof. If the functions are not provided, no storage + * management is done, Cloning will just copy the pointer + * and freeing will just forget it. + */ }; struct disk * |