this repo has no description
1
fork

Configure Feed

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

[networkextension] Add ne_session_service_get_dns_service_id And ne_session_type_t Stubs

Thomas A 3006c13f 62403382

+14
+8
src/networkextension/include/ne_session.h
··· 1 1 #include <stdbool.h> 2 + #include <uuid/uuid.h> 3 + 4 + // The enum name is a guess 5 + typedef enum ne_session_type { 6 + NESessionTypeAppVPN, 7 + NESessionTypeVPN 8 + } ne_session_type_t; 2 9 3 10 bool ne_session_set_socket_attributes(int socket, char *hostname, void *unknown); 11 + int ne_session_service_get_dns_service_id(uuid_t uuid, ne_session_type_t session_type, const char *hostname); 4 12 5 13 // not sure what this type is (it's probably an enum or enum-like type) 6 14 typedef int ne_session_status_t;
+6
src/networkextension/ne_session.c
··· 1 1 #include <ne_session.h> 2 + #include <stdio.h> 2 3 3 4 bool ne_session_set_socket_attributes(int socket, char *hostname, void *unknown) { 4 5 printf("DARLING SYSTEM_NETWORKEXTENSION STUB: %s\n", __PRETTY_FUNCTION__); 5 6 return false; 6 7 } 8 + 9 + int ne_session_service_get_dns_service_id(uuid_t uuid, ne_session_type_t session_type, const char *hostname) { 10 + printf("DARLING SYSTEM_NETWORKEXTENSION STUB: %s\n", __PRETTY_FUNCTION__); 11 + return -1; 12 + }