summaryrefslogtreecommitdiff
path: root/x11.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-07-14 23:16:17 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-10-02 22:16:06 -0700
commit510c5429e4c2e2f4d8752e688e9fbc008523774d (patch)
tree53ce30389d040df47d533fd802fc349d95647ba4 /x11.h
parente1e857744290f0a09d60435e8d5997efb0a436ba (diff)
downloadxscope-510c5429e4c2e2f4d8752e688e9fbc008523774d.tar.gz
Convert ValueRec structures from unsigned long to uint32_t values
Used for GC struct members, which are defined in the protocol as 32-bit, so no need to waste time and memory copying into 64-bit longs everywhere Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'x11.h')
-rw-r--r--x11.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/x11.h b/x11.h
index cbe0c86..6cdf270 100644
--- a/x11.h
+++ b/x11.h
@@ -512,19 +512,19 @@ extern struct ConnState *CS;
typedef struct _Value {
struct _Value *next;
- unsigned long key;
+ uint32_t key;
int size;
- unsigned long *values;
+ uint32_t *values;
} ValueRec, *ValuePtr;
-extern ValuePtr GetValueRec(unsigned long key);
-extern void CreateValueRec(unsigned long key, int size,
- const unsigned long *def);
-extern void DeleteValueRec(unsigned long key);
-extern void SetValueRec(unsigned long key, const unsigned char *control,
+extern ValuePtr GetValueRec(uint32_t key);
+extern void CreateValueRec(uint32_t key, int size,
+ const uint32_t *def);
+extern void DeleteValueRec(uint32_t key);
+extern void SetValueRec(uint32_t key, const unsigned char *control,
short clength, short ctype,
const unsigned char *values);
-extern void PrintValueRec(unsigned long key, unsigned long cmask, short ctype);
+extern void PrintValueRec(uint32_t key, uint32_t cmask, short ctype);
/* ************************************************************ */
/* */