diff options
Diffstat (limited to 'UnixPkg/Include')
-rw-r--r-- | UnixPkg/Include/Protocol/UnixThunk.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/UnixPkg/Include/Protocol/UnixThunk.h b/UnixPkg/Include/Protocol/UnixThunk.h index ddddf1a036..ba325bff87 100644 --- a/UnixPkg/Include/Protocol/UnixThunk.h +++ b/UnixPkg/Include/Protocol/UnixThunk.h @@ -46,6 +46,7 @@ Abstract: #include <sys/ioctl.h> #include <sys/vfs.h> #include <utime.h> +#include <dlfcn.h> #define EFI_UNIX_THUNK_PROTOCOL_GUID \ { \ @@ -189,6 +190,19 @@ int (*UnixTcsetattr) (int __fd, int __optional_actions, __const struct termios *__termios_p); +typedef +VOID * +(*UnixDlopen) (const char *FileName, int Flag); + +typedef +char * +(*UnixDlerror) (VOID); + +typedef +VOID * +(*UnixDlsym) (VOID* Handle, const char* Symbol); + + // // // @@ -237,6 +251,9 @@ typedef struct _EFI_UNIX_THUNK_PROTOCOL { UnixCfsetospeed Cfsetospeed; UnixTcgetattr Tcgetattr; UnixTcsetattr Tcsetattr; + UnixDlopen Dlopen; + UnixDlerror Dlerror; + UnixDlsym Dlsym; } EFI_UNIX_THUNK_PROTOCOL; extern EFI_GUID gEfiUnixThunkProtocolGuid; |