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