Lines Matching defs:list

43 #include <list.h>
158 static NSL_RESULT _checkAttributes(char **list);
168 static int _attrInList(char *attr, const char **list);
171 uchar_t *objectDN, char ***list);
172 static void _freeList(char ***list);
185 * depending on the request's attribute list. A null list indicates
190 * If a URI is given in the attribute list and it is different to
202 * char **attrList - pointer to a list of attribute key values
204 * not already exist then this list contains the
205 * values for the new object, otherwise this list
206 * is a list of attributes to modify. For modify
233 * Note: the "attributes" list should be null for ldap as the attribute
300 * a null list indicates that this is a DELETE
521 * char **attrList - this list is searched for printer-uri
541 /* first search for printer-uri in the attribute list */
849 * char **attrList - user specified attribute values list
938 * in the attribute list. If the printer's URI (specified in the
946 * char **attrList - user specified attribute values list
1059 * Input: char **list - attribute list to check
1068 _checkAttributes(char **list)
1078 for (p = list; (p != NULL) && (*p != NULL) && (result == NSL_OK); p++)
1388 /* add value to attribute's replace list */
1453 * Description: For the given attribute list construct an
1460 * char **attrList - user specified attribute values list
1513 * values list and add them into the LDAPMod array
1586 * Description: For the given modify attribute list, construct an
1592 * char **attrList - user specified attribute values list
1593 * char ***oldKVPList - current list of KVP values on object
1644 * values list and add them into the LDAPMod array depending
1731 * in the kvp list
1982 * Description: For the given list check if the attribute is it
1986 * char **list - list of attributes to check against
1989 * Returns: int - TRUE = attr found in list
1995 _attrInList(char *attr, const char **list)
2003 if ((attr != NULL) && (list != NULL))
2005 for (j = 0; (list[j] != NULL) && (result != 1); j++)
2007 if (strcasecmp(list[j], attr) == 0)
2035 * Returns: int - TRUE = attr found in list
2050 result = 1; /* in list */
2055 result = 1; /* in list */
2060 result = 1; /* in list */
2080 * Output: char ***list - returned set of kvp values
2088 _getCurrentKVPValues(LDAP *ld, uchar_t *objectDN, char ***list)
2103 if ((list != NULL) && (ld != NULL) && (objectDN != NULL))
2128 * add each KVP value to the list
2136 *list = (char **)
2137 list_append((void **)*list,
2176 * Description: Free the list created by list_append() where the items in
2177 * the list have been strdup'ed.
2180 * Input: char ***list - returned set of kvp values
2188 _freeList(char ***list)
2195 if (list != NULL)
2197 if (*list != NULL)
2199 for (i = 0; (*list)[i] != NULL; i++)
2201 free((*list)[i]);
2203 free(*list);
2206 *list = NULL;
2217 * Description: Sort out the KVP attribute value list, such that this new
2218 * value takes precidence over any existing value in the list.
2219 * The current list is updated to remove this key, and the new
2220 * key "value" is added to the list, eg. for
2232 * must be called to add the "new list" values into the
2238 * char ***kvpList - list of current KVP values
2239 * Output: char ***kvpList - updated list of KVP values
2282 * for each item in the list remove it if the keys match
2296 /* no match so add value to new list */
2317 /* replace old list with the newList */
2337 * LDAPMod modify array. If the list is empty but there were
2345 * char **kvpList - list KVP values