xcb_atom.h | xcb_atom.h | |||
---|---|---|---|---|
skipping to change at line 18 | skipping to change at line 18 | |||
TAG_VALUE | TAG_VALUE | |||
}; | }; | |||
typedef struct { | typedef struct { | |||
enum xcb_atom_fast_tag_t tag; | enum xcb_atom_fast_tag_t tag; | |||
union { | union { | |||
xcb_intern_atom_cookie_t cookie; | xcb_intern_atom_cookie_t cookie; | |||
xcb_atom_t atom; | xcb_atom_t atom; | |||
} u; | } u; | |||
} xcb_atom_fast_cookie_t; | } xcb_atom_fast_cookie_t; | |||
/** | ||||
* @brief Get an atom synchronously. | ||||
* @param connection The connection to the X server. | ||||
* @param atom_name The name of the atom that should be returned. | ||||
* @return The requested atom, or XCB_NONE if there is an error. | ||||
* | ||||
* xcb_atom_get() is essentially a synchronous version of xcb_intern_atom() | ||||
, | ||||
* use it only on non-performance critical execution paths. | ||||
*/ | ||||
xcb_atom_t xcb_atom_get(xcb_connection_t *connection, const char *atom_name | ||||
); | ||||
xcb_atom_t xcb_atom_get_predefined(uint16_t name_len, const char *name); | xcb_atom_t xcb_atom_get_predefined(uint16_t name_len, const char *name); | |||
xcb_atom_fast_cookie_t xcb_atom_get_fast(xcb_connection_t *c, uint8_t only_ if_exists, uint16_t name_len, const char *name); | xcb_atom_fast_cookie_t xcb_atom_get_fast(xcb_connection_t *c, uint8_t only_ if_exists, uint16_t name_len, const char *name); | |||
xcb_atom_t xcb_atom_get_fast_reply(xcb_connection_t *c, xcb_atom_fast_cooki e_t cookie, xcb_generic_error_t **e); | xcb_atom_t xcb_atom_get_fast_reply(xcb_connection_t *c, xcb_atom_fast_cooki e_t cookie, xcb_generic_error_t **e); | |||
const char *xcb_atom_get_name_predefined(xcb_atom_t atom); | const char *xcb_atom_get_name_predefined(xcb_atom_t atom); | |||
int xcb_atom_get_name(xcb_connection_t *c, xcb_atom_t atom, const char **na mep, int *lengthp); | int xcb_atom_get_name(xcb_connection_t *c, xcb_atom_t atom, const char **na mep, int *lengthp); | |||
char *xcb_atom_name_by_screen(const char *base, uint8_t screen); | char *xcb_atom_name_by_screen(const char *base, uint8_t screen); | |||
char *xcb_atom_name_by_resource(const char *base, uint32_t resource); | char *xcb_atom_name_by_resource(const char *base, uint32_t resource); | |||
char *xcb_atom_name_unique(const char *base, uint32_t id); | char *xcb_atom_name_unique(const char *base, uint32_t id); | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 12 lines changed or added | |||
xcb_aux.h | xcb_aux.h | |||
---|---|---|---|---|
skipping to change at line 27 | skipping to change at line 27 | |||
xcb_visualtype_t *xcb_aux_get_visualtype (xcb_connection_t *c, | xcb_visualtype_t *xcb_aux_get_visualtype (xcb_connection_t *c, | |||
int screen, | int screen, | |||
xcb_visualid_t vid); | xcb_visualid_t vid); | |||
xcb_visualtype_t * | xcb_visualtype_t * | |||
xcb_aux_find_visual_by_id (xcb_screen_t *screen, | xcb_aux_find_visual_by_id (xcb_screen_t *screen, | |||
xcb_visualid_t id); | xcb_visualid_t id); | |||
xcb_visualtype_t * | xcb_visualtype_t * | |||
xcb_aux_find_visual_by_attrs (xcb_screen_t *screen, | xcb_aux_find_visual_by_attrs (xcb_screen_t *screen, | |||
int8_t class, | int8_t class_, | |||
int8_t depth); | int8_t depth); | |||
void xcb_aux_sync (xcb_connection_t *c); | void xcb_aux_sync (xcb_connection_t *c); | |||
/* less error prone to use structs instead of value lists */ | /* internal helper macro for XCB_AUX_ADD_PARAM | |||
It gives the offset of the field 'param' in the structure pointed to by | ||||
#define _XCB_AUX_OFFSETOF(paramsp, param) \ | 'paramsp' in multiples of an uint32_t's size. */ | |||
((void*)(&((paramsp)->param))-(void*)(paramsp)) | #define XCB_AUX_INTERNAL_OFFSETOF(paramsp, param) \ | |||
((uint32_t const*)(&((paramsp)->param))-(uint32_t const*)(paramsp)) | ||||
/* add an optional parameter to an xcb_params_* structure | ||||
parameters: | ||||
maskp: pointer to bitmask whos bits mark used parameters | ||||
paramsp: pointer to structure with parameters | ||||
param: parameter to set | ||||
value: value to set the parameter to | ||||
*/ | ||||
#define XCB_AUX_ADD_PARAM(maskp, paramsp, param, value) \ | #define XCB_AUX_ADD_PARAM(maskp, paramsp, param, value) \ | |||
((*(maskp)|=1<<(_XCB_AUX_OFFSETOF((paramsp),param)/sizeof(uint32_t))), \ | ((*(maskp)|=1<<XCB_AUX_INTERNAL_OFFSETOF((paramsp),param)), \ | |||
((paramsp)->param=(value))) | ((paramsp)->param=(value))) | |||
typedef struct { | typedef struct { | |||
uint32_t back_pixmap; | uint32_t back_pixmap; | |||
uint32_t back_pixel; | uint32_t back_pixel; | |||
uint32_t border_pixmap; | uint32_t border_pixmap; | |||
uint32_t border_pixel; | uint32_t border_pixel; | |||
uint32_t bit_gravity; | uint32_t bit_gravity; | |||
uint32_t win_gravity; | uint32_t win_gravity; | |||
uint32_t backing_store; | uint32_t backing_store; | |||
skipping to change at line 69 | skipping to change at line 77 | |||
xcb_void_cookie_t | xcb_void_cookie_t | |||
xcb_aux_create_window (xcb_connection_t *c, | xcb_aux_create_window (xcb_connection_t *c, | |||
uint8_t depth, | uint8_t depth, | |||
xcb_window_t wid, | xcb_window_t wid, | |||
xcb_window_t parent, | xcb_window_t parent, | |||
int16_t x, | int16_t x, | |||
int16_t y, | int16_t y, | |||
uint16_t width, | uint16_t width, | |||
uint16_t height, | uint16_t height, | |||
uint16_t border_width, | uint16_t border_width, | |||
uint16_t _class, | uint16_t class_, | |||
xcb_visualid_t visual, | xcb_visualid_t visual, | |||
uint32_t mask, | uint32_t mask, | |||
const xcb_params_cw_t *params); | const xcb_params_cw_t *params); | |||
xcb_void_cookie_t | xcb_void_cookie_t | |||
xcb_aux_create_window_checked (xcb_connection_t *c, | xcb_aux_create_window_checked (xcb_connection_t *c, | |||
uint8_t depth, | uint8_t depth, | |||
xcb_window_t wid, | xcb_window_t wid, | |||
xcb_window_t parent, | xcb_window_t parent, | |||
int16_t x, | int16_t x, | |||
int16_t y, | int16_t y, | |||
uint16_t width, | uint16_t width, | |||
uint16_t height, | uint16_t height, | |||
uint16_t border_width, | uint16_t border_width, | |||
uint16_t _class, | uint16_t class_, | |||
xcb_visualid_t visual, | xcb_visualid_t visual, | |||
uint32_t mask, | uint32_t mask, | |||
const xcb_params_cw_t *params); | const xcb_params_cw_t *params); | |||
xcb_void_cookie_t | xcb_void_cookie_t | |||
xcb_aux_change_window_attributes (xcb_connection_t *c, | xcb_aux_change_window_attributes (xcb_connection_t *c, | |||
xcb_window_t window, | xcb_window_t window, | |||
uint32_t mask, | uint32_t mask, | |||
const xcb_params_cw_t *params); | const xcb_params_cw_t *params); | |||
End of changes. 5 change blocks. | ||||
9 lines changed or deleted | 17 lines changed or added | |||
xcb_icccm.h | xcb_icccm.h | |||
---|---|---|---|---|
skipping to change at line 95 | skipping to change at line 95 | |||
xcb_atom_t proper ty); | xcb_atom_t proper ty); | |||
/** | /** | |||
* @brief Fill given structure with the property value of a window. | * @brief Fill given structure with the property value of a window. | |||
* @param c The connection to the X server. | * @param c The connection to the X server. | |||
* @param cookie TextProperty request cookie. | * @param cookie TextProperty request cookie. | |||
* @param prop TextProperty reply which is to be filled. | * @param prop TextProperty reply which is to be filled. | |||
* @param e Error if any. | * @param e Error if any. | |||
* @return Return 1 on success, 0 otherwise. | * @return Return 1 on success, 0 otherwise. | |||
* | * | |||
* If the function return 0 (failure), the content of prop is unmodified an | ||||
d | ||||
* therefore the structure must not be wiped. | ||||
* | ||||
* The parameter e supplied to this function must be NULL if | * The parameter e supplied to this function must be NULL if | |||
* xcb_get_text_property_unchecked() is used. Otherwise, it stores | * xcb_get_text_property_unchecked() is used. Otherwise, it stores | |||
* the error if any. prop structure members should be freed by | * the error if any. prop structure members should be freed by | |||
* xcb_get_text_property_reply_wipe(). | * xcb_get_text_property_reply_wipe(). | |||
*/ | */ | |||
uint8_t xcb_get_text_property_reply(xcb_connection_t *c, | uint8_t xcb_get_text_property_reply(xcb_connection_t *c, | |||
xcb_get_property_cookie_t cookie, | xcb_get_property_cookie_t cookie, | |||
xcb_get_text_property_reply_t *prop, | xcb_get_text_property_reply_t *prop, | |||
xcb_generic_error_t **e); | xcb_generic_error_t **e); | |||
skipping to change at line 118 | skipping to change at line 121 | |||
* @param prop prop structure whose members is going to be freed. | * @param prop prop structure whose members is going to be freed. | |||
*/ | */ | |||
void xcb_get_text_property_reply_wipe(xcb_get_text_property_reply_t *prop); | void xcb_get_text_property_reply_wipe(xcb_get_text_property_reply_t *prop); | |||
/* WM_NAME */ | /* WM_NAME */ | |||
/** | /** | |||
* @brief Deliver a SetProperty request to set WM_NAME property value. | * @brief Deliver a SetProperty request to set WM_NAME property value. | |||
* @param c The connection to the X server. | * @param c The connection to the X server. | |||
* @param window Window X identifier. | * @param window Window X identifier. | |||
* @param encoding Encoding used. | * @param encoding Encoding used for the data passed in the name parameter, the set property will also have this encoding as its type. | |||
* @param name_len Length of name value to set. | * @param name_len Length of name value to set. | |||
* @param name Name value to set. | * @param name Name value to set. | |||
*/ | */ | |||
void xcb_set_wm_name_checked(xcb_connection_t *c, | void xcb_set_wm_name_checked(xcb_connection_t *c, | |||
xcb_window_t window, | xcb_window_t window, | |||
xcb_atom_t encoding, | xcb_atom_t encoding, | |||
uint32_t name_len, | uint32_t name_len, | |||
const char *name); | const char *name); | |||
/** | /** | |||
skipping to change at line 180 | skipping to change at line 183 | |||
*/ | */ | |||
void xcb_watch_wm_name(xcb_property_handlers_t *prophs, uint32_t long_len, | void xcb_watch_wm_name(xcb_property_handlers_t *prophs, uint32_t long_len, | |||
xcb_generic_property_handler_t handler, void *data); | xcb_generic_property_handler_t handler, void *data); | |||
/* WM_ICON_NAME */ | /* WM_ICON_NAME */ | |||
/** | /** | |||
* @brief Deliver a SetProperty request to set WM_ICON_NAME property value. | * @brief Deliver a SetProperty request to set WM_ICON_NAME property value. | |||
* @param c The connection to the X server. | * @param c The connection to the X server. | |||
* @param window Window X identifier. | * @param window Window X identifier. | |||
* @param encoding Encoding used. | * @param encoding Encoding used for the data passed in the name parameter, the set property will also have this encoding as its type. | |||
* @param name_len Length of name value to set. | * @param name_len Length of name value to set. | |||
* @param name Name value to set. | * @param name Name value to set. | |||
*/ | */ | |||
void xcb_set_wm_icon_name_checked(xcb_connection_t *c, xcb_window_t window, | void xcb_set_wm_icon_name_checked(xcb_connection_t *c, xcb_window_t window, | |||
xcb_atom_t encoding, uint32_t name_len, | xcb_atom_t encoding, uint32_t name_len, | |||
const char *name); | const char *name); | |||
/** | /** | |||
* @see xcb_set_wm_icon_name_checked() | * @see xcb_set_wm_icon_name_checked() | |||
*/ | */ | |||
skipping to change at line 241 | skipping to change at line 244 | |||
void xcb_watch_wm_icon_name(xcb_property_handlers_t *prophs, uint32_t long_ len, | void xcb_watch_wm_icon_name(xcb_property_handlers_t *prophs, uint32_t long_ len, | |||
xcb_generic_property_handler_t handler, | xcb_generic_property_handler_t handler, | |||
void *data); | void *data); | |||
/* WM_CLIENT_MACHINE */ | /* WM_CLIENT_MACHINE */ | |||
/** | /** | |||
* @brief Deliver a SetProperty request to set WM_CLIENT_MACHINE property v alue. | * @brief Deliver a SetProperty request to set WM_CLIENT_MACHINE property v alue. | |||
* @param c The connection to the X server. | * @param c The connection to the X server. | |||
* @param window Window X identifier. | * @param window Window X identifier. | |||
* @param encoding Encoding used. | * @param encoding Encoding used for the data passed in the name parameter, the set property will also have this encoding as its type. | |||
* @param name_len Length of name value to set. | * @param name_len Length of name value to set. | |||
* @param name Name value to set. | * @param name Name value to set. | |||
*/ | */ | |||
void xcb_set_wm_client_machine_checked(xcb_connection_t *c, xcb_window_t wi ndow, | void xcb_set_wm_client_machine_checked(xcb_connection_t *c, xcb_window_t wi ndow, | |||
xcb_atom_t encoding, uint32_t name_l en, | xcb_atom_t encoding, uint32_t name_l en, | |||
const char *name); | const char *name); | |||
/** | /** | |||
* @see xcb_set_wm_client_machine_checked() | * @see xcb_set_wm_client_machine_checked() | |||
*/ | */ | |||
End of changes. 4 change blocks. | ||||
3 lines changed or deleted | 7 lines changed or added | |||