mirror of
https://github.com/netdata/netdata.git
synced 2025-04-24 05:13:08 +00:00

By default functions are declared as extern in C/C++ headers. The goal of this PR is to reduce the wall of text that many headers have and, more importantly, to make the declaration of extern'd variables - of which we have many dispersed in various places - easily and quickly identifiable. Automatically generated with: $ git grep -l '^extern.*(' '**.h' | \ grep -v libjudy | \ grep -v 'sqlite3.h' | \ xargs sed -i -e 's/extern \(.*(.*$\)/\1/' This is a NFC.
30 lines
1.3 KiB
C
30 lines
1.3 KiB
C
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#ifndef NETDATA_RRDSETVAR_H
|
|
#define NETDATA_RRDSETVAR_H 1
|
|
|
|
#include "rrd.h"
|
|
|
|
// variables linked to charts
|
|
// We link variables to point to the values that are already
|
|
// calculated / processed by the normal data collection process
|
|
// This means, there will be no speed penalty for using
|
|
// these variables
|
|
|
|
void rrdsetvar_index_init(RRDSET *st);
|
|
void rrdsetvar_index_destroy(RRDSET *st);
|
|
void rrdsetvar_release_and_delete_all(RRDSET *st);
|
|
|
|
#define rrdsetvar_custom_chart_variable_release(st, rsa) rrdsetvar_release((st)->rrdsetvar_root_index, rsa)
|
|
void rrdsetvar_release(DICTIONARY *dict, const RRDSETVAR_ACQUIRED *rsa);
|
|
|
|
const RRDSETVAR_ACQUIRED *rrdsetvar_custom_chart_variable_add_and_acquire(RRDSET *st, const char *name);
|
|
void rrdsetvar_custom_chart_variable_set(RRDSET *st, const RRDSETVAR_ACQUIRED *rsa, NETDATA_DOUBLE value);
|
|
|
|
void rrdsetvar_rename_all(RRDSET *st);
|
|
const RRDSETVAR_ACQUIRED *rrdsetvar_add_and_acquire(RRDSET *st, const char *name, RRDVAR_TYPE type, void *value, RRDVAR_FLAGS flags);
|
|
void rrdsetvar_add_and_leave_released(RRDSET *st, const char *name, RRDVAR_TYPE type, void *value, RRDVAR_FLAGS flags);
|
|
|
|
void rrdsetvar_print_to_streaming_custom_chart_variables(RRDSET *st, BUFFER *wb);
|
|
|
|
#endif //NETDATA_RRDSETVAR_H
|