summaryrefslogtreecommitdiffstats
path: root/tdeprint/lpr
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-11-20 01:54:12 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-11-20 01:54:39 -0600
commit540db0b3e7e829e71c4c32a4bcc44d4d0addcfb7 (patch)
tree4a038973f4c30bfde5ea370f563933092f4b241a /tdeprint/lpr
parentb03b9b071f41eb2a0a2ec9c5a865d8e0178895fb (diff)
downloadtdelibs-540db0b3e7e829e71c4c32a4bcc44d4d0addcfb7.tar.gz
tdelibs-540db0b3e7e829e71c4c32a4bcc44d4d0addcfb7.zip
Add very early support for compressed PPDs to make_driver_db_cups
This relates to Bug 2191
Diffstat (limited to 'tdeprint/lpr')
-rw-r--r--tdeprint/lpr/make_driver_db_lpr.c24
1 files changed, 22 insertions, 2 deletions
diff --git a/tdeprint/lpr/make_driver_db_lpr.c b/tdeprint/lpr/make_driver_db_lpr.c
index fabbcb2fe..17fa25bf5 100644
--- a/tdeprint/lpr/make_driver_db_lpr.c
+++ b/tdeprint/lpr/make_driver_db_lpr.c
@@ -1,3 +1,23 @@
+/*
+ * This file is part of the KDE libraries
+ * Copyright (c) 2001 Michael Goffioul <tdeprint@swing.be>
+ * Copyright (c) 2014 Timothy Pearson <kb9vqf@pearsoncomputing.net>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License version 2 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ **/
+
#include <config.h>
#include <stdio.h>
#include <string.h>
@@ -94,7 +114,7 @@ void initAps(const char *base)
gsversion = 1;
}
snprintf(drFile, 256, "apsfilter:%s/%s", base, d->d_name);
- addFile(drFile);
+ addFile(drFile, "");
}
closedir(apsdir);
}
@@ -179,7 +199,7 @@ void initIfhp(const char *base)
snprintf(path, 255, "lprngtool:%s/printerdb", base);
if (access(path+10, R_OK) == 0)
{
- addFile(path);
+ addFile(path, "");
}
}