/*
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
#define NEED_REPLIES
#include <stdio.h>
/*****************************************************************************
* *
* private utility routines *
* *
*****************************************************************************/
static int close_display();
NULL, /* create_gc */
NULL, /* copy_gc */
NULL, /* flush_gc */
NULL, /* free_gc */
NULL, /* create_font */
NULL, /* free_font */
close_display, /* close_display */
NULL, /* wire_to_event */
NULL, /* event_to_wire */
NULL, /* error */
NULL /* error_string */
};
NULL)
/*****************************************************************************
* *
* public routines *
* *
*****************************************************************************/
int *event_basep,
int *error_basep)
{
if (XextHasExtension(info)) {
return True;
} else {
return False;
}
}
int *major_versionp,
int *minor_versionp)
{
LockDisplay (dpy);
UnlockDisplay (dpy);
SyncHandle ();
return 0;
}
UnlockDisplay (dpy);
SyncHandle ();
return 1;
}
{
SyncHandle();
return False;
}
SyncHandle();
}
int state)
{
SyncHandle();
return True;
}
{
SyncHandle();
return 1;
}
{
if ((level != FBPMModeOn) &&
(level != FBPMModeStandby) &&
(level != FBPMModeSuspend) &&
(level != FBPMModeOff))
return BadValue;
SyncHandle();
return 1;
}
{
SyncHandle();
return 0;
}
SyncHandle();
return 1;
}