X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fpsensor.h;h=292525a76bccbe447d5158783a5139c450a9bca6;hb=f3b05dae619a7909bd7422b3a82422c9442aa114;hp=0390773e69e15cbafe0249f4667447815d248c18;hpb=dcf1b53921f5f9fdab59295be938c766bb572793;p=psensor.git diff --git a/src/lib/psensor.h b/src/lib/psensor.h index 0390773..292525a 100644 --- a/src/lib/psensor.h +++ b/src/lib/psensor.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2013 jeanfi@gmail.com + * Copyright (C) 2010-2014 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 @@ -84,7 +84,7 @@ struct psensor { struct color *color; /* Whether the graph sensor is displayed. */ - bool enabled; + bool graph_enabled; /* see psensor_type */ unsigned int type; @@ -136,6 +136,8 @@ void psensor_free(struct psensor *sensor); void psensor_list_free(struct psensor **sensors); int psensor_list_size(struct psensor **sensors); +struct psensor **psensor_list_filter_graph_enabled(struct psensor **); + struct psensor *psensor_list_get_by_id(struct psensor **sensors, const char *id);