summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-04-11 19:47:12 +0200
committerDaniel Mack <daniel@zonque.org>2015-04-24 17:48:12 +0200
commit905f0a39ae65010d5229c76b0c54d8a8a8eb56d5 (patch)
tree637e20d85f2a6f8275461052af589e01cdf308d5 /src/login
parentc0f32805086ff65d2905b0e3a9166d9ed6c2bc41 (diff)
logind: make local functions static
make manager_gc(), manager_startup(), manager_new(), manager_free() and manager_run() static, and kill their forward declarations.
Diffstat (limited to 'src/login')
-rw-r--r--src/login/logind.c12
-rw-r--r--src/login/logind.h7
2 files changed, 7 insertions, 12 deletions
diff --git a/src/login/logind.c b/src/login/logind.c
index ea7c6e74b0..d8163ecf91 100644
--- a/src/login/logind.c
+++ b/src/login/logind.c
@@ -34,7 +34,9 @@
#include "udev-util.h"
#include "formats-util.h"
-Manager *manager_new(void) {
+static void manager_free(Manager *m);
+
+static Manager *manager_new(void) {
Manager *m;
int r;
@@ -100,7 +102,7 @@ fail:
return NULL;
}
-void manager_free(Manager *m) {
+static void manager_free(Manager *m) {
Session *session;
User *u;
Device *d;
@@ -890,7 +892,7 @@ static int manager_connect_udev(Manager *m) {
return 0;
}
-void manager_gc(Manager *m, bool drop_not_started) {
+static void manager_gc(Manager *m, bool drop_not_started) {
Seat *seat;
Session *session;
User *user;
@@ -1001,7 +1003,7 @@ static int manager_dispatch_idle_action(sd_event_source *s, uint64_t t, void *us
return 0;
}
-int manager_startup(Manager *m) {
+static int manager_startup(Manager *m) {
int r;
Seat *seat;
Session *session;
@@ -1088,7 +1090,7 @@ int manager_startup(Manager *m) {
return 0;
}
-int manager_run(Manager *m) {
+static int manager_run(Manager *m) {
int r;
assert(m);
diff --git a/src/login/logind.h b/src/login/logind.h
index caf78f734a..2cb19caeea 100644
--- a/src/login/logind.h
+++ b/src/login/logind.h
@@ -123,9 +123,6 @@ struct Manager {
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_button(Manager *m, const char *name, Button **_button);
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_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);
-void manager_gc(Manager *m, bool drop_not_started);
-
bool manager_shall_kill(Manager *m, const char *user);
int manager_get_idle_hint(Manager *m, dual_timestamp *t);