mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
logind: make local functions static
make manager_gc(), manager_startup(), manager_new(), manager_free() and manager_run() static, and kill their forward declarations.
This commit is contained in:
parent
c0f3280508
commit
905f0a39ae
@ -34,7 +34,9 @@
|
|||||||
#include "udev-util.h"
|
#include "udev-util.h"
|
||||||
#include "formats-util.h"
|
#include "formats-util.h"
|
||||||
|
|
||||||
Manager *manager_new(void) {
|
static void manager_free(Manager *m);
|
||||||
|
|
||||||
|
static Manager *manager_new(void) {
|
||||||
Manager *m;
|
Manager *m;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
@ -100,7 +102,7 @@ fail:
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void manager_free(Manager *m) {
|
static void manager_free(Manager *m) {
|
||||||
Session *session;
|
Session *session;
|
||||||
User *u;
|
User *u;
|
||||||
Device *d;
|
Device *d;
|
||||||
@ -890,7 +892,7 @@ static int manager_connect_udev(Manager *m) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void manager_gc(Manager *m, bool drop_not_started) {
|
static void manager_gc(Manager *m, bool drop_not_started) {
|
||||||
Seat *seat;
|
Seat *seat;
|
||||||
Session *session;
|
Session *session;
|
||||||
User *user;
|
User *user;
|
||||||
@ -1001,7 +1003,7 @@ static int manager_dispatch_idle_action(sd_event_source *s, uint64_t t, void *us
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int manager_startup(Manager *m) {
|
static int manager_startup(Manager *m) {
|
||||||
int r;
|
int r;
|
||||||
Seat *seat;
|
Seat *seat;
|
||||||
Session *session;
|
Session *session;
|
||||||
@ -1088,7 +1090,7 @@ int manager_startup(Manager *m) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int manager_run(Manager *m) {
|
static int manager_run(Manager *m) {
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
assert(m);
|
assert(m);
|
||||||
|
@ -123,9 +123,6 @@ struct Manager {
|
|||||||
size_t runtime_dir_size;
|
size_t runtime_dir_size;
|
||||||
};
|
};
|
||||||
|
|
||||||
Manager *manager_new(void);
|
|
||||||
void manager_free(Manager *m);
|
|
||||||
|
|
||||||
int manager_add_device(Manager *m, const char *sysfs, bool master, Device **_device);
|
int manager_add_device(Manager *m, const char *sysfs, bool master, Device **_device);
|
||||||
int manager_add_button(Manager *m, const char *name, Button **_button);
|
int manager_add_button(Manager *m, const char *name, Button **_button);
|
||||||
int manager_add_seat(Manager *m, const char *id, Seat **_seat);
|
int manager_add_seat(Manager *m, const char *id, Seat **_seat);
|
||||||
@ -138,12 +135,8 @@ int manager_add_inhibitor(Manager *m, const char* id, Inhibitor **_inhibitor);
|
|||||||
int manager_process_seat_device(Manager *m, struct udev_device *d);
|
int manager_process_seat_device(Manager *m, struct udev_device *d);
|
||||||
int manager_process_button_device(Manager *m, struct udev_device *d);
|
int manager_process_button_device(Manager *m, struct udev_device *d);
|
||||||
|
|
||||||
int manager_startup(Manager *m);
|
|
||||||
int manager_run(Manager *m);
|
|
||||||
int manager_spawn_autovt(Manager *m, unsigned int vtnr);
|
int manager_spawn_autovt(Manager *m, unsigned int vtnr);
|
||||||
|
|
||||||
void manager_gc(Manager *m, bool drop_not_started);
|
|
||||||
|
|
||||||
bool manager_shall_kill(Manager *m, const char *user);
|
bool manager_shall_kill(Manager *m, const char *user);
|
||||||
|
|
||||||
int manager_get_idle_hint(Manager *m, dual_timestamp *t);
|
int manager_get_idle_hint(Manager *m, dual_timestamp *t);
|
||||||
|
Loading…
Reference in New Issue
Block a user