projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RPS: Forgot to add header
[oweals/gnunet.git]
/
src
/
include
/
gnunet_load_lib.h
diff --git
a/src/include/gnunet_load_lib.h
b/src/include/gnunet_load_lib.h
index d56522d4008497ff3040c6b92f897c2ad92a297e..f38b66b8897c936ae1a7003a73439676091bba87 100644
(file)
--- a/
src/include/gnunet_load_lib.h
+++ b/
src/include/gnunet_load_lib.h
@@
-1,27
+1,32
@@
/*
This file is part of GNUnet.
/*
This file is part of GNUnet.
- (C) 2010 Christian Grothoff (and other contributing authors)
+ Copyright (C) 2010 GNUnet e.V.
- GNUnet 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, or (at your
- option) any later version.
+ GNUnet is free software
: you can redistribute it and/or modify it
+
under the terms of the GNU Affero
General Public License as published
+ by the Free Software Foundation
, either version 3 of the License,
+ o
r (at your o
ption) any later version.
GNUnet 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
GNUnet 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.
+ Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
- You should have received a copy of the GNU General Public License
- along with GNUnet; see the file COPYING. If not, write to the
- Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
+ SPDX-License-Identifier: AGPL3.0-or-later
*/
/**
*/
/**
- * @file include/gnunet_load_lib.h
- * @brief functions related to load calculations
* @author Christian Grothoff
* @author Christian Grothoff
+ *
+ * @file
+ * Functions related to load calculations
+ *
+ * @defgroup load Load library
+ * Load calculations.
+ * @{
*/
#ifndef GNUNET_LOAD_LIB_H
*/
#ifndef GNUNET_LOAD_LIB_H
@@
-51,8
+56,8
@@
struct GNUNET_LOAD_Value;
* frequency, 0-load values will be added to the load
* @return the new load value
*/
* frequency, 0-load values will be added to the load
* @return the new load value
*/
-struct GNUNET_LOAD_Value *
GNUNET_LOAD_value_init (struct GNUNET_TIME_Relative
-
autodecline);
+struct GNUNET_LOAD_Value *
+
GNUNET_LOAD_value_init (struct GNUNET_TIME_Relative
autodecline);
/**
/**
@@
-61,8
+66,9
@@
struct GNUNET_LOAD_Value *GNUNET_LOAD_value_init (struct GNUNET_TIME_Relative
* @param load load to update
* @param autodecline frequency of load decline
*/
* @param load load to update
* @param autodecline frequency of load decline
*/
-void GNUNET_LOAD_value_set_decline (struct GNUNET_LOAD_Value *load,
- struct GNUNET_TIME_Relative autodecline);
+void
+GNUNET_LOAD_value_set_decline (struct GNUNET_LOAD_Value *load,
+ struct GNUNET_TIME_Relative autodecline);
/**
/**
@@
-82,7
+88,8
@@
void GNUNET_LOAD_value_set_decline (struct GNUNET_LOAD_Value *load,
* 100 if the latest updates were so large
* that we could not do proper calculations
*/
* 100 if the latest updates were so large
* that we could not do proper calculations
*/
-double GNUNET_LOAD_get_load (struct GNUNET_LOAD_Value *load);
+double
+GNUNET_LOAD_get_load (struct GNUNET_LOAD_Value *load);
/**
/**
@@
-91,7
+98,8
@@
double GNUNET_LOAD_get_load (struct GNUNET_LOAD_Value *load);
* @param load load handle
* @return zero if update was never called
*/
* @param load load handle
* @return zero if update was never called
*/
-double GNUNET_LOAD_get_average (struct GNUNET_LOAD_Value *load);
+double
+GNUNET_LOAD_get_average (struct GNUNET_LOAD_Value *load);
/**
/**
@@
-100,7
+108,8
@@
double GNUNET_LOAD_get_average (struct GNUNET_LOAD_Value *load);
* @param load to update
* @param data latest measurement value (for example, delay)
*/
* @param load to update
* @param data latest measurement value (for example, delay)
*/
-void GNUNET_LOAD_update (struct GNUNET_LOAD_Value *load, uint64_t data);
+void
+GNUNET_LOAD_update (struct GNUNET_LOAD_Value *load, uint64_t data);
#if 0 /* keep Emacsens' auto-indent happy */
#if 0 /* keep Emacsens' auto-indent happy */
@@
-112,4
+121,7
@@
void GNUNET_LOAD_update (struct GNUNET_LOAD_Value *load, uint64_t data);
/* ifndef GNUNET_LOAD_LIB_H */
#endif
/* ifndef GNUNET_LOAD_LIB_H */
#endif
+
+/** @} */ /* end of group */
+
/* end of gnunet_load_lib.h */
/* end of gnunet_load_lib.h */