Back to index

im-sdk  12.3.91
Defines | Enumerations | Variables
xaux_common.h File Reference
#include "xaux_atommng.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ME_SO   "xaux_so"
#define ME_EXT   "xaux_ext"
#define XAUX_SOWIN_SUFFIX   "_sowin"
#define XAUX_EXTWIN_SUFFIX   "_extwin"
#define XAUX_XS_SUFFIX   "_xs"
#define XAUX_SX_SUFFIX   "_sx"
#define XAUX_MAXCLASSNAMELEN   255
#define XAUX_MAXSUFFIXLEN   16
#define XAUX_MAXPROPSZ   0x30000
#define XAUX_MAXNPROPS_INIT   64
#define XAUX_PROTOVERS_MAJOR   1
#define XAUX_PROTOVERS_MINOR   0
#define SX_PROTOVERS_MAJOR(prop)   (*((CARD16 *)((prop) + 0))) /* 2 */
#define SX_PROTOVERS_MINOR(prop)   (*((CARD16 *)((prop) + 2))) /* 2 */
#define SX_SEQNO(prop)   (*((CARD32 *)((prop) + 4))) /* 4 */
#define SX_ATOM_AUX_NAME(prop)   (*((CARD32 *)((prop) + 8))) /* 4 */
#define SX_INDEX(prop)   (*((CARD16 *)((prop) + 12))) /* 2 */
#define SX_PRIVTYPE(prop)   (*((CARD8 *)((prop) + 14))) /* 1 */
#define SX_AUXTYPE(prop)   (*((CARD8 *)((prop) + 15))) /* 1 */
#define SX_IMID(prop)   (*((CARD16 *)((prop) + 16))) /* 2 */
#define SX_ICID(prop)   (*((CARD16 *)((prop) + 18))) /* 2 */
#define SX_MORESEGS(prop)   (*((CARD16 *)((prop) + 20))) /* 2 */
#define SX_SEGNO(prop)   (*((CARD16 *)((prop) + 22))) /* 2 */
#define SX_SEGSIZE(prop)   (*((CARD32 *)((prop) + 24))) /* 4 */
#define SX_SIZE_HEADER   28
#define SX_DATA_TOP(prop)   ((prop) + SX_SIZE_HEADER)
#define SX_DRAW_SOWIN(draw)   (*((CARD32 *)((draw) + 0))) /* 4 */
#define SX_DRAW_CLIENTWIN(draw)   (*((CARD32 *)((draw) + 4))) /* 4 */
#define SX_DRAW_FOCUSWIN(draw)   (*((CARD32 *)((draw) + 8))) /* 4 */
#define SX_DRAW_POSX(draw)   (*((CARD16 *)((draw) + 12))) /* 2 */
#define SX_DRAW_POSY(draw)   (*((CARD16 *)((draw) + 14))) /* 2 */
#define SX_DRAW_INT_COUNT(draw)   (*((CARD32 *)((draw) + 16))) /* 4 */
#define SX_DRAW_STR_COUNT(draw)   (*((CARD32 *)((draw) + 20))) /* 4 */
#define SX_DRAW_TOTAL_STR_LEN(draw)   (*((CARD32 *)((draw) + 24))) /* 4 */
#define SX_SIZE_DRAW_HEADER   28
#define SX_DRAW_INT_LIST(draw)   ((CARD32 *)((draw) + SX_SIZE_DRAW_HEADER))
#define SX_DRAW_STR_LIST(draw)
#define XS_PROTOVERS_MAJOR(prop)   (*((CARD16 *)((prop) + 0))) /* 2 */
#define XS_PROTOVERS_MINOR(prop)   (*((CARD16 *)((prop) + 2))) /* 2 */
#define XS_SEQNO(prop)   (*((CARD32 *)((prop) + 4))) /* 4 */
#define XS_ATOM_AUX_NAME(prop)   (*((CARD32 *)((prop) + 8))) /* 4 */
#define XS_INDEX(prop)   (*((CARD16 *)((prop) + 12))) /* 2 */
#define XS_PRIVTYPE(prop)   (*((CARD8 *)((prop) + 14))) /* 1 */
#define XS_AUXTYPE(prop)   (*((CARD8 *)((prop) + 15))) /* 1 */
#define XS_IMID(prop)   (*((CARD16 *)((prop) + 16))) /* 2 */
#define XS_ICID(prop)   (*((CARD16 *)((prop) + 18))) /* 2 */
#define XS_MORESEGS(prop)   (*((CARD16 *)((prop) + 20))) /* 2 */
#define XS_SEGNO(prop)   (*((CARD16 *)((prop) + 22))) /* 2 */
#define XS_SEGSIZE(prop)   (*((CARD32 *)((prop) + 24))) /* 4 */
#define XS_SIZE_HEADER   28
#define XS_DATA_TOP(prop)   ((prop) + XS_SIZE_HEADER)
#define XS_SETV_INT_COUNT(setvalue)   (*((CARD32 *)((setvalue) + 0))) /* 4 */
#define XS_SETV_STR_COUNT(setvalue)   (*((CARD32 *)((setvalue) + 4))) /* 4 */
#define XS_SIZE_SETV_HEADER   8
#define XS_SETV_INT_LIST(setvalue)   ((CARD32 *)((setvalue) + XS_SIZE_SETV_HEADER))
#define XS_SETV_STR_LIST(setvalue)
#define BO_SWAP2(n)
#define BO_SWAP4(n)
#define BO_CARD16(p, n)
#define BO_CARD32(p, n)
#define BO_PROTOVERS_MAJOR(prop)
#define BO_PROTOVERS_MINOR(prop)
#define BO_SEQNO(prop)
#define BO_ATOM_AUX_NAME(prop)
#define BO_INDEX(prop)
#define BO_PRIVTYPE(prop)   (*((CARD8 *)((prop) + 14)))
#define BO_AUXTYPE(prop)   (*((CARD8 *)((prop) + 15)))
#define BO_IMID(prop)
#define BO_ICID(prop)
#define BO_MORESEGS(prop)
#define BO_SEGNO(prop)
#define BO_SEGSIZE(prop)
#define BO_DRAW_SOWIN(prop)
#define BO_DRAW_CLIENTWIN(prop)
#define BO_DRAW_FOCUSWIN(prop)
#define BO_DRAW_POSX(prop)
#define BO_DRAW_POSY(prop)
#define BO_DRAW_INT_COUNT(prop)
#define BO_DRAW_STR_COUNT(prop)
#define BO_DRAW_TOTAL_STR_LEN(prop)
#define BO_SIZE_DRAW_HEADER   28
#define BO_DRAW_INT_LIST(prop)   ((CARD32 *)((prop) + BO_SIZE_DRAW_HEADER))
#define BO_DRAW_STR_LIST(prop)
#define BO_SETV_INT_COUNT(prop)
#define BO_SETV_STR_COUNT(prop)
#define BO_SIZE_SETV_HEADER   8
#define BO_SETV_INT_LIST(prop)   ((CARD32 *)((prop) + BO_SIZE_SETV_HEADER))
#define BO_SETV_STR_LIST(prop)

Enumerations

enum  xaux_privtype_t { XAUX_PRIVTYPE_PUBLIC = 0, XAUX_PRIVTYPE_REQSEG = 1 }

Variables

static const int padding [4] = {0, 3, 2, 1}

Define Documentation

#define BO_ATOM_AUX_NAME (   prop)
Value:
((1 == (*((CARD16 *)(prop)))) ? \
                                    (*((CARD32 *)((prop) + 8))) : \
                                    BO_SWAP4((prop) + 8))

Definition at line 151 of file xaux_common.h.

#define BO_AUXTYPE (   prop)    (*((CARD8 *)((prop) + 15)))

Definition at line 158 of file xaux_common.h.

#define BO_CARD16 (   p,
 
)
Value:
((1 == (*((CARD16 *)(p)))) ? \
                      *((CARD16 *)(n)) : ((CARD16)(BO_SWAP2(n))))

Definition at line 136 of file xaux_common.h.

#define BO_CARD32 (   p,
 
)
Value:
((1 == (*((CARD16 *)(p)))) ? \
                      *((CARD32 *)(n)) : ((CARD32)(BO_SWAP4(n))))

Definition at line 139 of file xaux_common.h.

#define BO_DRAW_CLIENTWIN (   prop)
Value:
((1 == (*((CARD16 *)(prop)))) ? \
                                    (*((CARD32 *)((prop) + 32))) : \
                                    BO_SWAP4((prop) + 32))

Definition at line 178 of file xaux_common.h.

#define BO_DRAW_FOCUSWIN (   prop)
Value:
((1 == (*((CARD16 *)(prop)))) ? \
                                    (*((CARD32 *)((prop) + 36))) : \
                                    BO_SWAP4((prop) + 36))

Definition at line 181 of file xaux_common.h.

#define BO_DRAW_INT_COUNT (   prop)
Value:
((1 == (*((CARD16 *)(prop)))) ? \
                                    (*((CARD32 *)((prop) + 44))) : \
                                    BO_SWAP4((prop) + 44))

Definition at line 190 of file xaux_common.h.

#define BO_DRAW_INT_LIST (   prop)    ((CARD32 *)((prop) + BO_SIZE_DRAW_HEADER))

Definition at line 200 of file xaux_common.h.

#define BO_DRAW_POSX (   prop)
Value:
((1 == (*((CARD16 *)(prop)))) ? \
                                    (*((CARD16 *)((prop) + 40))) : \
                                    BO_SWAP2((prop) + 40))

Definition at line 184 of file xaux_common.h.

#define BO_DRAW_POSY (   prop)
Value:
((1 == (*((CARD16 *)(prop)))) ? \
                                    (*((CARD16 *)((prop) + 42))) : \
                                    BO_SWAP2((prop) + 42))

Definition at line 187 of file xaux_common.h.

#define BO_DRAW_SOWIN (   prop)
Value:
((1 == (*((CARD16 *)(prop)))) ? \
                                    (*((CARD32 *)((prop) + 28))) : \
                                    BO_SWAP4((prop) + 28))

Definition at line 175 of file xaux_common.h.

#define BO_DRAW_STR_COUNT (   prop)
Value:
((1 == (*((CARD16 *)(prop)))) ? \
                                    (*((CARD32 *)((prop) + 48))) : \
                                    BO_SWAP4((prop) + 48))

Definition at line 193 of file xaux_common.h.

#define BO_DRAW_STR_LIST (   prop)
Value:
((unsigned char *)((prop) + BO_SIZE_DRAW_HEADER) \
              + BO_DRAW_INT_COUNT((prop)) * 4)

Definition at line 202 of file xaux_common.h.

#define BO_DRAW_TOTAL_STR_LEN (   prop)
Value:
((1 == (*((CARD16 *)(prop)))) ? \
                                    (*((CARD32 *)((prop) + 52))) : \
                                    BO_SWAP4((prop) + 52))

Definition at line 196 of file xaux_common.h.

#define BO_ICID (   prop)
Value:
((1 == (*((CARD16 *)(prop)))) ? \
                                    (*((CARD16 *)((prop) + 18))) : \
                                    BO_SWAP2((prop) + 18))

Definition at line 162 of file xaux_common.h.

#define BO_IMID (   prop)
Value:
((1 == (*((CARD16 *)(prop)))) ? \
                                    (*((CARD16 *)((prop) + 16))) : \
                                    BO_SWAP2((prop) + 16))

Definition at line 159 of file xaux_common.h.

#define BO_INDEX (   prop)
Value:
((1 == (*((CARD16 *)(prop)))) ? \
                                    (*((CARD16 *)((prop) + 12))) : \
                                    BO_SWAP2((prop) + 12))

Definition at line 154 of file xaux_common.h.

#define BO_MORESEGS (   prop)
Value:
((1 == (*((CARD16 *)(prop)))) ? \
                                    (*((CARD16 *)((prop) + 20))) : \
                                    BO_SWAP2((prop) + 20))

Definition at line 165 of file xaux_common.h.

#define BO_PRIVTYPE (   prop)    (*((CARD8 *)((prop) + 14)))

Definition at line 157 of file xaux_common.h.

#define BO_PROTOVERS_MAJOR (   prop)
Value:
((1 == (*((CARD16 *)(prop)))) ? \
                                    (*((CARD16 *)((prop) + 0))) : \
                                    BO_SWAP2((prop) + 0))

Definition at line 142 of file xaux_common.h.

#define BO_PROTOVERS_MINOR (   prop)
Value:
((1 == (*((CARD16 *)(prop)))) ? \
                                    (*((CARD16 *)((prop) + 2))) : \
                                    BO_SWAP2((prop) + 2))

Definition at line 145 of file xaux_common.h.

#define BO_SEGNO (   prop)
Value:
((1 == (*((CARD16 *)(prop)))) ? \
                                    (*((CARD16 *)((prop) + 22))) : \
                                    BO_SWAP2((prop) + 22))

Definition at line 168 of file xaux_common.h.

#define BO_SEGSIZE (   prop)
Value:
((1 == (*((CARD16 *)(prop)))) ? \
                                    (*((CARD32 *)((prop) + 24))) : \
                                    BO_SWAP4((prop) + 24))

Definition at line 171 of file xaux_common.h.

#define BO_SEQNO (   prop)
Value:
((1 == (*((CARD16 *)(prop)))) ? \
                                    (*((CARD32 *)((prop) + 4))) : \
                                    BO_SWAP4((prop) + 4))

Definition at line 148 of file xaux_common.h.

#define BO_SETV_INT_COUNT (   prop)
Value:
((1 == (*((CARD16 *)(prop)))) ? \
                                    (*((CARD32 *)((prop) + 28))) : \
                                    BO_SWAP4((prop) + 28))

Definition at line 206 of file xaux_common.h.

#define BO_SETV_INT_LIST (   prop)    ((CARD32 *)((prop) + BO_SIZE_SETV_HEADER))

Definition at line 213 of file xaux_common.h.

#define BO_SETV_STR_COUNT (   prop)
Value:
((1 == (*((CARD16 *)(prop)))) ? \
                                    (*((CARD32 *)((prop) + 32))) : \
                                    BO_SWAP4((prop) + 32))

Definition at line 209 of file xaux_common.h.

#define BO_SETV_STR_LIST (   prop)
Value:
((unsigned char *)((prop) + BO_SIZE_SETV_HEADER) \
              + BO_SETV_INT_COUNT((prop)) * 4)

Definition at line 215 of file xaux_common.h.

#define BO_SIZE_DRAW_HEADER   28

Definition at line 199 of file xaux_common.h.

#define BO_SIZE_SETV_HEADER   8

Definition at line 212 of file xaux_common.h.

#define BO_SWAP2 (   n)
Value:
((((*((CARD8 *)(n))) | 0x0000ff00) >> 8) | \
                      (((*((CARD8 *)(n))) | 0x000000ff) << 8))

Definition at line 129 of file xaux_common.h.

#define BO_SWAP4 (   n)
Value:
((((*((CARD8 *)(n))) | 0xff000000) >> 24) | \
                      (((*((CARD8 *)(n))) | 0x00ff0000) >> 8)  | \
                      (((*((CARD8 *)(n))) | 0x0000ff00) << 8)  | \
                      (((*((CARD8 *)(n))) | 0x000000ff) << 24))

Definition at line 131 of file xaux_common.h.

#define ME_EXT   "xaux_ext"

Definition at line 49 of file xaux_common.h.

#define ME_SO   "xaux_so"

Definition at line 48 of file xaux_common.h.

#define SX_ATOM_AUX_NAME (   prop)    (*((CARD32 *)((prop) + 8))) /* 4 */

Definition at line 74 of file xaux_common.h.

#define SX_AUXTYPE (   prop)    (*((CARD8 *)((prop) + 15))) /* 1 */

Definition at line 77 of file xaux_common.h.

#define SX_DATA_TOP (   prop)    ((prop) + SX_SIZE_HEADER)

Definition at line 84 of file xaux_common.h.

#define SX_DRAW_CLIENTWIN (   draw)    (*((CARD32 *)((draw) + 4))) /* 4 */

Definition at line 88 of file xaux_common.h.

#define SX_DRAW_FOCUSWIN (   draw)    (*((CARD32 *)((draw) + 8))) /* 4 */

Definition at line 89 of file xaux_common.h.

#define SX_DRAW_INT_COUNT (   draw)    (*((CARD32 *)((draw) + 16))) /* 4 */

Definition at line 92 of file xaux_common.h.

#define SX_DRAW_INT_LIST (   draw)    ((CARD32 *)((draw) + SX_SIZE_DRAW_HEADER))

Definition at line 96 of file xaux_common.h.

#define SX_DRAW_POSX (   draw)    (*((CARD16 *)((draw) + 12))) /* 2 */

Definition at line 90 of file xaux_common.h.

#define SX_DRAW_POSY (   draw)    (*((CARD16 *)((draw) + 14))) /* 2 */

Definition at line 91 of file xaux_common.h.

#define SX_DRAW_SOWIN (   draw)    (*((CARD32 *)((draw) + 0))) /* 4 */

Definition at line 87 of file xaux_common.h.

#define SX_DRAW_STR_COUNT (   draw)    (*((CARD32 *)((draw) + 20))) /* 4 */

Definition at line 93 of file xaux_common.h.

#define SX_DRAW_STR_LIST (   draw)
Value:
((unsigned char *)((draw) + SX_SIZE_DRAW_HEADER) \
              + SX_DRAW_INT_COUNT((draw)) * 4)

Definition at line 98 of file xaux_common.h.

#define SX_DRAW_TOTAL_STR_LEN (   draw)    (*((CARD32 *)((draw) + 24))) /* 4 */

Definition at line 94 of file xaux_common.h.

#define SX_ICID (   prop)    (*((CARD16 *)((prop) + 18))) /* 2 */

Definition at line 79 of file xaux_common.h.

#define SX_IMID (   prop)    (*((CARD16 *)((prop) + 16))) /* 2 */

Definition at line 78 of file xaux_common.h.

#define SX_INDEX (   prop)    (*((CARD16 *)((prop) + 12))) /* 2 */

Definition at line 75 of file xaux_common.h.

#define SX_MORESEGS (   prop)    (*((CARD16 *)((prop) + 20))) /* 2 */

Definition at line 80 of file xaux_common.h.

#define SX_PRIVTYPE (   prop)    (*((CARD8 *)((prop) + 14))) /* 1 */

Definition at line 76 of file xaux_common.h.

#define SX_PROTOVERS_MAJOR (   prop)    (*((CARD16 *)((prop) + 0))) /* 2 */

Definition at line 71 of file xaux_common.h.

#define SX_PROTOVERS_MINOR (   prop)    (*((CARD16 *)((prop) + 2))) /* 2 */

Definition at line 72 of file xaux_common.h.

#define SX_SEGNO (   prop)    (*((CARD16 *)((prop) + 22))) /* 2 */

Definition at line 81 of file xaux_common.h.

#define SX_SEGSIZE (   prop)    (*((CARD32 *)((prop) + 24))) /* 4 */

Definition at line 82 of file xaux_common.h.

#define SX_SEQNO (   prop)    (*((CARD32 *)((prop) + 4))) /* 4 */

Definition at line 73 of file xaux_common.h.

#define SX_SIZE_DRAW_HEADER   28

Definition at line 95 of file xaux_common.h.

#define SX_SIZE_HEADER   28

Definition at line 83 of file xaux_common.h.

#define XAUX_EXTWIN_SUFFIX   "_extwin"

Definition at line 52 of file xaux_common.h.

#define XAUX_MAXCLASSNAMELEN   255

Definition at line 56 of file xaux_common.h.

#define XAUX_MAXNPROPS_INIT   64

Definition at line 60 of file xaux_common.h.

#define XAUX_MAXPROPSZ   0x30000

Definition at line 58 of file xaux_common.h.

#define XAUX_MAXSUFFIXLEN   16

Definition at line 57 of file xaux_common.h.

#define XAUX_PROTOVERS_MAJOR   1

Definition at line 67 of file xaux_common.h.

#define XAUX_PROTOVERS_MINOR   0

Definition at line 68 of file xaux_common.h.

#define XAUX_SOWIN_SUFFIX   "_sowin"

Definition at line 51 of file xaux_common.h.

#define XAUX_SX_SUFFIX   "_sx"

Definition at line 54 of file xaux_common.h.

#define XAUX_XS_SUFFIX   "_xs"

Definition at line 53 of file xaux_common.h.

#define XS_ATOM_AUX_NAME (   prop)    (*((CARD32 *)((prop) + 8))) /* 4 */

Definition at line 106 of file xaux_common.h.

#define XS_AUXTYPE (   prop)    (*((CARD8 *)((prop) + 15))) /* 1 */

Definition at line 109 of file xaux_common.h.

#define XS_DATA_TOP (   prop)    ((prop) + XS_SIZE_HEADER)

Definition at line 116 of file xaux_common.h.

#define XS_ICID (   prop)    (*((CARD16 *)((prop) + 18))) /* 2 */

Definition at line 111 of file xaux_common.h.

#define XS_IMID (   prop)    (*((CARD16 *)((prop) + 16))) /* 2 */

Definition at line 110 of file xaux_common.h.

#define XS_INDEX (   prop)    (*((CARD16 *)((prop) + 12))) /* 2 */

Definition at line 107 of file xaux_common.h.

#define XS_MORESEGS (   prop)    (*((CARD16 *)((prop) + 20))) /* 2 */

Definition at line 112 of file xaux_common.h.

#define XS_PRIVTYPE (   prop)    (*((CARD8 *)((prop) + 14))) /* 1 */

Definition at line 108 of file xaux_common.h.

#define XS_PROTOVERS_MAJOR (   prop)    (*((CARD16 *)((prop) + 0))) /* 2 */

Definition at line 103 of file xaux_common.h.

#define XS_PROTOVERS_MINOR (   prop)    (*((CARD16 *)((prop) + 2))) /* 2 */

Definition at line 104 of file xaux_common.h.

#define XS_SEGNO (   prop)    (*((CARD16 *)((prop) + 22))) /* 2 */

Definition at line 113 of file xaux_common.h.

#define XS_SEGSIZE (   prop)    (*((CARD32 *)((prop) + 24))) /* 4 */

Definition at line 114 of file xaux_common.h.

#define XS_SEQNO (   prop)    (*((CARD32 *)((prop) + 4))) /* 4 */

Definition at line 105 of file xaux_common.h.

#define XS_SETV_INT_COUNT (   setvalue)    (*((CARD32 *)((setvalue) + 0))) /* 4 */

Definition at line 119 of file xaux_common.h.

#define XS_SETV_INT_LIST (   setvalue)    ((CARD32 *)((setvalue) + XS_SIZE_SETV_HEADER))

Definition at line 122 of file xaux_common.h.

#define XS_SETV_STR_COUNT (   setvalue)    (*((CARD32 *)((setvalue) + 4))) /* 4 */

Definition at line 120 of file xaux_common.h.

#define XS_SETV_STR_LIST (   setvalue)
Value:
((unsigned char *)((setvalue) + XS_SIZE_SETV_HEADER) \
              + XS_SETV_INT_COUNT((setvalue)) * 4)

Definition at line 124 of file xaux_common.h.

#define XS_SIZE_HEADER   28

Definition at line 115 of file xaux_common.h.

#define XS_SIZE_SETV_HEADER   8

Definition at line 121 of file xaux_common.h.


Enumeration Type Documentation

Enumerator:
XAUX_PRIVTYPE_PUBLIC 
XAUX_PRIVTYPE_REQSEG 

Definition at line 62 of file xaux_common.h.


Variable Documentation

const int padding[4] = {0, 3, 2, 1} [static]

Definition at line 221 of file xaux_common.h.