aboutsummaryrefslogtreecommitdiffstats
path: root/minifind.h
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-02-23 17:33:43 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-02-23 17:33:43 +0000
commitc491f8e99349e4022fac0dec6536ab4b43396507 (patch)
treedfc2f6bba4d40995ef4e0c152a533ad12ff47d1e /minifind.h
parent3b6ec4ddecee5811e38d757f15a56edfbce79b4a (diff)
downloadmonitor-edid-c491f8e99349e4022fac0dec6536ab4b43396507.tar
monitor-edid-c491f8e99349e4022fac0dec6536ab4b43396507.tar.gz
monitor-edid-c491f8e99349e4022fac0dec6536ab4b43396507.tar.bz2
monitor-edid-c491f8e99349e4022fac0dec6536ab4b43396507.tar.xz
monitor-edid-c491f8e99349e4022fac0dec6536ab4b43396507.zip
*** empty log message ***
Diffstat (limited to 'minifind.h')
-rw-r--r--minifind.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/minifind.h b/minifind.h
new file mode 100644
index 0000000..4f72525
--- /dev/null
+++ b/minifind.h
@@ -0,0 +1,42 @@
+/* minifind.h
+ *
+ * Copyright (c) 2002 Terra Soft Solutions, Inc.
+ * Written by Dan Burcaw <dburcaw@terrasoftsolutions.com>
+ *
+ * This software may be freely redistributed under the terms of the GNU
+ * library public license.
+ *
+ * You should have received a copy of the GNU Library Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ */
+
+#ifndef MINIFIND_H
+#define MINIFIND_H
+
+#include <stdio.h>
+#include <string.h>
+#include <dirent.h>
+#include <malloc.h>
+#include <unistd.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+
+struct pathNode
+{
+ char *path;
+ struct pathNode *next;
+};
+
+struct findNode
+{
+ struct pathNode *result;
+ struct pathNode *exclude;
+};
+
+void insert_node(struct pathNode *n, char *path);
+char *stripLastChar(char *in);
+char *minifind(char *dir, char *search, struct findNode *list);
+
+#endif /* MINIFIND_H */