summaryrefslogtreecommitdiff
path: root/usr/src/lib/libscf/inc/libscf.h
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2020-05-05 14:56:56 -0700
committerJohn Levon <john.levon@joyent.com>2020-06-03 02:54:39 -0700
commit8fff788790878e3c95666decd46960ecc74c1c69 (patch)
treef7ada72e4fdfc2d3ab54a72f22e5e97162ea9e2a /usr/src/lib/libscf/inc/libscf.h
parent87be0d9605ee884229638b6fd168fa7165e109a3 (diff)
downloadillumos-joyent-8fff788790878e3c95666decd46960ecc74c1c69.tar.gz
12721 would like svcadm disable -c
Reviewed by: Jason King <jason.brian.king@gmail.com> Heckling from the gallery by: Joshua M. Clulow <josh@sysmgr.org> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/lib/libscf/inc/libscf.h')
-rw-r--r--usr/src/lib/libscf/inc/libscf.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/src/lib/libscf/inc/libscf.h b/usr/src/lib/libscf/inc/libscf.h
index 773c0ca1d6..b2730eb810 100644
--- a/usr/src/lib/libscf/inc/libscf.h
+++ b/usr/src/lib/libscf/inc/libscf.h
@@ -22,7 +22,7 @@
/*
* Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright 2016 RackTop Systems.
- * Copyright (c) 2012, Joyent, Inc. All rights reserved.
+ * Copyright 2020 Joyent, Inc.
*/
#ifndef _LIBSCF_H
@@ -326,6 +326,7 @@ typedef struct {
#define SCF_PROPERTY_AUX_STATE "auxiliary_state"
#define SCF_PROPERTY_AUX_FMRI "auxiliary_fmri"
#define SCF_PROPERTY_AUX_TTY "auxiliary_tty"
+#define SCF_PROPERTY_COMMENT "comment"
#define SCF_PROPERTY_CONTRACT "contract"
#define SCF_PROPERTY_COREFILE_PATTERN "corefile_pattern"
#define SCF_PROPERTY_DEGRADED "degraded"
@@ -485,6 +486,9 @@ ssize_t scf_limit(uint32_t code);
#define SCF_LIMIT_MAX_PG_TYPE_LENGTH -2002U
#define SCF_LIMIT_MAX_FMRI_LENGTH -2003U
+
+#define SCF_COMMENT_MAX_LENGTH (1024)
+
scf_handle_t *scf_handle_create(scf_version_t);
int scf_handle_decorate(scf_handle_t *, const char *, scf_value_t *);
@@ -807,6 +811,7 @@ int scf_tmpl_error_value(const scf_tmpl_error_t *, char **);
* Simplified calls
*/
int smf_enable_instance(const char *, int);
+int smf_disable_instance_with_comment(const char *, int, const char *);
int smf_disable_instance(const char *, int);
int smf_refresh_instance(const char *);
int smf_restart_instance(const char *);