2 * Copyright (c) 2007, Novell Inc.
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
17 #include "poolvendor.h"
20 const char *vendors[] = {
27 "ATI Technologies Inc.*",
33 Id pool_vendor2mask(Pool *pool, Id vendor)
42 for (i = 0; i < pool->vendormap.count; i += 2)
43 if (pool->vendormap.elements[i] == vendor)
44 return pool->vendormap.elements[i + 1];
45 vstr = id2str(pool, vendor);
48 for (v = vendors; ; v++)
59 if (fnmatch(*v, vstr, FNM_CASEFOLD) == 0)
66 queue_push(&pool->vendormap, vendor);
67 queue_push(&pool->vendormap, mask);