Lines Matching refs:nvl

89 	nvlist_t *nvl;  in smb_reparse_svcadd()  local
92 if ((rc = smb_reparse_init(path, &nvl)) != 0) in smb_reparse_svcadd()
95 if ((rc = reparse_add(nvl, svctype, svcdata)) != 0) { in smb_reparse_svcadd()
96 smb_reparse_free(nvl); in smb_reparse_svcadd()
100 rc = smb_reparse_set(path, nvl); in smb_reparse_svcadd()
101 smb_reparse_free(nvl); in smb_reparse_svcadd()
114 nvlist_t *nvl; in smb_reparse_svcdel() local
117 if ((rc = smb_reparse_init(path, &nvl)) != 0) in smb_reparse_svcdel()
120 if ((rc = reparse_remove(nvl, svctype)) != 0) { in smb_reparse_svcdel()
121 smb_reparse_free(nvl); in smb_reparse_svcdel()
125 if (nvlist_next_nvpair(nvl, NULL) == NULL) { in smb_reparse_svcdel()
131 rc = smb_reparse_set(path, nvl); in smb_reparse_svcdel()
134 smb_reparse_free(nvl); in smb_reparse_svcdel()
150 nvlist_t *nvl; in smb_reparse_svcget() local
155 if ((rc = smb_reparse_init(path, &nvl)) != 0) in smb_reparse_svcget()
159 nvp = nvlist_next_nvpair(nvl, NULL); in smb_reparse_svcget()
176 nvp = nvlist_next_nvpair(nvl, nvp); in smb_reparse_svcget()
179 smb_reparse_free(nvl); in smb_reparse_svcget()
197 smb_reparse_init(const char *path, nvlist_t **nvl) in smb_reparse_init() argument
202 if ((*nvl = reparse_init()) == NULL) in smb_reparse_init()
210 reparse_free(*nvl); in smb_reparse_init()
214 if ((rc = reparse_parse(rp_data, *nvl)) != 0) { in smb_reparse_init()
215 reparse_free(*nvl); in smb_reparse_init()
226 smb_reparse_free(nvlist_t *nvl) in smb_reparse_free() argument
228 reparse_free(nvl); in smb_reparse_free()
237 smb_reparse_set(const char *path, nvlist_t *nvl) in smb_reparse_set() argument
242 if ((rc = reparse_unparse(nvl, &rp_data)) != 0) in smb_reparse_set()