Lines Matching defs:handle

292 	scf_handle_t *handle = NULL;
312 * Init the service handle
314 ret = iPsInit(&handle, &svc);
322 if (((pg = scf_pg_create(handle)) == NULL) ||
323 ((tran = scf_transaction_create(handle)) == NULL) ||
324 ((entry = scf_entry_create(handle)) == NULL) ||
325 ((prop = scf_property_create(handle)) == NULL) ||
326 ((valueIter = scf_iter_create(handle)) == NULL)) {
334 * Get the service property group handle
379 * Get the property handle
391 valueLookup = scf_value_create(handle);
400 * valueIter is the iterator handle, create the resource
457 valueSet[i] = scf_value_create(handle);
523 valueSet[i] = scf_value_create(handle);
574 if (handle != NULL) {
575 scf_handle_destroy(handle);
636 scf_handle_t *handle = NULL;
653 * Init the service handle
655 ret = iPsInit(&handle, &svc);
663 if (((pg = scf_pg_create(handle)) == NULL) ||
664 ((tran = scf_transaction_create(handle)) == NULL) ||
665 ((entry = scf_entry_create(handle)) == NULL) ||
666 ((prop = scf_property_create(handle)) == NULL) ||
667 ((value = scf_value_create(handle)) == NULL)) {
766 * Now get the actual value from the value handle
821 entryVeName = scf_entry_create(handle);
884 if (handle != NULL) {
885 scf_handle_destroy(handle);
925 scf_handle_t *handle = NULL;
946 * Init the service handle
948 ret = iPsInit(&handle, &svc);
956 if (((pg = scf_pg_create(handle)) == NULL) ||
957 ((tran = scf_transaction_create(handle)) == NULL)) {
968 if (((value[i] = scf_value_create(handle)) == NULL) ||
969 ((entry[i] = scf_entry_create(handle)) == NULL)) {
1248 if (handle != NULL) {
1249 scf_handle_destroy(handle);
1289 scf_handle_t *handle = NULL;
1302 ret = iPsInit(&handle, &svc);
1310 if ((pg = scf_pg_create(handle)) == NULL) {
1352 if (handle != NULL) {
1353 scf_handle_destroy(handle);
1384 scf_handle_t *handle = NULL;
1403 ret = iPsInit(&handle, &svc);
1411 if (((pg = scf_pg_create(handle)) == NULL) ||
1412 ((tran = scf_transaction_create(handle)) == NULL) ||
1413 ((entry1 = scf_entry_create(handle)) == NULL) ||
1414 ((entry2 = scf_entry_create(handle)) == NULL) ||
1415 ((prop = scf_property_create(handle)) == NULL) ||
1416 ((propIter = scf_iter_create(handle)) == NULL) ||
1417 ((value = scf_value_create(handle)) == NULL)) {
1451 * propIter is the iterator handle
1646 if (handle != NULL) {
1647 scf_handle_destroy(handle);
1691 scf_handle_t *handle = NULL;
1704 ret = iPsInit(&handle, &svc);
1712 if (((pg = scf_pg_create(handle)) == NULL) ||
1713 ((prop = scf_property_create(handle)) == NULL) ||
1714 ((propIter = scf_iter_create(handle)) == NULL) ||
1715 ((value = scf_value_create(handle)) == NULL)) {
1736 * propIter is the iterator handle
1762 * propIter is the iterator handle
1826 if (handle != NULL) {
1827 scf_handle_destroy(handle);
1864 scf_handle_t *handle = NULL;
1879 * init the service handle
1881 ret = iPsInit(&handle, &svc);
1889 if (((pg = scf_pg_create(handle)) == NULL) ||
1890 ((prop = scf_property_create(handle)) == NULL) ||
1891 ((valueIter = scf_iter_create(handle)) == NULL) ||
1892 ((valueLookup = scf_value_create(handle)) == NULL)) {
1900 * get the service property group handle
1914 * Get the property handle
1925 * valueIter is the iterator handle
1945 * valueIter is the iterator handle
1993 if (handle != NULL) {
1994 scf_handle_destroy(handle);
2018 scf_handle_t *handle = NULL;
2023 ret = iPsInit(&handle, &svc);
2028 ret = iPsGetSetPersistType(persistType, handle, svc, GET);
2033 if (handle != NULL) {
2034 scf_handle_destroy(handle);
2045 scf_handle_t *handle = NULL;
2050 ret = iPsInit(&handle, &svc);
2055 ret = iPsGetSetPersistType(&persistType, handle, svc, SET);
2060 if (handle != NULL) {
2061 scf_handle_destroy(handle);
2070 iPsGetSetPersistType(uint8_t *persistType, scf_handle_t *handle,
2083 if (((pg = scf_pg_create(handle)) == NULL) ||
2084 ((prop = scf_property_create(handle)) == NULL) ||
2085 ((entry = scf_entry_create(handle)) == NULL) ||
2086 ((tran = scf_transaction_create(handle)) == NULL) ||
2087 ((value = scf_value_create(handle)) == NULL)) {
2251 * handle and svc should not be free'd here. They're
2287 scf_handle_t *handle = NULL;
2306 * Init the service handle
2309 ret = iPsInit(&handle, &svc);
2318 if (((pg = scf_pg_create(handle)) == NULL) ||
2319 ((prop = scf_property_create(handle)) == NULL) ||
2320 ((entry = scf_entry_create(handle)) == NULL) ||
2321 ((tran = scf_transaction_create(handle)) == NULL) ||
2322 ((value = scf_value_create(handle)) == NULL)) {
2525 if (handle != NULL) {
2526 scf_handle_destroy(handle);
2551 * handle - returned handle
2552 * service - returned service handle
2554 * Both handle and service must be destroyed by the caller
2557 iPsInit(scf_handle_t **handle, scf_service_t **service)
2563 assert(handle != NULL && service != NULL);
2565 if ((*handle = scf_handle_create(SCF_VERSION)) == NULL) {
2572 if (scf_handle_bind(*handle) == -1) {
2579 if ((*service = scf_service_create(*handle)) == NULL) {
2586 if ((scope = scf_scope_create(*handle)) == NULL) {
2593 if (scf_handle_get_scope(*handle, SCF_SCOPE_LOCAL, scope) == -1) {
2611 ret = iPsGetServiceVersion(&version, *handle, *service);
2627 if (*handle != NULL) {
2628 scf_handle_destroy(*handle);
2646 iPsGetServiceVersion(uint64_t *version, scf_handle_t *handle,
2657 if (((pg = scf_pg_create(handle)) == NULL) ||
2658 ((prop = scf_property_create(handle)) == NULL) ||
2659 ((entry = scf_entry_create(handle)) == NULL) ||
2660 ((tran = scf_transaction_create(handle)) == NULL) ||
2661 ((value = scf_value_create(handle)) == NULL)) {
2808 * handle and svc should not be free'd here. They're
2845 scf_handle_t *handle = NULL;
2854 ret = iPsInit(&handle, &svc);
2862 if (((pg = scf_pg_create(handle)) == NULL) ||
2863 ((prop = scf_property_create(handle)) == NULL) ||
2864 ((propIter = scf_iter_create(handle)) == NULL) ||
2865 ((value = scf_value_create(handle)) == NULL)) {
2887 * propIter is the iterator handle
2948 if (handle != NULL) {
2949 scf_handle_destroy(handle);
3051 scf_handle_t *handle = NULL;
3071 ret = iPsInit(&handle, &svc);
3076 pg = scf_pg_create(handle);
3121 if (handle != NULL) {
3122 scf_handle_destroy(handle);
3147 scf_handle_t *handle = NULL;
3150 ret = iPsInit(&handle, &svc);
3155 if (handle != NULL) {
3156 scf_handle_destroy(handle);
3250 scf_handle_t *handle = NULL;
3263 ret = iPsInit(&handle, &svc);
3271 if (((pg = scf_pg_create(handle)) == NULL) ||
3272 ((pgIter = scf_iter_create(handle)) == NULL)) {
3280 * pgIter is the iterator handle
3305 * pgIter is the iterator handle
3365 if (handle != NULL) {
3366 scf_handle_destroy(handle);
3498 scf_handle_t *handle = NULL;
3512 ret = iPsInit(&handle, &svc);
3520 if (((pg = scf_pg_create(handle)) == NULL) ||
3521 ((prop = scf_property_create(handle)) == NULL) ||
3522 ((propIter = scf_iter_create(handle)) == NULL) ||
3523 ((value = scf_value_create(handle)) == NULL)) {
3580 * propIter is the iterator handle
3656 if (handle != NULL) {
3657 scf_handle_destroy(handle);
3691 scf_handle_t *handle = NULL;
3702 ret = iPsInit(&handle, &svc);
3710 if (((pg = scf_pg_create(handle)) == NULL) ||
3711 ((prop = scf_property_create(handle)) == NULL) ||
3712 ((value = scf_value_create(handle)) == NULL)) {
3722 * get the service property group view entry handle
3899 if (handle != NULL) {
3900 scf_handle_destroy(handle);
4006 scf_handle_t *handle = NULL;
4028 ret = iPsInit(&handle, &svc);
4042 if (((pg = scf_pg_create(handle)) == NULL) ||
4043 ((value = scf_value_create(handle)) == NULL) ||
4044 ((prop = scf_property_create(handle)) == NULL)) {
4090 * Now get the actual value from the value handle
4135 * Now get the actual value from the value handle
4208 if (handle != NULL) {
4209 scf_handle_destroy(handle);
4242 scf_handle_t *handle = NULL;
4254 ret = iPsInit(&handle, &svc);
4264 if (((pg = scf_pg_create(handle)) == NULL) ||
4265 ((value = scf_value_create(handle)) == NULL) ||
4266 ((prop = scf_property_create(handle)) == NULL) ||
4267 ((pgIter = scf_iter_create(handle)) == NULL)) {
4275 * pgIter is the iterator handle
4301 * pgIter is the iterator handle
4361 * Now get the actual value from the value handle
4392 if (handle != NULL) {
4393 scf_handle_destroy(handle);
4429 scf_handle_t *handle = NULL;
4475 ret = iPsInit(&handle, &svc);
4490 if (((pg = scf_pg_create(handle)) == NULL) ||
4491 ((entry1 = scf_entry_create(handle)) == NULL) ||
4492 ((entry2 = scf_entry_create(handle)) == NULL) ||
4493 ((entry3 = scf_entry_create(handle)) == NULL) ||
4494 ((entry5 = scf_entry_create(handle)) == NULL) ||
4495 ((value1 = scf_value_create(handle)) == NULL) ||
4496 ((value2 = scf_value_create(handle)) == NULL) ||
4497 ((value3 = scf_value_create(handle)) == NULL) ||
4498 ((value4 = scf_value_create(handle)) == NULL) ||
4499 ((value5 = scf_value_create(handle)) == NULL) ||
4500 ((prop = scf_property_create(handle)) == NULL) ||
4501 ((tran = scf_transaction_create(handle)) == NULL)) {
4567 * Now get the actual value from the value handle
4609 * Now get the actual value from the value handle
4686 addEntry[i] = scf_entry_create(handle);
4731 addValue[i] = scf_value_create(handle);
4781 deleteEntry[j] = scf_entry_create(handle);
4972 if (handle != NULL) {
4973 scf_handle_destroy(handle);
5047 scf_handle_t *handle = NULL;
5055 ret = iPsInit(&handle, &svc);
5060 pg = scf_pg_create(handle);
5107 if (handle != NULL) {
5108 scf_handle_destroy(handle);
5135 scf_handle_t *handle = NULL;
5155 ret = iPsInit(&handle, &svc);
5160 pg = scf_pg_create(handle);
5242 if (handle != NULL) {
5243 scf_handle_destroy(handle);