blob: 4bfdab842b256cb067db0a9fb40c7a90d4cd0d5b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef APP_H
#define APP_H
#include <lightdm.h>
#include "config.h"
#include "focus_ring.h"
#include "ui.h"
typedef struct App_ {
Config *config;
LightDMGreeter *greeter;
UI *ui;
FocusRing *session_ring;
// Signal Handler ID for the `handle_password` callback
gulong password_callback_id;
} App;
App *initialize_app(int argc, char **argv);
void destroy_app(App *app);
/* Config Member Accessors */
#define APP_LOGIN_USER(app) (app)->config->login_user
/* UI Member Accessors */
#define APP_BACKGROUND_WINDOWS(app) (app)->ui->background_windows
#define APP_MONITOR_COUNT(app) (app)->ui->monitor_count
#define APP_MAIN_WINDOW(app) (app)->ui->main_window
#define APP_PASSWORD_INPUT(app) (app)->ui->password_input
#define APP_FEEDBACK_LABEL(app) (app)->ui->feedback_label
#define APP_TIME_LABEL(app) (app)->ui->time_label
#endif
|