Deprecate XCBSync, move to XCBAuxSync.
This commit is contained in:
parent
936077cbc8
commit
829188cdd6
|
@ -477,11 +477,11 @@ XCBConnection *XCBConnectToDisplayWithAuthInfo(const char *display, XCBAuthInfo
|
||||||
* @param e: A pointer to an error.
|
* @param e: A pointer to an error.
|
||||||
* @return @c 1 on success, @c 0 otherwise.
|
* @return @c 1 on success, @c 0 otherwise.
|
||||||
*
|
*
|
||||||
* Blocks the calling thread for the duration of one round trip to the
|
* @deprecated This function is deprecated. It must not be used in
|
||||||
* server, ensuring that all events and errors caused by previous
|
* newly written code. XCBFlush is more efficient.
|
||||||
* requests are available to XCB.
|
* Use XCBAuxSync if absolutely necessary.
|
||||||
*/
|
*/
|
||||||
int XCBSync(XCBConnection *c, XCBGenericError **e);
|
int XCBSync(XCBConnection *c, XCBGenericError **e) deprecated;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -239,6 +239,7 @@ XCBConnection *XCBConnectToDisplayWithAuthInfo(const char *displayname, XCBAuthI
|
||||||
return XCBConnectToFD(fd, auth);
|
return XCBConnectToFD(fd, auth);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* backwards compatible interfaces: remove before 1.0 release */
|
||||||
int XCBSync(XCBConnection *c, XCBGenericError **e)
|
int XCBSync(XCBConnection *c, XCBGenericError **e)
|
||||||
{
|
{
|
||||||
XCBGetInputFocusRep *reply = XCBGetInputFocusReply(c, XCBGetInputFocus(c), e);
|
XCBGetInputFocusRep *reply = XCBGetInputFocusReply(c, XCBGetInputFocus(c), e);
|
||||||
|
@ -246,10 +247,6 @@ int XCBSync(XCBConnection *c, XCBGenericError **e)
|
||||||
return reply != 0;
|
return reply != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* backwards compatible interfaces: remove before 1.0 release */
|
|
||||||
XCBConnection *XCBConnectBasic()
|
XCBConnection *XCBConnectBasic()
|
||||||
{
|
{
|
||||||
XCBConnection *c = XCBConnect(0, 0);
|
XCBConnection *c = XCBConnect(0, 0);
|
||||||
|
|
Loading…
Reference in New Issue