diff options
author | vkalintiris <vasilis@netdata.cloud> | 2022-10-09 16:38:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-09 16:38:49 +0300 |
commit | ccfbdb5c3d253a391cab0561dfc8a524b93d2e7c (patch) | |
tree | cf5e43618e40801db736604e5c8d4c4e6c0f9f65 /database/rrdcalc.h | |
parent | 284d5450ec938b667db9985aca6d3cd02b96487f (diff) |
Remove extern from function declared in headers. (#13790)
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.
Diffstat (limited to 'database/rrdcalc.h')
-rw-r--r-- | database/rrdcalc.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/database/rrdcalc.h b/database/rrdcalc.h index e9f53453b7..a25c05cc6e 100644 --- a/database/rrdcalc.h +++ b/database/rrdcalc.h @@ -218,24 +218,24 @@ struct alert_config { #define RRDCALC_HAS_DB_LOOKUP(rc) ((rc)->after) -extern void rrdcalc_update_info_using_rrdset_labels(RRDCALC *rc); +void rrdcalc_update_info_using_rrdset_labels(RRDCALC *rc); -extern void rrdcalc_link_matching_alerts_to_rrdset(RRDSET *st); +void rrdcalc_link_matching_alerts_to_rrdset(RRDSET *st); -extern const RRDCALC_ACQUIRED *rrdcalc_from_rrdset_get(RRDSET *st, const char *alert_name); -extern void rrdcalc_from_rrdset_release(RRDSET *st, const RRDCALC_ACQUIRED *rca); -extern RRDCALC *rrdcalc_acquired_to_rrdcalc(const RRDCALC_ACQUIRED *rca); +const RRDCALC_ACQUIRED *rrdcalc_from_rrdset_get(RRDSET *st, const char *alert_name); +void rrdcalc_from_rrdset_release(RRDSET *st, const RRDCALC_ACQUIRED *rca); +RRDCALC *rrdcalc_acquired_to_rrdcalc(const RRDCALC_ACQUIRED *rca); -extern const char *rrdcalc_status2string(RRDCALC_STATUS status); +const char *rrdcalc_status2string(RRDCALC_STATUS status); -extern void rrdcalc_free_unused_rrdcalc_loaded_from_config(RRDCALC *rc); +void rrdcalc_free_unused_rrdcalc_loaded_from_config(RRDCALC *rc); -extern uint32_t rrdcalc_get_unique_id(RRDHOST *host, STRING *chart, STRING *name, uint32_t *next_event_id); -extern void rrdcalc_add_from_rrdcalctemplate(RRDHOST *host, RRDCALCTEMPLATE *rt, RRDSET *st, const char *overwrite_alert_name, const char *overwrite_dimensions); -extern int rrdcalc_add_from_config(RRDHOST *host, RRDCALC *rc); +uint32_t rrdcalc_get_unique_id(RRDHOST *host, STRING *chart, STRING *name, uint32_t *next_event_id); +void rrdcalc_add_from_rrdcalctemplate(RRDHOST *host, RRDCALCTEMPLATE *rt, RRDSET *st, const char *overwrite_alert_name, const char *overwrite_dimensions); +int rrdcalc_add_from_config(RRDHOST *host, RRDCALC *rc); -extern void rrdcalc_delete_alerts_not_matching_host_labels_from_all_hosts(); -extern void rrdcalc_delete_alerts_not_matching_host_labels_from_this_host(RRDHOST *host); +void rrdcalc_delete_alerts_not_matching_host_labels_from_all_hosts(); +void rrdcalc_delete_alerts_not_matching_host_labels_from_this_host(RRDHOST *host); static inline int rrdcalc_isrepeating(RRDCALC *rc) { if (unlikely(rc->warn_repeat_every > 0 || rc->crit_repeat_every > 0)) { @@ -244,11 +244,11 @@ static inline int rrdcalc_isrepeating(RRDCALC *rc) { return 0; } -extern void rrdcalc_unlink_all_rrdset_alerts(RRDSET *st); -extern void rrdcalc_delete_all(RRDHOST *host); +void rrdcalc_unlink_all_rrdset_alerts(RRDSET *st); +void rrdcalc_delete_all(RRDHOST *host); -extern void rrdcalc_rrdhost_index_init(RRDHOST *host); -extern void rrdcalc_rrdhost_index_destroy(RRDHOST *host); +void rrdcalc_rrdhost_index_init(RRDHOST *host); +void rrdcalc_rrdhost_index_destroy(RRDHOST *host); #define RRDCALC_VAR_MAX 100 #define RRDCALC_VAR_FAMILY "$family" |