65fea56f17cd614bc8908264df980a62e1931468vboxsync/************************************************************
65fea56f17cd614bc8908264df980a62e1931468vboxsyncAuthor: Eamon Walsh <ewalsh@tycho.nsa.gov>
65fea56f17cd614bc8908264df980a62e1931468vboxsyncPermission to use, copy, modify, distribute, and sell this software and its
65fea56f17cd614bc8908264df980a62e1931468vboxsyncdocumentation for any purpose is hereby granted without fee, provided that
65fea56f17cd614bc8908264df980a62e1931468vboxsyncthis permission notice appear in supporting documentation. This permission
65fea56f17cd614bc8908264df980a62e1931468vboxsyncnotice shall be included in all copies or substantial portions of the
65fea56f17cd614bc8908264df980a62e1931468vboxsyncTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
65fea56f17cd614bc8908264df980a62e1931468vboxsyncIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
65fea56f17cd614bc8908264df980a62e1931468vboxsyncFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
65fea56f17cd614bc8908264df980a62e1931468vboxsyncAUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
65fea56f17cd614bc8908264df980a62e1931468vboxsyncAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
65fea56f17cd614bc8908264df980a62e1931468vboxsyncCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
65fea56f17cd614bc8908264df980a62e1931468vboxsync********************************************************/
65fea56f17cd614bc8908264df980a62e1931468vboxsync/* Default window background */
65fea56f17cd614bc8908264df980a62e1931468vboxsync#define XaceBackgroundNoneState(w) ((w)->forcedBG ? BackgroundPixel : None)
65fea56f17cd614bc8908264df980a62e1931468vboxsync/* security hooks */
65fea56f17cd614bc8908264df980a62e1931468vboxsync/* Constants used to identify the available security hooks
65fea56f17cd614bc8908264df980a62e1931468vboxsyncextern _X_EXPORT CallbackListPtr XaceHooks[XACE_NUM_HOOKS];
65fea56f17cd614bc8908264df980a62e1931468vboxsync/* Entry point for hook functions. Called by Xserver.
65fea56f17cd614bc8908264df980a62e1931468vboxsync * Required by libdbe and libextmod
65fea56f17cd614bc8908264df980a62e1931468vboxsync ... /*appropriate args for hook */
65fea56f17cd614bc8908264df980a62e1931468vboxsync/* Special-cased hook functions
65fea56f17cd614bc8908264df980a62e1931468vboxsyncextern _X_EXPORT int XaceHookDispatch(ClientPtr ptr, int major);
65fea56f17cd614bc8908264df980a62e1931468vboxsyncextern _X_EXPORT int XaceHookPropertyAccess(ClientPtr ptr, WindowPtr pWin,
65fea56f17cd614bc8908264df980a62e1931468vboxsyncextern _X_EXPORT int XaceHookSelectionAccess(ClientPtr ptr, Selection ** ppSel,
65fea56f17cd614bc8908264df980a62e1931468vboxsyncextern _X_EXPORT void XaceHookAuditEnd(ClientPtr ptr, int result);
65fea56f17cd614bc8908264df980a62e1931468vboxsync/* Register a callback for a given hook.
65fea56f17cd614bc8908264df980a62e1931468vboxsync/* Unregister an existing callback for a given hook.
65fea56f17cd614bc8908264df980a62e1931468vboxsync/* XTrans wrappers for use by security modules
65fea56f17cd614bc8908264df980a62e1931468vboxsyncextern _X_EXPORT int XaceGetConnectionNumber(ClientPtr ptr);
65fea56f17cd614bc8908264df980a62e1931468vboxsync/* From the original Security extension...
65fea56f17cd614bc8908264df980a62e1931468vboxsyncextern _X_EXPORT void XaceCensorImage(ClientPtr client,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int x, int y, int w, int h,
65fea56f17cd614bc8908264df980a62e1931468vboxsync#else /* XACE */
65fea56f17cd614bc8908264df980a62e1931468vboxsync/* Default window background */
65fea56f17cd614bc8908264df980a62e1931468vboxsync/* Define calls away when XACE is not being built. */
65fea56f17cd614bc8908264df980a62e1931468vboxsync#endif /* XACE */
65fea56f17cd614bc8908264df980a62e1931468vboxsync#endif /* _XACE_H */