X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Fserver%2Fserver.h;h=7226979c2df96375ad1aa44a892488b39df68094;hp=bc4f574ee09dadd872b3efc3716674f3404b7f8d;hb=c1e20f2631a1249720e9c75d753eacfcb0f6c7b9;hpb=a01cfb4d194d0ff7219d5d6da360066334331c33 diff --git a/src/server/server.h b/src/server/server.h index bc4f574..7226979 100644 --- a/src/server/server.h +++ b/src/server/server.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2013 jeanfi@gmail.com + * Copyright (C) 2010-2016 jeanfi@gmail.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -19,8 +19,13 @@ #ifndef _PSENSOR_SERVER_H_ #define _PSENSOR_SERVER_H_ +#include "config.h" + #include "psensor.h" + +#ifdef HAVE_GTOP #include "sysinfo.h" +#endif #define URL_BASE_API_1_1 "/api/1.1" #define URL_BASE_API_1_1_SENSORS "/api/1.1/sensors" @@ -31,7 +36,9 @@ struct server_data { struct psensor *cpu_usage; struct psensor **sensors; +#ifdef HAVE_GTOP struct psysinfo psysinfo; +#endif char *www_dir; };