this repo has no description
1/*
2This file is part of Darling.
3
4Copyright (C) 2017 Lubos Dolezel
5
6Darling is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation, either version 3 of the License, or
9(at your option) any later version.
10
11Darling is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with Darling. If not, see <http://www.gnu.org/licenses/>.
18*/
19#ifndef _LIBXCSELECT_H_
20#define _LIBXCSELECT_H_
21#include <stdbool.h>
22#include <stddef.h>
23
24#define XCSELECT_FLAG_REQUIRE_XCODE 1
25
26int xcselect_invoke_xcrun(const char* tool, int argc, char* argv[], int flags);
27
28bool xcselect_get_developer_dir_path(char* path, size_t len, bool* is_cmd_line);
29bool xcselect_find_developer_contents_from_path(const char* p, char* dst, bool* is_cmd_line, size_t dst_size);
30
31typedef struct __xcselect_manpaths xcselect_manpaths;
32xcselect_manpaths* xcselect_get_manpaths(const char* sdkname);
33unsigned int xcselect_manpaths_get_num_paths(xcselect_manpaths* p);
34const char* xcselect_manpaths_get_path(xcselect_manpaths* p, unsigned int idx);
35void xcselect_manpaths_free(xcselect_manpaths* p);
36
37#endif
38