fbpm.h revision 919
930N/A/*
930N/A * Copyright © 1999-2000 Sun Microsystems, Inc. All rights reserved.
930N/A *
930N/A * Permission is hereby granted, free of charge, to any person obtaining a
930N/A * copy of this software and associated documentation files (the "Software"),
930N/A * to deal in the Software without restriction, including without limitation
930N/A * the rights to use, copy, modify, merge, publish, distribute, sublicense,
930N/A * and/or sell copies of the Software, and to permit persons to whom the
930N/A * Software is furnished to do so, subject to the following conditions:
930N/A *
930N/A * The above copyright notice and this permission notice (including the next
930N/A * paragraph) shall be included in all copies or substantial portions of the
930N/A * Software.
930N/A *
930N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
930N/A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
930N/A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
930N/A * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
930N/A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
930N/A * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
930N/A * DEALINGS IN THE SOFTWARE.
930N/A */
930N/A
930N/A
930N/A#define FBPMModeOn 0
#define FBPMModeStandby 1
#define FBPMModeSuspend 2
#define FBPMModeOff 3
#define DDXStatError 0
#define DDXStatFbOk 1
#define DDXStatMonOk 2
#define DDXStatOk (DDXStatFbOk | DDXStatMonOk)
#ifndef DPMS_SERVER
Bool FBPMQueryExtension(
#if NeedFunctionPrototypes
Display *,
int *,
int *
#endif
);
Status FBPMGetVersion(
#if NeedFunctionPrototypes
Display *,
int *,
int *
#endif
);
Bool FBPMCapable(
#if NeedFunctionPrototypes
Display *
#endif
);
Bool FBPMEnable(
#if NeedFunctionPrototypes
Display *,
int
#endif
);
Status FBPMDisable(
#if NeedFunctionPrototypes
Display *
#endif
);
Status FBPMForceLevel(
#if NeedFunctionPrototypes
Display *,
CARD16
#endif
);
Status FBPMInfo(
#if NeedFunctionPrototypes
Display *,
CARD16 *,
BOOL *
#endif
);
#endif