Merge tag 'next-20220328' of https://source.denx.de/u-boot/custodians/u-boot-video...
[platform/kernel/u-boot.git] / include / search.h
index c4b50c9..7faf23f 100644 (file)
@@ -80,7 +80,16 @@ int hsearch_r(struct env_entry item, enum env_action action,
 int hmatch_r(const char *match, int last_idx, struct env_entry **retval,
             struct hsearch_data *htab);
 
-/* Search and delete entry matching "key" in internal hash table. */
+/**
+ * hdelete_r() - Search and delete entry in internal hash table
+ *
+ * @key: Name of entry to delete
+ * @htab: Hash table
+ * @flag: Flags to use (H_...)
+ * Return: 0 on success, -ENOENT if not found, -EPERM if the hash table callback
+ *     rejected changing the variable, -EINVAL if the hash table refused to
+ *     delete the variable
+ */
 int hdelete_r(const char *key, struct hsearch_data *htab, int flag);
 
 ssize_t hexport_r(struct hsearch_data *htab, const char sep, int flag,
@@ -113,5 +122,6 @@ int hwalk_r(struct hsearch_data *htab,
 #define H_PROGRAMMATIC (1 << 9) /* indicate that an import is from env_set() */
 #define H_ORIGIN_FLAGS (H_INTERACTIVE | H_PROGRAMMATIC)
 #define H_DEFAULT      (1 << 10) /* indicate that an import is default env */
+#define H_EXTERNAL     (1 << 11) /* indicate that an import is external env */
 
 #endif /* _SEARCH_H_ */