Lines Matching defs:simple_h
55 scf_simple_handle_destroy(scf_simple_handle_t *simple_h)
57 if (simple_h == NULL)
60 scf_pg_destroy(simple_h->running_pg);
61 scf_pg_destroy(simple_h->editing_pg);
62 scf_snapshot_destroy(simple_h->snap);
63 scf_instance_destroy(simple_h->inst);
64 scf_handle_destroy(simple_h->h);
65 uu_free(simple_h);
1114 get_instance_pg(scf_simple_handle_t *simple_h)
1116 scf_propertygroup_t *ret_pg = scf_pg_create(simple_h->h);
1134 if (scf_pg_get_name(simple_h->running_pg, pg_name, namelen) < 0) {
1142 if (scf_instance_get_pg(simple_h->inst, pg_name, ret_pg) == -1) {
1387 scf_transaction_setup(scf_simple_handle_t *simple_h)
1391 if ((tx = scf_transaction_create(simple_h->h)) == NULL) {
1395 if ((simple_h->editing_pg = get_instance_pg(simple_h)) == NULL) {
1399 if (scf_transaction_start(tx, simple_h->editing_pg) == -1) {
1400 scf_pg_destroy(simple_h->editing_pg);
1401 simple_h->editing_pg = NULL;
1409 scf_transaction_restart(scf_simple_handle_t *simple_h, scf_transaction_t *tx)
1413 if (scf_pg_update(simple_h->editing_pg) == -1) {
1417 if (scf_transaction_start(tx, simple_h->editing_pg) == -1) {
1425 * scf_read_count_property(scf_simple_handle_t *simple_h, char *prop_name,
1448 scf_simple_handle_t *simple_h,
1452 scf_property_t *prop = scf_property_create(simple_h->h);
1453 scf_value_t *val = scf_value_create(simple_h->h);
1464 if (scf_pg_get_property(simple_h->running_pg, prop_name, prop) != 0) {