249c4b1aadf33329c352c4127b2bffa62faaf039 jcasper Wed Jan 28 00:58:52 2026 -0800 Added hash function to see if any keys match a wildcard value, refs #36320 diff --git src/inc/hash.h src/inc/hash.h index 0fb023df54e..a54591ba3cf 100644 --- src/inc/hash.h +++ src/inc/hash.h @@ -295,17 +295,20 @@ /* Convert hash to string in ra format. */ int hashNumEntries(struct hash *hash); /* count the number of entries in a hash */ struct hash *hashFromString(char *string); /* parse a whitespace-separated string with tuples in the format name=val or * name="val" to a hash name->val */ struct hash *hashFromNameArray(char **nameArray, int nameCount); /* Create a NULL valued hash on all names in array */ struct hash *hashFromNameValArray(char *nameVal[][2], int nameValCount); /* Make up a hash from nameVal array */ +boolean hashItemExistsLike(struct hash *hash, char *wildcard); +/* Return TRUE if a variable matching the wildcard is in the hash table. */ + #endif /* HASH_H */