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