| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include "list.h" |
| 5 |
#include "portabled-forward.h" |
| 6 |
#include "runtime-scope.h" |
| 7 |
|
| 8 |
typedef struct Manager { |
| 9 |
sd_event *event; |
| 10 |
sd_bus *bus; |
| 11 |
|
| 12 |
Hashmap *polkit_registry; |
| 13 |
|
| 14 |
Hashmap *image_cache; |
| 15 |
sd_event_source *image_cache_defer_event; |
| 16 |
|
| 17 |
LIST_HEAD(Operation, operations); |
| 18 |
unsigned n_operations; |
| 19 |
|
| 20 |
RuntimeScope runtime_scope; |
| 21 |
char *state_dir; |
| 22 |
} Manager; |
| 23 |
|
| 24 |
extern const BusObjectImplementation manager_object; |