mirror of
https://github.com/labwc/labwc.git
synced 2026-03-24 09:06:09 -04:00
include/: tidy up header files
This commit is contained in:
parent
2d6921039d
commit
649437e336
7 changed files with 17 additions and 5 deletions
|
|
@ -17,14 +17,14 @@ struct buf {
|
||||||
int len;
|
int len;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* buf_init - allocate NULL-terminated C string buffer
|
* buf_init - allocate NULL-terminated C string buffer
|
||||||
* @s - buffer
|
* @s - buffer
|
||||||
* Note: use free(s->buf) to free it.
|
* Note: use free(s->buf) to free it.
|
||||||
*/
|
*/
|
||||||
void buf_init(struct buf *s);
|
void buf_init(struct buf *s);
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* buf_add - add data to C string buffer
|
* buf_add - add data to C string buffer
|
||||||
* @s - buffer
|
* @s - buffer
|
||||||
* @data - data to be added
|
* @data - data to be added
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef __LABWC_BUG_ON_H
|
#ifndef __LABWC_BUG_ON_H
|
||||||
#define __LABWC_BUG_ON_H
|
#define __LABWC_BUG_ON_H
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* BUG_ON - assert() without abort()
|
* BUG_ON - assert() without abort()
|
||||||
* @condition - expression to be evaluated
|
* @condition - expression to be evaluated
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef __LABWC_FONT_H
|
#ifndef __LABWC_FONT_H
|
||||||
#define __LABWC_FONT_H
|
#define __LABWC_FONT_H
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* font_height - get font vertical extents
|
* font_height - get font vertical extents
|
||||||
* @font_description: string describing font, for example 'sans 10'
|
* @font_description: string describing font, for example 'sans 10'
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,10 @@ struct keybind {
|
||||||
struct wl_list link;
|
struct wl_list link;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* keybind_add - parse keybind and add to linked list
|
||||||
|
* @keybind: key combination
|
||||||
|
*/
|
||||||
struct keybind *keybind_add(const char *keybind);
|
struct keybind *keybind_add(const char *keybind);
|
||||||
|
|
||||||
#endif /* __LABWC_KEYBIND_H */
|
#endif /* __LABWC_KEYBIND_H */
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,6 @@ void view_init_position(struct view *view);
|
||||||
struct wlr_box view_get_surface_geometry(struct view *view);
|
struct wlr_box view_get_surface_geometry(struct view *view);
|
||||||
struct wlr_box view_geometry(struct view *view);
|
struct wlr_box view_geometry(struct view *view);
|
||||||
void view_resize(struct view *view, struct wlr_box geo);
|
void view_resize(struct view *view, struct wlr_box geo);
|
||||||
bool view_want_deco(struct view *view);
|
|
||||||
void view_focus(struct view *view);
|
void view_focus(struct view *view);
|
||||||
struct view *view_front_toplevel(struct server *server);
|
struct view *view_front_toplevel(struct server *server);
|
||||||
struct view *next_toplevel(struct view *current);
|
struct view *next_toplevel(struct view *current);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
#ifndef __LABWC_THEME_DIR_H
|
#ifndef __LABWC_THEME_DIR_H
|
||||||
#define __LABWC_THEME_DIR_H
|
#define __LABWC_THEME_DIR_H
|
||||||
|
|
||||||
|
/**
|
||||||
|
* theme_dir - find theme directory containing theme @theme_name
|
||||||
|
* @theme_name: theme to search for
|
||||||
|
*/
|
||||||
char *theme_dir(const char *theme_name);
|
char *theme_dir(const char *theme_name);
|
||||||
|
|
||||||
#endif /* __LABWC_THEME_DIR_H */
|
#endif /* __LABWC_THEME_DIR_H */
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,11 @@ struct theme {
|
||||||
|
|
||||||
extern struct theme theme;
|
extern struct theme theme;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* theme_read - read theme into global theme struct
|
||||||
|
* @theme_name: theme-name in <theme-dir>/<theme-name>/openbox-3/themerc
|
||||||
|
* Note <theme-dir> is obtained in theme-dir.c
|
||||||
|
*/
|
||||||
void theme_read(const char *theme_name);
|
void theme_read(const char *theme_name);
|
||||||
|
|
||||||
#endif /* __LABWC_THEME_H */
|
#endif /* __LABWC_THEME_H */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue