diff options
author | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2002-10-22 04:14:35 +0000 |
---|---|---|
committer | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2002-10-22 04:14:35 +0000 |
commit | 34042515c1715b3e0c5c0a5e0bd033e9d4858f01 (patch) | |
tree | c3b19fc9e0eb9af5ebabf26f7950551a6ec09511 /include/valgrind.h | |
parent | a449568c916804186eb6784c5a7d4b4af4439f7a (diff) | |
download | valgrind-34042515c1715b3e0c5c0a5e0bd033e9d4858f01.tar.gz |
Merge patch from Jeremy Fitzhardinge:
08-skin-clientreq
Introduce a systematic way for skins to distinguish each other's
client requests. Uses the de-facto standard two-letter identifiers in
the top two bytes of the client request code. Also changes the
interface to SK_(handle_client_request) so that a skin can say whether
or not it handled the request, which allows correct setting of the
default return value if the request was not handled.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1251 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'include/valgrind.h')
-rw-r--r-- | include/valgrind.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/valgrind.h b/include/valgrind.h index 0b16d8c9c..789d65d49 100644 --- a/include/valgrind.h +++ b/include/valgrind.h @@ -118,6 +118,9 @@ form 0x1000 + small_number. */ +#define VG_USERREQ_SKIN_BASE(a,b) ((unsigned int)(((a)&0xff) << 24 | ((b)&0xff) << 16)) +#define VG_IS_SKIN_USERREQ(a, b, v) (VG_USERREQ_SKIN_BASE(a,b) == ((v) & 0xffff0000)) + typedef enum { VG_USERREQ__RUNNING_ON_VALGRIND = 0x1001, VG_USERREQ__DISCARD_TRANSLATIONS, |