this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Stub NetFS framework

+479
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/NetFS.framework/Headers
··· 1 + Versions/Current/Headers
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/NetFS.framework/Versions/A/Headers
··· 1 + ../../../../../../../../../../../../src/frameworks/NetFS/include/NetFS
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/NetFS.framework/Versions/Current
··· 1 + A
+1
framework-include/NetFS
··· 1 + ../Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/NetFS.framework/Headers
+1
src/frameworks/CMakeLists.txt
··· 39 39 add_subdirectory(MetalKit) 40 40 add_subdirectory(ModelIO) 41 41 add_subdirectory(MultipeerConnectivity) 42 + add_subdirectory(NetFS) 42 43 add_subdirectory(Network) 43 44 add_subdirectory(OpenAL) 44 45 add_subdirectory(OpenCL)
+18
src/frameworks/NetFS/CMakeLists.txt
··· 1 + project(NetFS) 2 + 3 + set(DYLIB_COMPAT_VERSION "1.0.0") 4 + set(DYLIB_CURRENT_VERSION "1.0.0") 5 + 6 + add_framework(NetFS 7 + FAT 8 + CURRENT_VERSION 9 + VERSION "A" 10 + 11 + SOURCES 12 + src/NetFS.m 13 + 14 + DEPENDENCIES 15 + system 16 + objc 17 + Foundation 18 + )
+85
src/frameworks/NetFS/include/NetFS/NetFS.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2021 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 + 20 + #ifndef _NetFS_H_ 21 + #define _NetFS_H_ 22 + 23 + #include <sys/types.h> 24 + 25 + void* GetCompleteMountURL(void); 26 + void* GetURLFromURLRemountInfo(void); 27 + void* GetURLRemountInfo(void); 28 + void* GetURLRemountInfoSize(void); 29 + void* MountCompleteURL(void); 30 + void* MountServerURL(void); 31 + void* MountURLWithAuthentication(void); 32 + void* NetFSCFStringtoCString(void); 33 + void* NetFSClearAllURLApprovals(void); 34 + void* NetFSCopyHostAndPort(void); 35 + void* NetFSCopyNormalizedURLString(void); 36 + void* NetFSCopyURLForRemountingVolume(void); 37 + void* NetFSGetMountInfo(void); 38 + void* NetFSGetMountInfoByFSID(void); 39 + void* NetFSGetSupportedSchemes(void); 40 + void* NetFSGetURLApprovalState(void); 41 + void* NetFSInterface_AddRef(void); 42 + void* NetFSInterface_Release(void); 43 + void* NetFSLogToMessageTracer(void); 44 + void* NetFSMountURLAsync(void); 45 + void* NetFSMountURLCancel(void); 46 + void* NetFSMountURLProbe(void); 47 + void* NetFSMountURLSync(void); 48 + void* NetFSMountURLWithAuthenticationSync(void); 49 + void* NetFSQueryInterface(void); 50 + void* NetFSSetURLApprovalState(void); 51 + void* NetFS_CreateInterface(void); 52 + void* PremountHomeDirectoryWithAuthentication(void); 53 + void* RemountInfoQueryInterface(void); 54 + void* UnmountServerURL(void); 55 + void* netfs_Cancel(void); 56 + void* netfs_CancelAsyncMount(void); 57 + void* netfs_CloseSession(void); 58 + void* netfs_ConnectToServerAsync(void); 59 + void* netfs_ConnectToServerSync(void); 60 + void* netfs_CreateSessionRef(void); 61 + void* netfs_CreateURL(void); 62 + void* netfs_EnumerateShares(void); 63 + void* netfs_GetServerInfo(void); 64 + void* netfs_Mount(void); 65 + void* netfs_MountURLWithAuthenticationAsync(void); 66 + void* netfs_MountURLWithAuthenticationSync(void); 67 + void* netfs_OpenSession(void); 68 + void* netfs_ParseURL(void); 69 + void* netfs_log_message_tracer(void); 70 + void* netfs_log_message_tracer_auth_type(void); 71 + void* netfs_log_message_tracer_automounted(void); 72 + void* netfs_log_message_tracer_executable_name(void); 73 + void* netfs_log_message_tracer_result(void); 74 + void* netfs_log_message_tracer_result_on_fail(void); 75 + void* netfs_log_message_tracer_scheme(void); 76 + 77 + int NetFSUnmountHomeDirectory(const char* home, const char* path, uid_t uid, int flags /* unsure */); 78 + int NetFSMountHomeDirectoryWithAuthentication(const char* url, const char* home, const char* path, uid_t uid, size_t mount_dir_length, const char* mount_dir, const char* username, const char* authenticator, int flags, unsigned int* out_was_remounted); 79 + 80 + enum { 81 + // no clue what the real value is 82 + kNetFSAllowKerberos = 1, 83 + }; 84 + 85 + #endif
+25
src/frameworks/NetFS/include/NetFS/URLMount.h
··· 1 + /** 2 + * This file is part of Darling. 3 + * 4 + * Copyright (C) 2021 Darling developers 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 + 20 + #ifndef _NETFS_URLMOUNT_H_ 21 + #define _NETFS_URLMOUNT_H_ 22 + 23 + #include <NetFS/NetFS.h> 24 + 25 + #endif // _NETFS_URLMOUNT_H_
+346
src/frameworks/NetFS/src/NetFS.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2021 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 + 20 + 21 + #include <NetFS/NetFS.h> 22 + #include <stdlib.h> 23 + #include <stdio.h> 24 + 25 + static int verbose = 0; 26 + 27 + __attribute__((constructor)) 28 + static void initme(void) { 29 + verbose = getenv("STUB_VERBOSE") != NULL; 30 + } 31 + 32 + void* GetCompleteMountURL(void) 33 + { 34 + if (verbose) puts("STUB: GetCompleteMountURL called"); 35 + return NULL; 36 + } 37 + 38 + void* GetURLFromURLRemountInfo(void) 39 + { 40 + if (verbose) puts("STUB: GetURLFromURLRemountInfo called"); 41 + return NULL; 42 + } 43 + 44 + void* GetURLRemountInfo(void) 45 + { 46 + if (verbose) puts("STUB: GetURLRemountInfo called"); 47 + return NULL; 48 + } 49 + 50 + void* GetURLRemountInfoSize(void) 51 + { 52 + if (verbose) puts("STUB: GetURLRemountInfoSize called"); 53 + return NULL; 54 + } 55 + 56 + void* MountCompleteURL(void) 57 + { 58 + if (verbose) puts("STUB: MountCompleteURL called"); 59 + return NULL; 60 + } 61 + 62 + void* MountServerURL(void) 63 + { 64 + if (verbose) puts("STUB: MountServerURL called"); 65 + return NULL; 66 + } 67 + 68 + void* MountURLWithAuthentication(void) 69 + { 70 + if (verbose) puts("STUB: MountURLWithAuthentication called"); 71 + return NULL; 72 + } 73 + 74 + void* NetFSCFStringtoCString(void) 75 + { 76 + if (verbose) puts("STUB: NetFSCFStringtoCString called"); 77 + return NULL; 78 + } 79 + 80 + void* NetFSClearAllURLApprovals(void) 81 + { 82 + if (verbose) puts("STUB: NetFSClearAllURLApprovals called"); 83 + return NULL; 84 + } 85 + 86 + void* NetFSCopyHostAndPort(void) 87 + { 88 + if (verbose) puts("STUB: NetFSCopyHostAndPort called"); 89 + return NULL; 90 + } 91 + 92 + void* NetFSCopyNormalizedURLString(void) 93 + { 94 + if (verbose) puts("STUB: NetFSCopyNormalizedURLString called"); 95 + return NULL; 96 + } 97 + 98 + void* NetFSCopyURLForRemountingVolume(void) 99 + { 100 + if (verbose) puts("STUB: NetFSCopyURLForRemountingVolume called"); 101 + return NULL; 102 + } 103 + 104 + void* NetFSGetMountInfo(void) 105 + { 106 + if (verbose) puts("STUB: NetFSGetMountInfo called"); 107 + return NULL; 108 + } 109 + 110 + void* NetFSGetMountInfoByFSID(void) 111 + { 112 + if (verbose) puts("STUB: NetFSGetMountInfoByFSID called"); 113 + return NULL; 114 + } 115 + 116 + void* NetFSGetSupportedSchemes(void) 117 + { 118 + if (verbose) puts("STUB: NetFSGetSupportedSchemes called"); 119 + return NULL; 120 + } 121 + 122 + void* NetFSGetURLApprovalState(void) 123 + { 124 + if (verbose) puts("STUB: NetFSGetURLApprovalState called"); 125 + return NULL; 126 + } 127 + 128 + void* NetFSInterface_AddRef(void) 129 + { 130 + if (verbose) puts("STUB: NetFSInterface_AddRef called"); 131 + return NULL; 132 + } 133 + 134 + void* NetFSInterface_Release(void) 135 + { 136 + if (verbose) puts("STUB: NetFSInterface_Release called"); 137 + return NULL; 138 + } 139 + 140 + void* NetFSLogToMessageTracer(void) 141 + { 142 + if (verbose) puts("STUB: NetFSLogToMessageTracer called"); 143 + return NULL; 144 + } 145 + 146 + void* NetFSMountURLAsync(void) 147 + { 148 + if (verbose) puts("STUB: NetFSMountURLAsync called"); 149 + return NULL; 150 + } 151 + 152 + void* NetFSMountURLCancel(void) 153 + { 154 + if (verbose) puts("STUB: NetFSMountURLCancel called"); 155 + return NULL; 156 + } 157 + 158 + void* NetFSMountURLProbe(void) 159 + { 160 + if (verbose) puts("STUB: NetFSMountURLProbe called"); 161 + return NULL; 162 + } 163 + 164 + void* NetFSMountURLSync(void) 165 + { 166 + if (verbose) puts("STUB: NetFSMountURLSync called"); 167 + return NULL; 168 + } 169 + 170 + void* NetFSMountURLWithAuthenticationSync(void) 171 + { 172 + if (verbose) puts("STUB: NetFSMountURLWithAuthenticationSync called"); 173 + return NULL; 174 + } 175 + 176 + void* NetFSQueryInterface(void) 177 + { 178 + if (verbose) puts("STUB: NetFSQueryInterface called"); 179 + return NULL; 180 + } 181 + 182 + void* NetFSSetURLApprovalState(void) 183 + { 184 + if (verbose) puts("STUB: NetFSSetURLApprovalState called"); 185 + return NULL; 186 + } 187 + 188 + void* NetFS_CreateInterface(void) 189 + { 190 + if (verbose) puts("STUB: NetFS_CreateInterface called"); 191 + return NULL; 192 + } 193 + 194 + void* PremountHomeDirectoryWithAuthentication(void) 195 + { 196 + if (verbose) puts("STUB: PremountHomeDirectoryWithAuthentication called"); 197 + return NULL; 198 + } 199 + 200 + void* RemountInfoQueryInterface(void) 201 + { 202 + if (verbose) puts("STUB: RemountInfoQueryInterface called"); 203 + return NULL; 204 + } 205 + 206 + void* UnmountServerURL(void) 207 + { 208 + if (verbose) puts("STUB: UnmountServerURL called"); 209 + return NULL; 210 + } 211 + 212 + void* netfs_Cancel(void) 213 + { 214 + if (verbose) puts("STUB: netfs_Cancel called"); 215 + return NULL; 216 + } 217 + 218 + void* netfs_CancelAsyncMount(void) 219 + { 220 + if (verbose) puts("STUB: netfs_CancelAsyncMount called"); 221 + return NULL; 222 + } 223 + 224 + void* netfs_CloseSession(void) 225 + { 226 + if (verbose) puts("STUB: netfs_CloseSession called"); 227 + return NULL; 228 + } 229 + 230 + void* netfs_ConnectToServerAsync(void) 231 + { 232 + if (verbose) puts("STUB: netfs_ConnectToServerAsync called"); 233 + return NULL; 234 + } 235 + 236 + void* netfs_ConnectToServerSync(void) 237 + { 238 + if (verbose) puts("STUB: netfs_ConnectToServerSync called"); 239 + return NULL; 240 + } 241 + 242 + void* netfs_CreateSessionRef(void) 243 + { 244 + if (verbose) puts("STUB: netfs_CreateSessionRef called"); 245 + return NULL; 246 + } 247 + 248 + void* netfs_CreateURL(void) 249 + { 250 + if (verbose) puts("STUB: netfs_CreateURL called"); 251 + return NULL; 252 + } 253 + 254 + void* netfs_EnumerateShares(void) 255 + { 256 + if (verbose) puts("STUB: netfs_EnumerateShares called"); 257 + return NULL; 258 + } 259 + 260 + void* netfs_GetServerInfo(void) 261 + { 262 + if (verbose) puts("STUB: netfs_GetServerInfo called"); 263 + return NULL; 264 + } 265 + 266 + void* netfs_Mount(void) 267 + { 268 + if (verbose) puts("STUB: netfs_Mount called"); 269 + return NULL; 270 + } 271 + 272 + void* netfs_MountURLWithAuthenticationAsync(void) 273 + { 274 + if (verbose) puts("STUB: netfs_MountURLWithAuthenticationAsync called"); 275 + return NULL; 276 + } 277 + 278 + void* netfs_MountURLWithAuthenticationSync(void) 279 + { 280 + if (verbose) puts("STUB: netfs_MountURLWithAuthenticationSync called"); 281 + return NULL; 282 + } 283 + 284 + void* netfs_OpenSession(void) 285 + { 286 + if (verbose) puts("STUB: netfs_OpenSession called"); 287 + return NULL; 288 + } 289 + 290 + void* netfs_ParseURL(void) 291 + { 292 + if (verbose) puts("STUB: netfs_ParseURL called"); 293 + return NULL; 294 + } 295 + 296 + void* netfs_log_message_tracer(void) 297 + { 298 + if (verbose) puts("STUB: netfs_log_message_tracer called"); 299 + return NULL; 300 + } 301 + 302 + void* netfs_log_message_tracer_auth_type(void) 303 + { 304 + if (verbose) puts("STUB: netfs_log_message_tracer_auth_type called"); 305 + return NULL; 306 + } 307 + 308 + void* netfs_log_message_tracer_automounted(void) 309 + { 310 + if (verbose) puts("STUB: netfs_log_message_tracer_automounted called"); 311 + return NULL; 312 + } 313 + 314 + void* netfs_log_message_tracer_executable_name(void) 315 + { 316 + if (verbose) puts("STUB: netfs_log_message_tracer_executable_name called"); 317 + return NULL; 318 + } 319 + 320 + void* netfs_log_message_tracer_result(void) 321 + { 322 + if (verbose) puts("STUB: netfs_log_message_tracer_result called"); 323 + return NULL; 324 + } 325 + 326 + void* netfs_log_message_tracer_result_on_fail(void) 327 + { 328 + if (verbose) puts("STUB: netfs_log_message_tracer_result_on_fail called"); 329 + return NULL; 330 + } 331 + 332 + void* netfs_log_message_tracer_scheme(void) 333 + { 334 + if (verbose) puts("STUB: netfs_log_message_tracer_scheme called"); 335 + return NULL; 336 + } 337 + 338 + int NetFSUnmountHomeDirectory(const char* home, const char* path, uid_t uid, int flags) { 339 + if (verbose) puts("STUB: NetFSUnmountHomeDirectory called"); 340 + return -1; 341 + }; 342 + 343 + int NetFSMountHomeDirectoryWithAuthentication(const char* url, const char* home, const char* path, uid_t uid, size_t mount_dir_length, const char* mount_dir, const char* username, const char* authenticator, int flags, unsigned int* out_was_remounted) { 344 + if (verbose) puts("STUB: NetFSMountHomeDirectoryWithAuthentication called"); 345 + return -1; 346 + };