Skip to content

Commit

Permalink
Get libinfo to attempt to talk to DS (#357)
Browse files Browse the repository at this point in the history
Many xpc functions related to talking to DirectoryService
are stubs, so this won’t work. This does get it to attempt
talking to DirectoryService, however.
  • Loading branch information
Andrew Hyatt committed Dec 17, 2018
1 parent 0a52746 commit b6daf31
Show file tree
Hide file tree
Showing 28 changed files with 40 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/external/libxpc
Submodule libxpc updated 2 files
+5 −0 xpc/private.h
+15 −1 xpc_misc.c
4 changes: 4 additions & 0 deletions src/libinfo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ add_definitions(-DHAVE_STDINT_H=1)
add_definitions(-D__APPLE__ -D__DYNAMIC__)
add_definitions(-D__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=1080)

add_definitions(-DDS_AVAILABLE)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -nostdinc -D__DARWIN_UNIX03 -fPIC -ggdb")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -nostdlib")

Expand Down Expand Up @@ -67,9 +69,11 @@ add_circular(system_info FAT
system_pthread
libdispatch_shared
system_notify
system_asl
platform
xpc
compiler_rt
launch
DEPENDENCIES
resolv-darwin
)
Expand Down
1 change: 1 addition & 0 deletions src/opendirectory/include/opendirectory/CAuditUtils.h
1 change: 1 addition & 0 deletions src/opendirectory/include/opendirectory/CHandlers.h
1 change: 1 addition & 0 deletions src/opendirectory/include/opendirectory/CLauncher.h
1 change: 1 addition & 0 deletions src/opendirectory/include/opendirectory/CNodeList.h
1 change: 1 addition & 0 deletions src/opendirectory/include/opendirectory/CPlugInList.h
1 change: 1 addition & 0 deletions src/opendirectory/include/opendirectory/CPluginConfig.h
1 change: 1 addition & 0 deletions src/opendirectory/include/opendirectory/CPluginHandler.h
1 change: 1 addition & 0 deletions src/opendirectory/include/opendirectory/CRefTable.h
1 change: 1 addition & 0 deletions src/opendirectory/include/opendirectory/CServerPlugin.h
1 change: 1 addition & 0 deletions src/opendirectory/include/opendirectory/CSrvrMessaging.h
1 change: 1 addition & 0 deletions src/opendirectory/include/opendirectory/DSMachEndian.h
1 change: 1 addition & 0 deletions src/opendirectory/include/opendirectory/DSSwapUtils.h
1 change: 1 addition & 0 deletions src/opendirectory/include/opendirectory/DirServiceMain.h
1 change: 1 addition & 0 deletions src/opendirectory/include/opendirectory/DirectoryService
1 change: 1 addition & 0 deletions src/opendirectory/include/opendirectory/Mbrd_Cache.h
1 change: 1 addition & 0 deletions src/opendirectory/include/opendirectory/Mbrd_HashTable.h
1 change: 1 addition & 0 deletions src/opendirectory/include/opendirectory/Mbrd_UserGroup.h
1 change: 1 addition & 0 deletions src/opendirectory/include/opendirectory/ServerControl.h
1 change: 1 addition & 0 deletions src/opendirectory/include/opendirectory/od_passthru.h
12 changes: 10 additions & 2 deletions src/opendirectory/include/opendirectory/odipc.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
#ifndef _OD_ODIPC_H_
#define _OD_ODIPC_H_

#define kODMachMembershipPortNameDebug 1
#define kODMachMembershipPortName 1
#define kODMachMembershipPortNameDebug 401
#define kODMachMembershipPortName 400

#define kODMachLibinfoPortName 500
#define kODMachLibinfoPortNameDebug 501

#define OD_RPC_NAME "rpc_name"
#define OD_RPC_VERSION "rpc_version"
#define OD_RPC_RESULT "rpc_result"
#define OD_RPC_ERROR "rpc_error"

#endif
1 change: 1 addition & 0 deletions src/opendirectory/include/opendirectory/rb.h

0 comments on commit b6daf31

Please sign in to comment.