Lines Matching defs:dbname

69  * Read object of specified type from dbname.
72 nwam_read(nwam_object_type_t type, const char *dbname, const char *name,
80 if (dbname != NULL)
81 (void) strlcpy(dbname_copy, dbname, sizeof (dbname_copy));
89 (dbname != NULL ? dbname_copy : NULL,
96 if (type == NWAM_OBJECT_TYPE_NCP && dbname != NULL) {
121 nwam_create(nwam_object_type_t type, const char *dbname, const char *name,
128 if (nwam_read(type, dbname, name, 0, &hp) == NWAM_SUCCESS) {
200 nwam_walk(nwam_object_type_t type, const char *dbname,
217 * with a "dbname" argument set to the container db name and
223 if ((err = nwam_read_object_from_backend((char *)dbname, NULL, flags,
227 * This indicates the dbname container is not present.
252 err = nwam_read(type, dbname, object_names[i],
292 * dbname.
295 nwam_copy(const char *dbname, struct nwam_handle *oldhp, const char *newname,
303 if (nwam_read(oldhp->nwh_object_type, dbname, newname, 0, &hp)
365 nwam_commit(const char *dbname, struct nwam_handle *hp, uint64_t flags)
392 switch (nwam_read(hp->nwh_object_type, (char *)dbname, hp->nwh_name, 0,
407 err = nwam_update_object_in_backend((char *)dbname,
417 * the dbname to the NCP name in order to pass it to nwamd.
422 if (nwam_ncp_file_to_name(dbname, &ncpname) == NWAM_SUCCESS) {
445 nwam_destroy(const char *dbname, struct nwam_handle *hp, uint64_t flags)
468 /* For NCPs, just remove the dbname file, otherwise remove the object */
469 err = nwam_remove_object_from_backend((char *)dbname,
474 * dbname filename to the NCP name to pass it to nwamd.
479 if (nwam_ncp_file_to_name(dbname, &ncpname) == NWAM_SUCCESS) {