X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcb.h;h=096cff502c14dbd35906b4793afc9aa7ea3d3f59;hb=162c7593adf1577ca8aecfcd53fd5644b6182609;hp=d4d02b47faca5a380f77dcee1745d4b176e37749;hpb=6f369fde3c676e2b1a67bd71923b61942991d726;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcb.h b/src/xcb.h index d4d02b4..096cff5 100644 --- a/src/xcb.h +++ b/src/xcb.h @@ -290,7 +290,7 @@ typedef struct XCBExtension XCBExtension; /**< Opaque structure used as key for * @brief Caches reply information from QueryExtension requests. * @param c: The connection. * @param ext: The extension data. - * @return A pointer to a XCBConnSetupSuccessRep pointer. + * @return A pointer to the XCBQueryExtensionRep for the extension. * * This function is the primary interface to the "extension cache", * which caches reply information from QueryExtension @@ -323,7 +323,7 @@ void XCBPrefetchExtensionData(XCBConnection *c, XCBExtension *ext); /** * @brief Access the data returned by the server. * @param c: The connection. - * @return A pointer to a XCBConnSetupSuccessRep pointer. + * @return A pointer to an XCBSetup structure. * * Accessor for the data returned by the server when the XCBConnection * was initialized. This data includes @@ -338,7 +338,7 @@ void XCBPrefetchExtensionData(XCBConnection *c, XCBExtension *ext); * * The result must not be freed. */ -const XCBConnSetupSuccessRep *XCBGetSetup(XCBConnection *c); +const XCBSetup *XCBGetSetup(XCBConnection *c); /** * @brief Access the file descriptor of the connection. @@ -483,6 +483,47 @@ int XCBSync(XCBConnection *c, XCBGenericError **e); */ +/* Old names for connection-setup types, to be removed before 1.0. */ + +typedef XCBSetupReq XCBConnSetupReq deprecated; +typedef XCBSetupReqIter XCBConnSetupReqIter deprecated; +typedef XCBSetupFailed XCBConnSetupFailedRep deprecated; +typedef XCBSetupFailedIter XCBConnSetupFailedRepIter deprecated; +typedef XCBSetupAuthenticate XCBConnSetupAuthenticateRep deprecated; +typedef XCBSetupAuthenticateIter XCBConnSetupAuthenticateRepIter deprecated; +typedef XCBSetup XCBConnSetupSuccessRep deprecated; +typedef XCBSetupIter XCBConnSetupSuccessRepIter deprecated; + +char *XCBConnSetupReqAuthorizationProtocolName(XCBSetupReq *R) deprecated; +int XCBConnSetupReqAuthorizationProtocolNameLength(XCBSetupReq *R) deprecated; +XCBGenericIter XCBConnSetupReqAuthorizationProtocolNameEnd(XCBSetupReq *R) deprecated; +char *XCBConnSetupReqAuthorizationProtocolData(XCBSetupReq *R) deprecated; +int XCBConnSetupReqAuthorizationProtocolDataLength(XCBSetupReq *R) deprecated; +XCBGenericIter XCBConnSetupReqAuthorizationProtocolDataEnd(XCBSetupReq *R) deprecated; +void XCBConnSetupReqNext(XCBSetupReqIter *i) deprecated; +XCBGenericIter XCBConnSetupReqEnd(XCBSetupReqIter i) deprecated; +char *XCBConnSetupFailedRepReason(XCBSetupFailed *R) deprecated; +int XCBConnSetupFailedRepReasonLength(XCBSetupFailed *R) deprecated; +XCBGenericIter XCBConnSetupFailedRepReasonEnd(XCBSetupFailed *R) deprecated; +void XCBConnSetupFailedRepNext(XCBSetupFailedIter *i) deprecated; +XCBGenericIter XCBConnSetupFailedRepEnd(XCBSetupFailedIter i) deprecated; +char *XCBConnSetupAuthenticateRepReason(XCBSetupAuthenticate *R) deprecated; +int XCBConnSetupAuthenticateRepReasonLength(XCBSetupAuthenticate *R) deprecated; +XCBGenericIter XCBConnSetupAuthenticateRepReasonEnd(XCBSetupAuthenticate *R) deprecated; +void XCBConnSetupAuthenticateRepNext(XCBSetupAuthenticateIter *i) deprecated; +XCBGenericIter XCBConnSetupAuthenticateRepEnd(XCBSetupAuthenticateIter i) deprecated; +char *XCBConnSetupSuccessRepVendor(XCBSetup *R) deprecated; +int XCBConnSetupSuccessRepVendorLength(XCBSetup *R) deprecated; +XCBGenericIter XCBConnSetupSuccessRepVendorEnd(XCBSetup *R) deprecated; +XCBFORMAT *XCBConnSetupSuccessRepPixmapFormats(XCBSetup *R) deprecated; +int XCBConnSetupSuccessRepPixmapFormatsLength(XCBSetup *R) deprecated; +XCBFORMATIter XCBConnSetupSuccessRepPixmapFormatsIter(XCBSetup *R) deprecated; +int XCBConnSetupSuccessRepRootsLength(XCBSetup *R) deprecated; +XCBSCREENIter XCBConnSetupSuccessRepRootsIter(XCBSetup *R) deprecated; +void XCBConnSetupSuccessRepNext(XCBSetupIter *i) deprecated; +XCBGenericIter XCBConnSetupSuccessRepEnd(XCBSetupIter i) deprecated; + + #ifdef __cplusplus } #endif