| 1 |
/* $XConsortium: wsm_funcs.h /main/5 1995/07/15 20:39:08 drk $ */ |
| 2 |
/* |
| 3 |
* Motif |
| 4 |
* |
| 5 |
* Copyright (c) 1987-2012, The Open Group. All rights reserved. |
| 6 |
* |
| 7 |
* These libraries and programs are free software; you can |
| 8 |
* redistribute them and/or modify them under the terms of the GNU |
| 9 |
* Lesser General Public License as published by the Free Software |
| 10 |
* Foundation; either version 2 of the License, or (at your option) |
| 11 |
* any later version. |
| 12 |
* |
| 13 |
* These libraries and programs are distributed in the hope that |
| 14 |
* they will be useful, but WITHOUT ANY WARRANTY; without even the |
| 15 |
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 16 |
* PURPOSE. See the GNU Lesser General Public License for more |
| 17 |
* details. |
| 18 |
* |
| 19 |
* You should have received a copy of the GNU Lesser General Public |
| 20 |
* License along with these librararies and programs; if not, write |
| 21 |
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth |
| 22 |
* Floor, Boston, MA 02110-1301 USA |
| 23 |
* |
| 24 |
*/ |
| 25 |
/* |
| 26 |
* HISTORY |
| 27 |
*/ |
| 28 |
|
| 29 |
#ifndef _WSM_FUNCS_ |
| 30 |
#define _WSM_FUNCS_ |
| 31 |
|
| 32 |
/************************************************************ |
| 33 |
* |
| 34 |
* All function Prototypes for non static functions. |
| 35 |
* |
| 36 |
* Those that begin with _WSM are "private" for whatever that |
| 37 |
* is worth... |
| 38 |
* |
| 39 |
************************************************************/ |
| 40 |
|
| 41 |
/* |
| 42 |
* disp.c |
| 43 |
*/ |
| 44 |
|
| 45 |
WSMDispInfo * _WSMGetDispInfo( |
| 46 |
Display * |
| 47 |
); |
| 48 |
|
| 49 |
WSMScreenInfo * _WSMGetScreenInfo( |
| 50 |
Display *, int |
| 51 |
); |
| 52 |
|
| 53 |
|
| 54 |
void _WSMClearConfigScreenInfo( |
| 55 |
Display *, int |
| 56 |
); |
| 57 |
|
| 58 |
WSMConfigFormatData * _WSMGetConfigFormat( |
| 59 |
Display *, int, WSMConfigFormatType |
| 60 |
); |
| 61 |
|
| 62 |
Atom _WSMGetSelectionAtom( |
| 63 |
Display *, int, WSMClientType |
| 64 |
); |
| 65 |
|
| 66 |
/* |
| 67 |
* free.c |
| 68 |
*/ |
| 69 |
|
| 70 |
void FreeRequest( |
| 71 |
WSMRequest *request |
| 72 |
); |
| 73 |
|
| 74 |
void FreeReply( |
| 75 |
WSMReply *reply |
| 76 |
); |
| 77 |
|
| 78 |
/* |
| 79 |
* pack.c |
| 80 |
*/ |
| 81 |
|
| 82 |
MessageData _WSMPackRequest( |
| 83 |
Display *, int, WSMRequest *, unsigned long *, WSMErrorCode * |
| 84 |
); |
| 85 |
|
| 86 |
MessageData _WSMPackReply( |
| 87 |
Display *, int, WSMReply *, unsigned long * |
| 88 |
); |
| 89 |
|
| 90 |
void _WSMUnpackRequest( |
| 91 |
Display *, int, MessageData, unsigned long, WSMRequestType, WSMRequest * |
| 92 |
); |
| 93 |
|
| 94 |
void _WSMUnpackReply( |
| 95 |
Display *, int, MessageData, unsigned long, WSMRequestType, WSMReply * |
| 96 |
); |
| 97 |
|
| 98 |
MessageData PackString( |
| 99 |
MessageData, String |
| 100 |
); |
| 101 |
|
| 102 |
String UnpackString( |
| 103 |
MessageData * |
| 104 |
); |
| 105 |
|
| 106 |
MessageData PackCARD8( |
| 107 |
MessageData, CARD8 |
| 108 |
); |
| 109 |
|
| 110 |
CARD8 UnpackCARD8( |
| 111 |
MessageData * |
| 112 |
); |
| 113 |
|
| 114 |
MessageData PackCARD16( |
| 115 |
MessageData, CARD16 |
| 116 |
); |
| 117 |
|
| 118 |
CARD16 UnpackCARD16( |
| 119 |
MessageData * |
| 120 |
); |
| 121 |
|
| 122 |
MessageData PackCARD32( |
| 123 |
MessageData, CARD32 |
| 124 |
); |
| 125 |
|
| 126 |
CARD32 UnpackCARD32( |
| 127 |
MessageData * |
| 128 |
); |
| 129 |
|
| 130 |
/* |
| 131 |
* recv.c |
| 132 |
*/ |
| 133 |
|
| 134 |
Boolean WSMDefaultOwnSelection( |
| 135 |
Widget, WSMClientType, WSMRequestCallbackFunc, XtPointer |
| 136 |
); |
| 137 |
|
| 138 |
void WSMRegisterRequestCallback( |
| 139 |
Display *, int, WSMRequestCallbackFunc, XtPointer |
| 140 |
); |
| 141 |
|
| 142 |
Boolean WSMIsKnownTarget( |
| 143 |
Widget, Atom |
| 144 |
); |
| 145 |
|
| 146 |
Atom * GetTargetList( |
| 147 |
Widget, Boolean, unsigned long * |
| 148 |
); |
| 149 |
|
| 150 |
Boolean WSMProcessProtoTarget( |
| 151 |
Widget, Atom, XtPointer, unsigned long, |
| 152 |
int, Atom *, XtPointer *, unsigned long *, int * |
| 153 |
); |
| 154 |
|
| 155 |
/* |
| 156 |
* send.c |
| 157 |
*/ |
| 158 |
|
| 159 |
Boolean WSMSendMessage( |
| 160 |
Widget, WSMClientType, WSMRequest *, WSMReplyCallbackFunc, XtPointer |
| 161 |
); |
| 162 |
|
| 163 |
/* |
| 164 |
* utils.c |
| 165 |
*/ |
| 166 |
|
| 167 |
String _WSMReqTypeToName( |
| 168 |
WSMRequestType |
| 169 |
); |
| 170 |
|
| 171 |
WSMRequestType _WSMTargetToReqType( |
| 172 |
Display *, Atom |
| 173 |
); |
| 174 |
|
| 175 |
Atom _WSMReqTypeToTarget( |
| 176 |
Display *, WSMRequestType |
| 177 |
); |
| 178 |
|
| 179 |
Boolean _WSMRequiresConfigFormat( |
| 180 |
WSMRequestType |
| 181 |
); |
| 182 |
|
| 183 |
WSMConfigFormatType _WSMGetConfigFormatType( |
| 184 |
Window |
| 185 |
); |
| 186 |
|
| 187 |
WSMAttribute * _WSMGetMatchingAttr( |
| 188 |
XrmQuark, WSMConfigFormatData * |
| 189 |
); |
| 190 |
|
| 191 |
WSMWinData * _WSMGetMatchingWinData( |
| 192 |
WSMWinData *, int, XrmQuark |
| 193 |
); |
| 194 |
|
| 195 |
#endif /* DO NOT ADD ANYTHING AFTER THIS LINE */ |