summaryrefslogtreecommitdiff
path: root/files.c
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2012-01-31 15:02:35 -0800
committerAaron Plattner <aplattner@nvidia.com>2012-01-31 15:02:35 -0800
commit79cb84b462f67a3742412d29af7d47e4ed15dc33 (patch)
tree1713ac2e8135d9d590525abc2281d97933b5700c /files.c
parent38d88381e0d4b6f0a52501b6bba1a3d97f771387 (diff)
295.17295.17
Diffstat (limited to 'files.c')
-rw-r--r--files.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/files.c b/files.c
index 5dd26f1..cfa4516 100644
--- a/files.c
+++ b/files.c
@@ -546,7 +546,9 @@ int set_destinations(Options *op, Package *p)
break;
case FILE_TYPE_XMODULE_SHARED_LIB:
+ case FILE_TYPE_GLX_MODULE_SHARED_LIB:
case FILE_TYPE_XMODULE_SYMLINK:
+ case FILE_TYPE_GLX_MODULE_SYMLINK:
case FILE_TYPE_XMODULE_NEWSYM:
prefix = op->x_module_path;
dir = "";
@@ -951,6 +953,22 @@ void remove_non_kernel_module_files_from_package(Options *op, Package *p)
} /* remove_non_kernel_module_files_from_package() */
+/*
+ * clear the FILE_TYPE_MASK bits for each package entry that is not of
+ * type FILE_TYPE_OPENGL_FILE
+ */
+void remove_opengl_files_from_package(Options *op, Package *p)
+{
+ int i;
+
+ for (i = 0; i < p->num_entries; i++) {
+ uint64_t flags = p->entries[i].flags & FILE_TYPE_MASK;
+ if (flags & FILE_TYPE_OPENGL_FILE) {
+ p->entries[i].flags &= ~FILE_TYPE_MASK;
+ }
+ }
+}
+
/*
* remove_trailing_slashes() - begin at the end of the given string,