summaryrefslogtreecommitdiffabout
path: root/src/mysqlstat.h
Side-by-side diff
Diffstat (limited to 'src/mysqlstat.h') (more/less context) (ignore whitespace changes)
-rw-r--r--src/mysqlstat.h27
1 files changed, 4 insertions, 23 deletions
diff --git a/src/mysqlstat.h b/src/mysqlstat.h
index 1fc724e..f4bf137 100644
--- a/src/mysqlstat.h
+++ b/src/mysqlstat.h
@@ -29,26 +29,4 @@
-enum {
- MYSQLSTAT_CACHE_REPL,
- MYSQLSTAT_MAX_CACHE
-};
-
typedef struct mysqlstat_connection *mysqlstat_connection_t;
-struct repl_stat {
- char *replMasterLogFile;
- uint32_t replReadMasterLogPos;
- char *replRelayLogFile;
- uint32_t replRelayLogPos;
- char *replRelayMasterLogFile;
- int replSlaveIORunning;
- int replSlaveSQLRunning;
- int replLastSQLErrno;
- char *replLastSQLError;
- int replLastIOErrno;
- char *replLastIOError;
- uint32_t replExecMasterLogPos;
- uint64_t replRelayLogSpace;
- uint32_t replSecondsBehindMaster;
-};
-
mysqlstat_connection_t mysqlstat_connect(void);
@@ -56,2 +34,5 @@ void mysqlstat_disconnect(mysqlstat_connection_t);
-char const *mysqlstat_get(int id, char const *name);
+uint32_t process_total_count(void);
+uint32_t process_active_count(void);
+uint32_t process_slave_count(void);
+

Return to:

Send suggestions and report system problems to the System administrator.