X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fwmnotify.h;h=6c5e88d4df0f0cb69755ca585060288573217374;hb=f02ff977dad81b8b21172804074e681c6b01b23f;hp=763987c8bacc224935add55547fd69891fc94ceb;hpb=e7ab42f84cca40feb87898e461b2e04df76484ed;p=dockapps%2Fwmnotify.git diff --git a/src/wmnotify.h b/src/wmnotify.h index 763987c..6c5e88d 100644 --- a/src/wmnotify.h +++ b/src/wmnotify.h @@ -36,15 +36,24 @@ #define MAILBOX_CLOSED_SRC_X 64 #define MAILBOX_CLOSED_SRC_Y 4 -/* Source coordinates in global pixmap for the opened and empty mailbox image. */ +/* + * Source coordinates in global pixmap for the opened and empty mailbox + * image. + */ #define MAILBOX_OPENED_EMPTY_SRC_X 64 #define MAILBOX_OPENED_EMPTY_SRC_Y 64 -/* Source coordinates in global pixmap for the opened and full mailbox image. */ +/* + * Source coordinates in global pixmap for the opened and full mailbox + * image. + */ #define MAILBOX_OPENED_FULL_SRC_X 4 #define MAILBOX_OPENED_FULL_SRC_Y 64 -/* Source coordinates in global pixmap for the opened and full mailbox image. */ +/* + * Source coordinates in global pixmap for the opened and full mailbox + * image. + */ #define EXEC_CMD_IMG_SRC_X 124 #define EXEC_CMD_IMG_SRC_Y 4 @@ -60,26 +69,26 @@ #define MAX_STR_LEN 256 -typedef struct wmnotify_t -{ - bool debug; - char *display_arg; - char *geometry_arg; - char *optional_config_file; - char mail_client_command[512]; - char *mail_client_argv[ARGV_LIMIT]; - unsigned int mail_check_interval; /* In seconds. */ - bool audible_notification; - char audiofile[512]; - int volume; - int protocol; - bool use_ssl; - char server_name[MAX_STR_LEN]; - int port; - char username[MAX_STR_LEN]; - char password[MAX_STR_LEN]; - int sock_fd; -} wmnotify_t; +struct wmnotify_t { + bool debug; + char *display_arg; + char *geometry_arg; + char *optional_config_file; + char mail_client_command[512]; + char *mail_client_argv[ARGV_LIMIT]; + unsigned int mail_check_interval; /* In seconds. */ + bool audible_notification; + char audiofile[512]; + int volume; + int protocol; + char imap_folder[MAX_STR_LEN]; + bool use_ssl; + char server_name[MAX_STR_LEN]; + int port; + char username[MAX_STR_LEN]; + char password[MAX_STR_LEN]; + int sock_fd; +}; /* Exported variables */ #undef _SCOPE_ @@ -89,6 +98,6 @@ typedef struct wmnotify_t # define _SCOPE_ extern #endif -_SCOPE_ wmnotify_t wmnotify_infos; +_SCOPE_ struct wmnotify_t wmnotify_infos; #endif /* WMNOTIFY_H */