Lines Matching defs:list

39 #include <list.h>
44 char **list = NULL;
50 list = (char **)list_append((void **)list, element);
52 return (list);
108 char **list, *tmp, *printer = NULL, *extension = NULL;
114 list = strsplit(tmp, ",");
116 if (list[1] != NULL) {
117 printer = list[1];
118 if (list[2] != NULL)
119 extension = list[2];
122 return (bsd_addr_create(list[0], printer, extension));
126 list_to_string(const char **list)
130 if ((list == NULL) || (*list == NULL))
133 if (snprintf(buf, sizeof (buf), "%s", *list) >= sizeof (buf)) {
138 while (*++list != NULL) {
140 if (strlcat(buf, *list, sizeof (buf)) >= sizeof (buf)) {
150 internal_list_to_string(const ns_printer_t **list)
154 if ((list == NULL) || (*list == NULL))
157 if (snprintf(buf, sizeof (buf), "%s", (*list)->name) >= sizeof (buf)) {
162 while (*++list != NULL) {
164 if (strlcat(buf, (*list)->name, sizeof (buf)) >= sizeof (buf)) {
283 ns_kvp_t **list, *kvp;
286 list = (ns_kvp_t **)list_append(NULL, kvp);
287 if (list != NULL)
289 "posix", list);
420 * ns_bsd_addr_t **(return) - a list of bsd addresses for all printers
423 * This function will gather a list of all printer addresses in all
431 ns_bsd_addr_t **list = NULL;
448 list =
449 (ns_bsd_addr_t **)list_append_unique((void **)list,
453 list =
454 (ns_bsd_addr_t **)list_append_unique((void **)list,
457 list = (ns_bsd_addr_t **)list_append((void **)list,
479 list = (ns_bsd_addr_t **)
480 list_append_unique((void **)list,
486 list = (ns_bsd_addr_t **)
487 list_append_unique((void **)list,
493 list = (ns_bsd_addr_t **)
494 list_append((void **)list, (void *)addr);
499 return (list);
509 * ns_bsd_addr_t **(return) - a list of bsd addresses for "_all" printers
512 * This function will use the "_all" entry to find a list of printers and
513 * addresses. The "default" printer is also added to the list.
520 ns_bsd_addr_t **list = NULL;
528 list = (ns_bsd_addr_t **)list_append((void **)list,
543 list =
544 (ns_bsd_addr_t **)list_append_unique((void **)list,
547 list = (ns_bsd_addr_t **)list_append((void **)list,
551 return (list);