X-Git-Url: http://wpitchoune.net/gitweb/?p=psensor-pkg-debian.git;a=blobdiff_plain;f=src%2Fserver%2Fserver.h;fp=src%2Fserver%2Fserver.h;h=8ce56c24931d711ec3a69afbdc32f798adea22de;hp=9125e7c578db763357b04c893e3a94ef2c45a75d;hb=dcd813f21c83592155f712ff1acf450b483d8072;hpb=f055e7507526592d3a74c652f5f053701614c9c0 diff --git a/src/server/server.h b/src/server/server.h index 9125e7c..8ce56c2 100644 --- a/src/server/server.h +++ b/src/server/server.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2012 jeanfi@gmail.com + * Copyright (C) 2010-2013 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,19 +19,26 @@ #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_0 "/api/1.0" -#define URL_BASE_API_1_0_SENSORS "/api/1.0/sensors" -#define URL_API_1_0_SERVER_STOP "/api/1.0/server/stop" -#define URL_API_1_0_SYSINFO "/api/1.0/sysinfo" -#define URL_API_1_0_CPU_USAGE "/api/1.0/cpu/usage" +#define URL_BASE_API_1_1 "/api/1.1" +#define URL_BASE_API_1_1_SENSORS "/api/1.1/sensors" +#define URL_API_1_1_SERVER_STOP "/api/1.1/server/stop" +#define URL_API_1_1_SYSINFO "/api/1.1/sysinfo" +#define URL_API_1_1_CPU_USAGE "/api/1.1/cpu/usage" struct server_data { struct psensor *cpu_usage; struct psensor **sensors; +#ifdef HAVE_GTOP struct psysinfo psysinfo; +#endif char *www_dir; };