driverparse.h
00001 /* 00002 * This file is part of the KDE libraries 00003 * Copyright (c) 2001 Michael Goffioul <kdeprint@swing.be> 00004 * Copyright (c) 2014 Timothy Pearson <kb9vqf@pearsoncomputing.net> 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Library General Public 00008 * License version 2 as published by the Free Software Foundation. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Library General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Library General Public License 00016 * along with this library; see the file COPYING.LIB. If not, write to 00017 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 * Boston, MA 02110-1301, USA. 00019 **/ 00020 00021 #ifndef DRIVERPARSE_H 00022 #define DRIVERPARSE_H 00023 00024 #include <stdio.h> 00025 00026 #if !defined(UNUSED) 00027 # if defined(__GNUC__) && ( __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4) ) 00028 # define UNUSED(x) UNUSED_ ## x __attribute__((__unused__)) 00029 # else 00030 # define UNUSED(x) UNUSED_ ## x 00031 # endif 00032 #endif 00033 00034 void registerHandler(const char *name, void(*initf)(const char*), int(*parsef)(const char*, const char*, const char*, FILE*)); 00035 void initFoomatic(void); 00036 int execute(int argc, char *argv[]); 00037 void addFile(const char *filename, const char *origin, const char *metadata); 00038 00039 #endif