binder: Return pid_t/uid_t instead of int
Makes IPCThreadState::getCalling{Pid,Uid} return a more appropriate type. Change-Id: I97f8a83c1c0722bc1afbf8a6df1a288f8f1f0d2c
This commit is contained in:
parent
46ca041f43
commit
9c634fd2d1
|
@ -39,8 +39,8 @@ public:
|
||||||
|
|
||||||
status_t clearLastError();
|
status_t clearLastError();
|
||||||
|
|
||||||
int getCallingPid() const;
|
pid_t getCallingPid() const;
|
||||||
int getCallingUid() const;
|
uid_t getCallingUid() const;
|
||||||
|
|
||||||
void setStrictModePolicy(int32_t policy);
|
void setStrictModePolicy(int32_t policy);
|
||||||
int32_t getStrictModePolicy() const;
|
int32_t getStrictModePolicy() const;
|
||||||
|
|
|
@ -350,12 +350,12 @@ status_t IPCThreadState::clearLastError()
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
int IPCThreadState::getCallingPid() const
|
pid_t IPCThreadState::getCallingPid() const
|
||||||
{
|
{
|
||||||
return mCallingPid;
|
return mCallingPid;
|
||||||
}
|
}
|
||||||
|
|
||||||
int IPCThreadState::getCallingUid() const
|
uid_t IPCThreadState::getCallingUid() const
|
||||||
{
|
{
|
||||||
return mCallingUid;
|
return mCallingUid;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue