summaryrefslogtreecommitdiff
path: root/grep-dctrl/rc.h
diff options
context:
space:
mode:
Diffstat (limited to 'grep-dctrl/rc.h')
-rw-r--r--grep-dctrl/rc.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/grep-dctrl/rc.h b/grep-dctrl/rc.h
new file mode 100644
index 0000000..e112424
--- /dev/null
+++ b/grep-dctrl/rc.h
@@ -0,0 +1,36 @@
+/* dctrl-tools - Debian control file inspection tools
+ Copyright (C) 1999, 2003 Antti-Juhani Kaijanaho
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef RC_H__
+#define RC_H__
+
+#include "ifile.h"
+
+extern char const * const ifile_modes[];
+
+/* Search for exename (only basename, though) in rcfname (or if it is
+ null, in default rc files) and return the found corresponding
+ default input file name. The mode will be m_error, if not found or
+ other error occurred, m_read, if it is intended to be interpreted
+ as a file name, and m_exec, if the string is to be interpreted as a
+ shell command whose stdout should be used. The returned pointer
+ will be invalidated by the next call to this function. */
+struct ifile
+find_ifile_by_exename (const char * exename, const char * rcfname);
+
+#endif