Add a private connection shutdown method for error cases.

This commit is contained in:
Jamey Sharp 2006-09-15 01:57:53 -07:00
parent 7f71bf9c0f
commit 79e3227022
2 changed files with 6 additions and 0 deletions

View File

@ -247,6 +247,11 @@ void XCBDisconnect(XCBConnection *c)
/* Private interface */
void _xcb_conn_shutdown(XCBConnection *c)
{
c->has_error = 1;
}
int _xcb_conn_wait(XCBConnection *c, pthread_cond_t *cond, struct iovec **vector, int *count)
{
int ret;

View File

@ -158,6 +158,7 @@ struct XCBConnection {
_xcb_xid xid;
};
void _xcb_conn_shutdown(XCBConnection *c);
int _xcb_conn_wait(XCBConnection *c, pthread_cond_t *cond, struct iovec **vector, int *count);