summaryrefslogtreecommitdiff
path: root/src/login/logind-user.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-05-22 13:10:17 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commitd2b999bacad0cd2f1dd3bb40532f788b27a11bef (patch)
tree317eb817968ca6afa4ca44fca86c8e521c44ee36 /src/login/logind-user.h
parent6945d41cc2ac78391d636f5278fd6039c884d21b (diff)
tree-wide: port over all code to the new CONFIG_PARSER_PROTOTYPE() macro
This makes most header files easier to look at. Also Emacs gets really slow when browsing through large sections of overly long prototypes, which is much improved by this macro. We should probably not do something similar with too many other cases, as macros like this might help readability for some, but make it worse for others. But I think given the complexity of this specific prototype and how often we use it, it's worth doing.
Diffstat (limited to 'src/login/logind-user.h')
-rw-r--r--src/login/logind-user.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/login/logind-user.h b/src/login/logind-user.h
index c80b02271..ad830206c 100644
--- a/src/login/logind-user.h
+++ b/src/login/logind-user.h
@@ -9,6 +9,7 @@
typedef struct User User;
+//#include "conf-parser.h"
#include "list.h"
#include "logind.h"
@@ -82,4 +83,4 @@ UserState user_state_from_string(const char *s) _pure_;
int bus_user_method_terminate(sd_bus_message *message, void *userdata, sd_bus_error *error);
int bus_user_method_kill(sd_bus_message *message, void *userdata, sd_bus_error *error);
-int config_parse_compat_user_tasks_max(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
+CONFIG_PARSER_PROTOTYPE(config_parse_compat_user_tasks_max);