Lines Matching defs:instance

76 		if (handle->instance != NULL)
77 scf_instance_destroy(handle->instance);
130 handle->instance = scf_instance_create(handle->handle);
132 handle->pg == NULL || handle->instance == NULL)
328 * sa_extract_attrs(root, handle, instance)
331 * property group of the service instance. These are the well known
338 scf_instance_t *instance)
350 scf_instance_get_pg(instance, "operation", handle->pg) != 0) {
864 * sa_extract_group(root, handle, instance)
866 * Get the config info for this instance of a group and create the XML
872 scf_instance_t *instance, sa_handle_t sahandle)
895 if (scf_instance_get_name(instance, buff, scf_max_name_len) > 0) {
905 sa_extract_attrs(node, handle, instance);
918 if (scf_iter_instance_pgs(iter, instance) != 0) {
1022 if (have_shares && scf_iter_instance_pgs(iter, instance) == 0) {
1049 * sa_extract_defaults(root, handle, instance)
1052 * default instance's "operation" property group.
1057 scf_instance_t *instance)
1071 scf_instance_get_pg(instance, "operation", handle->pg) != 0)
1111 scf_instance_t *instance;
1115 instance = scf_instance_create(handle->handle);
1117 if (instance != NULL && iter != NULL) {
1121 instance)) > 0) {
1122 if (scf_instance_get_name(instance, buff,
1126 handle, instance);
1128 instance, sahandle);
1135 if (instance != NULL)
1136 scf_instance_destroy(instance);
1143 * sa_get_instance(handle, instance)
1145 * Get the instance of the group service. This is actually the
1146 * specific group name. The instance is needed for all property and
1154 handle->instance) != 0) {
1163 * Create a new SMF service instance. There can only be one with a
1171 char instance[SA_GROUP_INST_LEN];
1173 handle->instance) != 0) {
1181 (void) snprintf(instance, sizeof (instance), "%s:%s",
1183 (void) smf_enable_instance(instance, 0);
1191 * When a group goes away, we also remove the service instance.
1203 if (scf_instance_delete(handle->instance) != 0)
1241 * need to actually add one to the service instance.
1243 if (scf_instance_get_pg(handle->instance,
1247 if (scf_instance_add_pg(handle->instance, pgroup,
1265 * Remove the property group from the current instance of the service,
1276 if (scf_instance_get_pg(handle->instance, pgroup, handle->pg) == 0) {
1855 * Remove the specified share from the group (and service instance).