X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Fglobals.h;h=bc11d6bfdf9e4013d962baa6a09651318cae20ff;hb=ac6580fd886d45a66506fe710a6fea0f48368dcb;hp=9ccac582260007361ca38d355a593c55d3064530;hpb=ce185d1c4dec25dbd58aa818f4b60a758514a574;p=collectd.git diff --git a/src/daemon/globals.h b/src/daemon/globals.h index 9ccac582..bc11d6bf 100644 --- a/src/daemon/globals.h +++ b/src/daemon/globals.h @@ -1,6 +1,6 @@ /** * collectd - src/globals.h - * Copyright (C) 2017 Florian octo Forster + * Copyright (C) 2017 Google LLC * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -26,12 +26,18 @@ #include +#ifndef DATA_MAX_NAME_LEN +#define DATA_MAX_NAME_LEN 128 +#endif + /* Type for time as used by "utils_time.h" */ typedef uint64_t cdtime_t; -extern char hostname_g[]; -extern const int hostname_g_size; -extern cdtime_t interval_g; -extern int pidfile_from_cli; -extern int timeout_g; +/* hostname_set updates hostname_g */ +void hostname_set(char const *hostname); + +extern char *hostname_g; +extern cdtime_t interval_g; +extern int pidfile_from_cli; +extern int timeout_g; #endif /* GLOBALS_H */