2 * Copyright (c) 2007, Novell Inc.
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
12 /* we need FNM_CASEFOLD */
21 #include "poolvendor.h"
24 const char *vendors[] = {
31 "ATI Technologies Inc.*",
37 Id pool_vendor2mask(Pool *pool, Id vendor)
46 for (i = 0; i < pool->vendormap.count; i += 2)
47 if (pool->vendormap.elements[i] == vendor)
48 return pool->vendormap.elements[i + 1];
49 vstr = id2str(pool, vendor);
52 for (v = vendors; ; v++)
63 if (fnmatch(*v, vstr, FNM_CASEFOLD) == 0)
70 queue_push(&pool->vendormap, vendor);
71 queue_push(&pool->vendormap, mask);