diff options
author | Geremy Condra <gcondra@google.com> | 2012-03-29 14:46:07 -0700 |
---|---|---|
committer | Geremy Condra <gcondra@google.com> | 2012-03-29 17:07:24 -0700 |
commit | 15621e0970e97eb2fc28f82a07620c9124a4455c (patch) | |
tree | da0394eb66b5c51750f9b44a7d2be7d5030663d3 /include | |
parent | 15892e10a49b5b5f3d612228cd3e125cf3b43025 (diff) | |
download | system_core-15621e0970e97eb2fc28f82a07620c9124a4455c.zip system_core-15621e0970e97eb2fc28f82a07620c9124a4455c.tar.gz system_core-15621e0970e97eb2fc28f82a07620c9124a4455c.tar.bz2 |
cutils: return the remote uid on netlink recv failure
This change adds a layer of indirection to uevent's
uevent_kernel_multicast_recv, allowing dependent code to
get the remote endpoint if desired.
Change-Id: If2f00708a1dd6196c415b1ebc2a7eeb72399a90e
Diffstat (limited to 'include')
-rw-r--r-- | include/cutils/uevent.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cutils/uevent.h b/include/cutils/uevent.h index 4ebc300..4cca7e5 100644 --- a/include/cutils/uevent.h +++ b/include/cutils/uevent.h @@ -26,6 +26,7 @@ extern "C" { int uevent_open_socket(int buf_sz, bool passcred); ssize_t uevent_kernel_multicast_recv(int socket, void *buffer, size_t length); +ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *uid); #ifdef __cplusplus } |