summaryrefslogtreecommitdiff
path: root/distcc/src/stats.h
diff options
context:
space:
mode:
Diffstat (limited to 'distcc/src/stats.h')
-rw-r--r--distcc/src/stats.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/distcc/src/stats.h b/distcc/src/stats.h
new file mode 100644
index 0000000..34e4371
--- /dev/null
+++ b/distcc/src/stats.h
@@ -0,0 +1,46 @@
+/* -*- c-file-style: "java"; indent-tabs-mode: nil -*-
+ *
+ * distcc -- A simple distributed compiler system
+ *
+ * Copyright (C) 2005 by Google (Thomas Kho <tkho at google.com>)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ * USA
+ */
+
+#ifndef _DISTCC_STATS_H
+#define _DISTCC_STATS_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+enum stats_e { STATS_TCP_ACCEPT, STATS_REJ_BAD_REQ, STATS_REJ_OVERLOAD,
+ STATS_COMPILE_OK, STATS_COMPILE_ERROR, STATS_COMPILE_TIMEOUT,
+ STATS_CLI_DISCONN, STATS_OTHER, STATS_ENUM_MAX };
+
+const char *stats_text[20];
+
+int dcc_stats_init(void);
+void dcc_stats_init_kid(void);
+int dcc_stats_server(int listen_fd);
+void dcc_stats_event(enum stats_e e);
+void dcc_stats_compile_ok(char *compiler, char *filename, int time_usec);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _DISTCC_STATS_H */