X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fpsensor_json.h;h=14c979499af6e5d66fb5cb49ca3b84b468219029;hb=4270c903e8007017b80c6c817dd41cf699f00df1;hp=94d14712ca230f5250508c30aa2aeb710312b970;hpb=cc35e177d57bc4ee2cc57ae25f130dfc168aa61d;p=psensor.git diff --git a/src/lib/psensor_json.h b/src/lib/psensor_json.h index 94d1471..14c9794 100644 --- a/src/lib/psensor_json.h +++ b/src/lib/psensor_json.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,7 +19,13 @@ #ifndef _PSENSOR_PSENSOR_JSON_H_ #define _PSENSOR_PSENSOR_JSON_H_ +#include "config.h" + +#ifdef HAVE_JSON_0 #include +#else +#include +#endif #include "psensor.h" @@ -30,7 +36,7 @@ char *sensors_to_json_string(struct psensor **sensors); * Creates a new allocated psensor corresponding to a given json * representation. */ -struct psensor *psensor_new_from_json(json_object * o, +struct psensor *psensor_new_from_json(json_object *o, const char *sensors_url, int values_max_length); #endif