xutil: inline xutil_error_delete
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
6c8d2d1e8e
commit
e54d2195d7
|
@ -332,14 +332,6 @@ xutil_error_get(const xcb_generic_error_t *e)
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
xutil_error_delete(xutil_error_t *err)
|
|
||||||
{
|
|
||||||
p_delete(&err->error_label);
|
|
||||||
p_delete(&err->request_label);
|
|
||||||
p_delete(&err);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Link a name to a key symbol */
|
/** Link a name to a key symbol */
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
|
|
@ -112,11 +112,18 @@ typedef struct
|
||||||
} xutil_error_t;
|
} xutil_error_t;
|
||||||
|
|
||||||
xutil_error_t *xutil_error_get(const xcb_generic_error_t *);
|
xutil_error_t *xutil_error_get(const xcb_generic_error_t *);
|
||||||
void xutil_error_delete(xutil_error_t *);
|
|
||||||
xcb_keysym_t xutil_key_mask_fromstr(const char *);
|
xcb_keysym_t xutil_key_mask_fromstr(const char *);
|
||||||
unsigned int xutil_button_fromint(int);
|
unsigned int xutil_button_fromint(int);
|
||||||
xcb_cursor_t xutil_cursor_new(xcb_connection_t *, unsigned int);
|
xcb_cursor_t xutil_cursor_new(xcb_connection_t *, unsigned int);
|
||||||
|
|
||||||
|
static inline void
|
||||||
|
xutil_error_delete(xutil_error_t *err)
|
||||||
|
{
|
||||||
|
p_delete(&err->error_label);
|
||||||
|
p_delete(&err->request_label);
|
||||||
|
p_delete(&err);
|
||||||
|
}
|
||||||
|
|
||||||
/* Get the informations about the screen.
|
/* Get the informations about the screen.
|
||||||
* \param c X connection.
|
* \param c X connection.
|
||||||
* \param screen Screen number.
|
* \param screen Screen number.
|
||||||
|
|
Loading…
Reference in New Issue