X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fnvidia.h;h=3d80657a7884a1143cef3f7fb9e9a5301ac4c9cf;hb=8631d4513caba53ac4bbcd19cf807ca10bab2c71;hp=1aafe6917e4d3e47cc09aff3d7008f90830e78b4;hpb=06a780020823612636aff82034336588cc0f7a7a;p=psensor.git diff --git a/src/lib/nvidia.h b/src/lib/nvidia.h index 1aafe69..3d80657 100644 --- a/src/lib/nvidia.h +++ b/src/lib/nvidia.h @@ -1,40 +1,30 @@ /* - Copyright (C) 2010-2011 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 published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301 USA -*/ - + * 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 + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + * 02110-1301 USA + */ #ifndef _PSENSOR_NVIDIA_H_ #define _PSENSOR_NVIDIA_H_ -#include "psensor.h" +#include -/* - Updates temperatures of NVidia sensors. -*/ void nvidia_psensor_list_update(struct psensor **sensors); -/* - Adds NVIDIA sensors to a given list of sensors. - - Returns the new allocated list of sensors if sensors have been added - otherwise returns 'sensors'. The list is 'NULL' terminated. - */ -struct psensor **nvidia_psensor_list_add(struct psensor **sensors, - int values_max_length); +void nvidia_psensor_list_append(struct psensor ***sensors, int values_length); +void nvidia_cleanup(void); #endif