Add a barebones clearcut proto
CB-118
Change-Id: I002c3af7c4b9bff6c454d51b922e4d8691a8413f
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 54a38cb..3e44033 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -679,5 +679,6 @@
-Wno-unused-private-field)
# Third-party directories that we include using the simpler add_subdirectory method
+add_subdirectory(third_party/clearcut)
add_subdirectory(third_party/lossmin/lossmin)
add_subdirectory(third_party/tensorflow_statusor)
diff --git a/third_party/clearcut/BUILD.gn b/third_party/clearcut/BUILD.gn
new file mode 100644
index 0000000..10506bd
--- /dev/null
+++ b/third_party/clearcut/BUILD.gn
@@ -0,0 +1,14 @@
+# Copyright 2018 The Fuchsia Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//third_party/protobuf/proto_library.gni")
+
+proto_library("clearcut_proto") {
+ sources = [
+ "clearcut.proto",
+ ]
+ import_dirs = [ "//third_party/protobuf/src" ]
+ generate_python = false
+ cc_generator_options = "lite"
+}
diff --git a/third_party/clearcut/CMakeLists.txt b/third_party/clearcut/CMakeLists.txt
new file mode 100644
index 0000000..cc4b9b7
--- /dev/null
+++ b/third_party/clearcut/CMakeLists.txt
@@ -0,0 +1,8 @@
+# Copyright 2018 The Fuchsia Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+cobalt_make_protobuf_cpp_lib(clearcut_lib
+ CLEARCUT_PROTO_HDRS
+ false
+ clearcut)
diff --git a/third_party/clearcut/clearcut.proto b/third_party/clearcut/clearcut.proto
new file mode 100644
index 0000000..aee268a
--- /dev/null
+++ b/third_party/clearcut/clearcut.proto
@@ -0,0 +1,23 @@
+// Copyright 2018 The Fuchsia Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+syntax = "proto2";
+
+message ClientInfo {
+ optional int32 client_type = 1;
+}
+
+message LogEvent {
+ optional int32 event_code = 11;
+}
+
+message LogRequest {
+ optional ClientInfo client_info = 1;
+ optional int32 log_source = 2 [default = -1];
+ repeated LogEvent log_event = 3;
+}
+
+message LogResponse {
+ optional int64 next_request_wait_millis = 1 [default = -1];
+}