projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Attempt to fix collectd/collectd#229 by doing user / group lookups before we fork.
[collectd.git]
/
src
/
utils_cache.h
diff --git
a/src/utils_cache.h
b/src/utils_cache.h
index
b7dc2bf
..
87f93c0
100644
(file)
--- a/
src/utils_cache.h
+++ b/
src/utils_cache.h
@@
-35,10
+35,13
@@
int uc_update (const data_set_t *ds, const value_list_t *vl);
int uc_get_rate_by_name (const char *name, gauge_t **ret_values, size_t *ret_values_num);
gauge_t *uc_get_rate (const data_set_t *ds, const value_list_t *vl);
int uc_get_rate_by_name (const char *name, gauge_t **ret_values, size_t *ret_values_num);
gauge_t *uc_get_rate (const data_set_t *ds, const value_list_t *vl);
-int uc_get_names (char ***ret_names, time_t **ret_times, size_t *ret_number);
+int uc_get_names (char ***ret_names,
cd
time_t **ret_times, size_t *ret_number);
int uc_get_state (const data_set_t *ds, const value_list_t *vl);
int uc_set_state (const data_set_t *ds, const value_list_t *vl, int state);
int uc_get_state (const data_set_t *ds, const value_list_t *vl);
int uc_set_state (const data_set_t *ds, const value_list_t *vl, int state);
+int uc_get_hits (const data_set_t *ds, const value_list_t *vl);
+int uc_set_hits (const data_set_t *ds, const value_list_t *vl, int hits);
+int uc_inc_hits (const data_set_t *ds, const value_list_t *vl, int step);
int uc_get_history (const data_set_t *ds, const value_list_t *vl,
gauge_t *ret_history, size_t num_steps, size_t num_ds);
int uc_get_history (const data_set_t *ds, const value_list_t *vl,
gauge_t *ret_history, size_t num_steps, size_t num_ds);
@@
-48,38
+51,38
@@
int uc_get_history_by_name (const char *name,
/*
* Meta data interface
*/
/*
* Meta data interface
*/
-int uc_meta_data_exists (value_list_t *vl, const char *key);
-int uc_meta_data_delete (value_list_t *vl, const char *key);
+int uc_meta_data_exists (
const
value_list_t *vl, const char *key);
+int uc_meta_data_delete (
const
value_list_t *vl, const char *key);
-int uc_meta_data_add_string (value_list_t *vl,
+int uc_meta_data_add_string (
const
value_list_t *vl,
const char *key,
const char *value);
const char *key,
const char *value);
-int uc_meta_data_add_signed_int (value_list_t *vl,
+int uc_meta_data_add_signed_int (
const
value_list_t *vl,
const char *key,
int64_t value);
const char *key,
int64_t value);
-int uc_meta_data_add_unsigned_int (value_list_t *vl,
+int uc_meta_data_add_unsigned_int (
const
value_list_t *vl,
const char *key,
uint64_t value);
const char *key,
uint64_t value);
-int uc_meta_data_add_double (value_list_t *vl,
+int uc_meta_data_add_double (
const
value_list_t *vl,
const char *key,
double value);
const char *key,
double value);
-int uc_meta_data_add_boolean (value_list_t *vl,
+int uc_meta_data_add_boolean (
const
value_list_t *vl,
const char *key,
_Bool value);
const char *key,
_Bool value);
-int uc_meta_data_get_string (value_list_t *vl,
+int uc_meta_data_get_string (
const
value_list_t *vl,
const char *key,
char **value);
const char *key,
char **value);
-int uc_meta_data_get_signed_int (value_list_t *vl,
+int uc_meta_data_get_signed_int (
const
value_list_t *vl,
const char *key,
int64_t *value);
const char *key,
int64_t *value);
-int uc_meta_data_get_unsigned_int (value_list_t *vl,
+int uc_meta_data_get_unsigned_int (
const
value_list_t *vl,
const char *key,
uint64_t *value);
const char *key,
uint64_t *value);
-int uc_meta_data_get_double (value_list_t *vl,
+int uc_meta_data_get_double (
const
value_list_t *vl,
const char *key,
double *value);
const char *key,
double *value);
-int uc_meta_data_get_boolean (value_list_t *vl,
+int uc_meta_data_get_boolean (
const
value_list_t *vl,
const char *key,
_Bool *value);
const char *key,
_Bool *value);