summaryrefslogtreecommitdiffstats
path: root/pcp/Platform.h
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2021-03-25 17:24:14 +1100
committerNathan Scott <nathans@redhat.com>2021-06-09 17:09:29 +1000
commit5dfb5242370610dfad09c855925224c587edbfbf (patch)
treec39bdb0e1e8e5e443b96e3e6be7685ad90ff9746 /pcp/Platform.h
parentb424a5b137797ef1b921b7ed1e6ee6521b7b65b0 (diff)
Implement command line and environment handling for pcp htop.
Diffstat (limited to 'pcp/Platform.h')
-rw-r--r--pcp/Platform.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/pcp/Platform.h b/pcp/Platform.h
index 1661be77..33ea0db7 100644
--- a/pcp/Platform.h
+++ b/pcp/Platform.h
@@ -87,6 +87,23 @@ void Platform_getHostname(char* buffer, size_t size);
void Platform_getRelease(char** string);
+enum {
+ PLATFORM_LONGOPT_HOST = 128,
+ PLATFORM_LONGOPT_TIMEZONE,
+ PLATFORM_LONGOPT_HOSTZONE,
+};
+
+#define PLATFORM_LONG_OPTIONS \
+ {PMLONGOPT_HOST, optional_argument, 0, PLATFORM_LONGOPT_HOST}, \
+ {PMLONGOPT_TIMEZONE, optional_argument, 0, PLATFORM_LONGOPT_TIMEZONE}, \
+ {PMLONGOPT_HOSTZONE, optional_argument, 0, PLATFORM_LONGOPT_HOSTZONE}, \
+
+void Platform_longOptionsUsage(const char* name);
+
+bool Platform_getLongOption(int opt, int argc, char** argv);
+
+extern pmOptions opts;
+
typedef enum Metric_ {
PCP_CONTROL_THREADS, /* proc.control.perclient.threads */

© 2014-2024 Faster IT GmbH | imprint | privacy policy