summaryrefslogtreecommitdiff
path: root/src/win32/findfile.h
blob: f8a13c3e3443958321f296970956d2638eaf16f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright (C) the libgit2 contributors. All rights reserved.
 *
 * 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;
};

extern int win32_expand_path(struct win32_path *s_root, const wchar_t *templ);

extern int win32_find_file(
	git_buf *path, const struct win32_path *root, const char *filename);

extern int win32_find_system_dirs(git_strarray *out);
extern int win32_find_global_dirs(git_strarray *out);
extern int win32_find_xdg_dirs(git_strarray *out);

#endif