xutil: inline xutil_error_delete

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-09-16 18:11:04 +02:00
parent 6c8d2d1e8e
commit e54d2195d7
2 changed files with 8 additions and 9 deletions

View File

@ -332,14 +332,6 @@ xutil_error_get(const xcb_generic_error_t *e)
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 */
typedef struct
{

View File

@ -112,11 +112,18 @@ typedef struct
} xutil_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 *);
unsigned int xutil_button_fromint(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.
* \param c X connection.
* \param screen Screen number.