X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fusers.h;h=c5140941cdfb1de6a7cccd21dfc8c55cb7cfd858;hb=7466a24b81b58d134dfff1170fc1b0c5c503dd51;hp=02f23dcdc27147cc58d6dd8866dbd6756dbde0a5;hpb=69a36d8615e8f6b07fc24ff4937e5f4a1c60e012;p=collectd.git diff --git a/src/users.h b/src/users.h index 02f23dcd..c5140941 100644 --- a/src/users.h +++ b/src/users.h @@ -20,35 +20,10 @@ * Sebastian Harl **/ -#ifndef USERS_H -#define USERS_H 1 +#if !COLLECTD_USERS_H +#define COLLECTD_USERS_H 1 -#if HAVE_CONFIG_H -#include -#endif +void module_register(void); -#if !defined(HAVE_UTMPX_H) || !defined(HAVE_GETUTXENT) -#undef HAVE_UTMPX_H -#undef HAVE_GETUTXENT -#endif - -#if !defined(HAVE_UTMP_H) || !defined(HAVE_GETUTENT) -#undef HAVE_UTMPX_H -#undef HAVE_GETUTXENT -#endif - -#ifndef COLLECT_USERS -#if defined(HAVE_UTMPX_H) || defined(HAVE_UTMP_H) -#define COLLECT_USERS 1 -#else -#define COLLECT_USERS 0 -#endif -#endif /* ! defined(COLLECT_USERS) */ - -void users_init(void); -void users_read(void); -void users_submit(unsigned int); -void users_write(char *, char *, char *); - -#endif /* ! defined(USERS_H) */ +#endif /* !COLLECTD_USERS_H */