Searched refs:names (Results 1 - 6 of 6) sorted by relevance

/lxc/src/tests/
H A Dlist.c26 int (*func)(const char *path, char ***names,
31 char **names; local
50 printf("%-10s Get names only\n", type);
51 n2 = func(lxcpath, &names, NULL);
55 printf("%-10s Got container name %s\n", type, names[i]);
56 free(names[i]);
59 free(names);
60 names = NULL;
63 printf("%-10s Get names and containers\n", type);
64 n2 = func(lxcpath, &names,
25 test_list_func(const char *lxcpath, const char *type, int (*func)(const char *path, char ***names, struct lxc_container ***cret)) argument
[all...]
/lxc/src/lxc/
H A Dlxccontainer.h979 * \param names If not \c NULL, then a list of container names will be returned here.
986 int list_defined_containers(const char *lxcpath, char ***names, struct lxc_container ***cret);
992 * \param[out] names Dynamically-allocated array of container names.
999 * \note \p names and \p cret may both (or either) be specified as \c NULL.
1000 * \note \p names and \p cret must be freed by the caller.
1002 int list_active_containers(const char *lxcpath, char ***names, struct lxc_container ***cret);
1008 * \param[out] names Dynamically-allocated array of container name.
1015 * \note \p names an
[all...]
H A Dlxccontainer.c1707 // used by qsort and bsearch functions for comparing names
1713 // used by qsort and bsearch functions for comparing container names
1719 static bool add_to_array(char ***names, char *cname, int pos) argument
1721 char **newnames = realloc(*names, (pos+1) * sizeof(char *));
1727 *names = newnames;
1756 static char** get_from_array(char ***names, char *cname, int size) argument
1758 return (char **)bsearch(&cname, *names, size, sizeof(char *), (int (*)(const void *, const void *))string_cmp);
1762 static bool array_contains(char ***names, char *cname, int size) { argument
1763 if(get_from_array(names, cname, size) != NULL)
1768 static bool remove_from_array(char ***names, cha argument
4232 list_defined_containers(const char *lxcpath, char ***names, struct lxc_container ***cret) argument
[all...]
H A Dlxc_user_nic.c158 "names: %s.\n",
645 static bool get_nic_if_avail(int fd, struct alloted_s *names, int pid, argument
657 for (n = names; n != NULL; n = n->next)
663 owner = names->name;
679 for (n = names; n != NULL; n = n->next) {
/lxc/src/python-lxc/
H A Dlxc.c369 char **names = NULL; local
402 list_count = list_all_containers(config_path, &names, NULL);
404 list_count = list_active_containers(config_path, &names, NULL);
406 list_count = list_defined_containers(config_path, &names, NULL);
417 if (!names[i]) {
421 PyTuple_SET_ITEM(list, i, PyUnicode_FromString(names[i]));
422 free(names[i]);
424 free(names);
1882 "Returns a list of container names or objects"},
/lxc/src/lua-lxc/
H A Dlxc.lua383 local names = M.containers_configured(true)
385 for _,name in ipairs(names) do

Completed in 27 milliseconds