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