Lines Matching refs:ns
219 nameserv_state_t ns;
220 nameserv_init(&ns, test_nameserv_callback_freecap);
223 error = nameserv_add(&ns, "hello_test", 0x12345);
225 error = nameserv_add(&ns, "kitty_test", 0x12345);
227 error = nameserv_add(&ns, "foo_test", 0x12345);
234 n = nameserv_resolve(&ns, "hello.txt", NULL);
240 n = nameserv_resolve(&ns, "hello_test/hello.txt", &anonCap);
246 n = nameserv_resolve(&ns, "hello_test/hi/bye/hello_foo.txt", &anonCap);
252 n = nameserv_resolve(&ns, "/kitty_test/hi/bye/hello_foo.txt", &anonCap);
258 n = nameserv_resolve(&ns, "food_test/bye/foo.txt", NULL);
260 n = nameserv_resolve(&ns, "", NULL);
262 n = nameserv_resolve(&ns, NULL, NULL);
266 nameserv_delete(&ns, "asd_bogus");
267 nameserv_delete(&ns, "foo_test");
268 nameserv_delete(&ns, "hello_test");
271 n = nameserv_resolve(&ns, "hello_test/hello.txt", NULL);
273 n = nameserv_resolve(&ns, "foo_test/", NULL);
278 n = nameserv_resolve(&ns, "kitty_test/hi/bye/hello_foo.txt", &anonCap);
282 nameserv_release(&ns);