summaryrefslogtreecommitdiff
path: root/src/win32/findfile.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32/findfile.h')
-rw-r--r--src/win32/findfile.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/win32/findfile.h b/src/win32/findfile.h
new file mode 100644
index 000000000..8751b7391
--- /dev/null
+++ b/src/win32/findfile.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2012 the libgit2 contributors
+ *
+ * This file is part of libgit2, distributed under the GNU GPL v2 with
+ * a Linking Exception. For full terms see the included COPYING file.
+ */
+
+#ifndef INCLUDE_git_findfile_h__
+#define INCLUDE_git_findfile_h__
+
+struct win32_path {
+ wchar_t path[MAX_PATH];
+ DWORD len;
+};
+
+int win32_expand_path(struct win32_path *s_root, const wchar_t *templ);
+
+int win32_find_file(git_buf *path, const struct win32_path *root, const char *filename);
+int win32_find_system_file_using_path(git_buf *path, const char *filename);
+int win32_find_system_file_using_registry(git_buf *path, const char *filename);
+
+#endif
+