libscf.h revision 23294c7da48c2eb5222bccedbefb1e06cf5c4df3
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Opaque structures
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortetypedef struct scf_propertygroup scf_propertygroup_t;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortetypedef struct scf_transaction_entry scf_transaction_entry_t;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortetypedef struct scf_simple_app_props scf_simple_app_props_t;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortetypedef enum {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortetypedef struct scf_time {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * There is no explicit initializer for this structure. Functions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * which set or populate this structure assume that it is either
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * uninitialized or destroyed.
typedef struct scf_values {
int value_count;
char **values_as_strings;
char **v_astring;
char **v_ustring;
char **v_opaque;
} values;
} scf_values_t;
typedef struct scf_count_ranges {
int scr_num_ranges;
typedef struct scf_int_ranges {
int sir_num_ranges;
#define SCF_SUCCESS 0
typedef enum scf_error {
} scf_error_t;
* struct _scf_tmpl_error_desc em_desc() in scf_tmpl.c
typedef enum scf_tmpl_error_type {
#define SCF_SERVICE_CONFIGD ((const char *) \
"svc:/system/svc/repository:default")
#define SCF_INSTANCE_GLOBAL ((const char *) \
#define SCF_SERVICE_GLOBAL ((const char *) \
#define SCF_SERVICE_STARTD ((const char *) \
#define SCF_MILESTONE_SINGLE_USER \
((const char *) "svc:/milestone/single-user:default")
#define SCF_MILESTONE_MULTI_USER \
((const char *) "svc:/milestone/multi-user:default")
#define SCF_MILESTONE_MULTI_USER_SERVER \
((const char *) "svc:/milestone/multi-user-server:default")
#define SCF_PROPERTY_START_METHOD_TIMESTAMP \
#define SCF_PROPERTY_START_METHOD_WAITSTATUS \
#define SCF_PROPERTY_TM_CHOICES_INCLUDE_VALUES ((const char *) \
char *, size_t);
const scf_snapshot_t *);
const scf_snapshot_t *, const char *);
#define scf_handle_get_local_scope(h, s) \
scf_instance_t *);
scf_instance_t *);
scf_snapshot_t *);
size_t);
scf_snaplevel_t *);
const char *, scf_propertygroup_t *);
scf_property_t *);
scf_transaction_entry_t *, const char *);
int scf_tmpl_get_by_pg_name(const char *, const char *,
const char *, const char *, scf_pg_tmpl_t *, int);
scf_prop_tmpl_t *, int);
uint64_t *);
scf_int_ranges_t *);
scf_int_ranges_t *);
const char *, scf_tmpl_errors_t **, int);
int smf_enable_instance(const char *, int);
int smf_disable_instance(const char *, int);
int smf_refresh_instance(const char *);
int smf_restart_instance(const char *);
int smf_maintain_instance(const char *, int);
int smf_degrade_instance(const char *, int);
int smf_restore_instance(const char *);
char *smf_get_state(const char *);
const scf_simple_app_props_t *, const char *, const char *);
#define SMF_EXIT_OK 0
#ifdef __cplusplus