findfile.h 742 Bytes
Newer Older
1
/*
Edward Thomson committed
2
 * Copyright (C) the libgit2 contributors. All rights reserved.
3 4 5 6 7 8 9 10
 *
 * 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__

Russell Belfer committed
11
struct git_win32__path {
12 13 14 15
	wchar_t path[MAX_PATH];
	DWORD len;
};

Russell Belfer committed
16 17
extern int git_win32__expand_path(
	struct git_win32__path *s_root, const wchar_t *templ);
18

Russell Belfer committed
19 20
extern int git_win32__find_file(
	git_buf *path, const struct git_win32__path *root, const char *filename);
21

22
extern int git_win32__find_system_dirs(git_buf *out, const wchar_t *subpath);
Russell Belfer committed
23 24
extern int git_win32__find_global_dirs(git_buf *out);
extern int git_win32__find_xdg_dirs(git_buf *out);
25 26 27

#endif