diff options
Diffstat (limited to 'usr/src/cmd/svc/common/manifest_hash.h')
| -rw-r--r-- | usr/src/cmd/svc/common/manifest_hash.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/usr/src/cmd/svc/common/manifest_hash.h b/usr/src/cmd/svc/common/manifest_hash.h index 1a43137e44..4f2688aab0 100644 --- a/usr/src/cmd/svc/common/manifest_hash.h +++ b/usr/src/cmd/svc/common/manifest_hash.h @@ -19,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2009 Sun Microsystems, Inc. All rights reserved. + * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -41,7 +41,8 @@ extern "C" { #define MHASH_PG_TYPE "framework" #define MHASH_PG_FLAGS 0 #define MHASH_PROP "md5sum" -#define MFILE_PROP "manifestfile" +#define MHASH_FILE_PROP "manifestfile" +#define MHASH_APPLY_PROP "apply_late" #define MHASH_FORMAT_V1 "%llx%x%llx%lx" #define MHASH_FORMAT_V2 "%x%x%llx%lx" @@ -50,10 +51,16 @@ extern "C" { #define MHASH_RECONCILED (1) #define MHASH_FAILURE (-1) +typedef enum apply_action { + APPLY_NONE, /* No special apply action. */ + APPLY_LATE /* Apply profile in late manifest import. */ +} apply_action_t; + char *mhash_filename_to_propname(const char *, boolean_t); -int mhash_retrieve_entry(scf_handle_t *, const char *, uchar_t *); +int mhash_retrieve_entry(scf_handle_t *, const char *, uchar_t *, + apply_action_t *); int mhash_store_entry(scf_handle_t *, const char *, const char *, uchar_t *, - char **); + apply_action_t, char **); int mhash_test_file(scf_handle_t *, const char *, uint_t, char **, uchar_t *); #ifdef __cplusplus |
