move enums and structs to dunst.h
This commit is contained in:
parent
be626b68a5
commit
8d8834a8f3
12
dunst.c
12
dunst.c
@ -40,18 +40,6 @@
|
|||||||
#define INFO 2
|
#define INFO 2
|
||||||
#define DEBUG 3
|
#define DEBUG 3
|
||||||
|
|
||||||
enum follow_mode { FOLLOW_NONE, FOLLOW_MOUSE, FOLLOW_KEYBOARD };
|
|
||||||
|
|
||||||
/* structs */
|
|
||||||
typedef struct _screen_info {
|
|
||||||
int scr;
|
|
||||||
dimension_t dim;
|
|
||||||
} screen_info;
|
|
||||||
|
|
||||||
typedef struct _notification_buffer {
|
|
||||||
char txt[BUFSIZ];
|
|
||||||
notification *n;
|
|
||||||
} notification_buffer;
|
|
||||||
|
|
||||||
/* global variables */
|
/* global variables */
|
||||||
|
|
||||||
|
56
dunst.h
56
dunst.h
@ -15,23 +15,20 @@
|
|||||||
|
|
||||||
enum alignment { left, center, right };
|
enum alignment { left, center, right };
|
||||||
enum separator_color { FOREGROUND, AUTO };
|
enum separator_color { FOREGROUND, AUTO };
|
||||||
|
enum follow_mode { FOLLOW_NONE, FOLLOW_MOUSE, FOLLOW_KEYBOARD };
|
||||||
|
|
||||||
typedef struct _rule_t {
|
typedef struct _dimension_t {
|
||||||
char *name;
|
int x;
|
||||||
/* filters */
|
int y;
|
||||||
char *appname;
|
unsigned int h;
|
||||||
char *summary;
|
unsigned int w;
|
||||||
char *body;
|
int mask;
|
||||||
char *icon;
|
} dimension_t;
|
||||||
|
|
||||||
/* actions */
|
typedef struct _screen_info {
|
||||||
int timeout;
|
int scr;
|
||||||
int urgency;
|
dimension_t dim;
|
||||||
char *fg;
|
} screen_info;
|
||||||
char *bg;
|
|
||||||
const char *format;
|
|
||||||
|
|
||||||
} rule_t;
|
|
||||||
|
|
||||||
typedef struct _draw_txt {
|
typedef struct _draw_txt {
|
||||||
char *txt;
|
char *txt;
|
||||||
@ -59,13 +56,27 @@ typedef struct _notification {
|
|||||||
char *color_strings[2];
|
char *color_strings[2];
|
||||||
} notification;
|
} notification;
|
||||||
|
|
||||||
typedef struct _dimension_t {
|
typedef struct _notification_buffer {
|
||||||
int x;
|
char txt[BUFSIZ];
|
||||||
int y;
|
notification *n;
|
||||||
unsigned int h;
|
} notification_buffer;
|
||||||
unsigned int w;
|
|
||||||
int mask;
|
typedef struct _rule_t {
|
||||||
} dimension_t;
|
char *name;
|
||||||
|
/* filters */
|
||||||
|
char *appname;
|
||||||
|
char *summary;
|
||||||
|
char *body;
|
||||||
|
char *icon;
|
||||||
|
|
||||||
|
/* actions */
|
||||||
|
int timeout;
|
||||||
|
int urgency;
|
||||||
|
char *fg;
|
||||||
|
char *bg;
|
||||||
|
const char *format;
|
||||||
|
|
||||||
|
} rule_t;
|
||||||
|
|
||||||
typedef struct _keyboard_shortcut {
|
typedef struct _keyboard_shortcut {
|
||||||
const char *str;
|
const char *str;
|
||||||
@ -75,7 +86,6 @@ typedef struct _keyboard_shortcut {
|
|||||||
int is_valid;
|
int is_valid;
|
||||||
} keyboard_shortcut;
|
} keyboard_shortcut;
|
||||||
|
|
||||||
|
|
||||||
extern int verbosity;
|
extern int verbosity;
|
||||||
|
|
||||||
/* return id of notification */
|
/* return id of notification */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user