/usr/include/xview_private/svr_impl.h is in xviewg-dev 3.2p1.4-28.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 | /* @(#)svr_impl.h 20.62 93/06/28 SMI */
/*
* (c) Copyright 1989 Sun Microsystems, Inc. Sun design patents
* pending in the U.S. and foreign countries. See LEGAL_NOTICE
* file for terms of the license.
*/
#ifndef _server_impl_h_already_included
#define _server_impl_h_already_included
#include <sys/types.h>
#include <xview_private/xv_list.h>
#include <xview/server.h>
#include <xview/screen.h>
#include <xview/sel_svc.h>
#include <xview/sel_pkg.h>
#include <xview_private/seln_impl.h>
#include <X11/Xresource.h>
#ifdef OW_I18N
#include <xview_private/i18n_impl.h>
#include <xview_private/svr_atom.h>
#endif /* OW_I18N */
/* maximum # of screens per server (arbitrary) */
#define MAX_SCREENS 10
#define BITS_PER_BYTE 8
/* For atom mgr */
#define ATOM 0
#define NAME 1
#define TYPE 2
#define DATA 3
#define SERVER_LIST_SIZE 25
#define OLLC_BASICLOCALE 0
#define OLLC_DISPLAYLANG 1
#define OLLC_INPUTLANG 2
#define OLLC_NUMERIC 3
#define OLLC_TIMEFORMAT 4
#define OLLC_MAX 5
typedef struct server_proc_list {
Xv_sl_link next;
Xv_opaque id; /* unique id, typically xview handle */
void (*extXeventProc)(); /* application callback proc */
void (*pvtXeventProc)(); /* xview private callback proc */
} Server_proc_list;
typedef struct server_mask_list {
Xv_sl_link next;
Xv_opaque id; /* unique id, typically xview handle */
Xv_opaque extmask; /* mask of X events req. by app */
Xv_opaque pvtmask; /* mask of X events req. by xview pkgs*/
Server_proc_list *proc;
} Server_mask_list;
typedef struct server_xid_list {
Xv_sl_link next;
Xv_opaque xid; /* XID of the window */
Server_mask_list *masklist;
} Server_xid_list;
typedef enum ollc_from {
OLLC_FROM_ATTR = 1,
OLLC_FROM_CMDLINE = 2,
OLLC_FROM_RESOURCE = 3,
OLLC_FROM_POSIX = 4,
OLLC_FROM_C = 5 /* Hard coded defaults/upon error */
} Ollc_from;
typedef struct ollc_item {
char *locale;
Ollc_from from;
} Ollc_item;
typedef struct {
Xv_sl_link next;
Xv_Server public_self; /* Back pointer */
Xv_Screen screens[MAX_SCREENS];
Display *xdisplay;
unsigned int *xv_map;
unsigned char *sem_map;
unsigned char *ascii_map;
/* ACC_XVIEW */
unsigned char *acc_map;
unsigned acceleration:1;
/* ACC_XVIEW */
KeySym cut_keysym;
KeySym paste_keysym;
Xv_opaque xtime; /* Last time stamp */
int seln_function_pending;
unsigned journalling;
Atom journalling_atom;
short in_fullscreen;
Xv_opaque top_level_win;
XID atom_mgr[4];
short nbuttons; /* Number of physical mouse buttons */
unsigned int but_two_mod; /* But 1 + this modifier == but 2 */
unsigned int but_three_mod; /* But 1 + this modifier == but 3 */
/* Above only valid if nbuttons < 3 */
void (*extensionProc)();
char *display_name;
int alt_modmask; /* Represents the modifier slot the
* ALT key is in, between
* Mod1MapIndex -> Mod5MapIndex.
*/
int meta_modmask; /* Represents the modifier slot the
* META key is in, between
* Mod1MapIndex -> Mod5MapIndex.
*/
int num_lock_modmask;/* Represents the modifier slot the
* Num Lock key is in, between
* Mod1MapIndex -> Mod5MapIndex.
*/
int sel_modmask; /* Represents the modifier slot the
* selection function keys are in,
* between
* Mod1MapIndex -> Mod5MapIndex.
*/
int chording_timeout;
unsigned int chord_menu;
unsigned int dnd_ack_key; /* For Dnd acks under local drops */
unsigned int atom_list_head_key;/* For the list of allocated atoms*/
unsigned int atom_list_tail_key;/* For the list of allocated atoms*/
unsigned int atom_list_number;/* The size of the atom list */
XrmDatabase db;
Ollc_item ollc[OLLC_MAX];
char *localedir;
unsigned long focus_timestamp;/* storing the FocusIn/Out timestamps
* recieved during WM_TAKE_FOCUS/
* ButtonPress used in soft function
* keys
*/
XComposeStatus *composestatus;
int pass_thru_modifiers;/* Modifiers the user does not want
* us to use for mouseless in the
* ttysw. Pass them through to
* the pty.
*/
#ifdef OW_I18N
XIM xim; /* handle to IM server */
#ifdef FULL_R5
XIMStyles *supported_im_styles;/* IM styles supported by both
* im-server and toolkit
*/
char *preedit_style; /* preedit style requested */
char *status_style; /* status style requested */
/* Store as string so that we can
* support a preference list
*/
XIMStyle determined_im_style;/* Negotiated IM style based on
* what is supported and requested.
*/
#endif /* FULL_R5 */
#endif /* OW_I18N */
Server_proc_list *idproclist;
Server_xid_list *xidlist;
XContext svr_dpy_context; /* Context used in XSaveContext to
* store svr obj from dpy struct.
*/
#ifdef OW_I18N
_xv_string_attr_dup_t app_name_string;
#else
char *app_name_string;
#endif
} Server_info;
typedef struct {
Xv_sl_link next;
Atom list[SERVER_LIST_SIZE];
} Server_atom_list;
#define SERVER_PRIVATE(server) XV_PRIVATE(Server_info, Xv_server_struct, server)
#define SERVER_PUBLIC(server) XV_PUBLIC(server)
#define SELN_FN_NUM 3
Pkg_private Xv_opaque server_init_x();
/* server_get.c */
Pkg_private int server_init();
Pkg_private int server_destroy();
/* server_get.c */
Pkg_private Xv_opaque server_get_attr();
/* server_set.c */
Pkg_private Xv_opaque server_set_avlist();
Pkg_private Server_xid_list *server_xidnode_from_xid ();
Pkg_private Server_mask_list *server_masknode_from_xidid ();
Pkg_private Server_proc_list *server_procnode_from_id ();
#endif
|