Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(963)

Unified Diff: src/pkg/mdns/mdns_extension.h

Issue 1407123010: Extend the mDNS package with a native extension used on Mac OS (Closed) Base URL: git@github.com:dart-lang/fletch.git@master
Patch Set: Addressed review comments Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/mdns/mdns.gyp ('k') | src/pkg/mdns/mdns_extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/mdns/mdns_extension.h
diff --git a/src/pkg/mdns/mdns_extension.h b/src/pkg/mdns/mdns_extension.h
new file mode 100644
index 0000000000000000000000000000000000000000..04cf199e803b7f384edbc95ede0646ba7e10b2f3
--- /dev/null
+++ b/src/pkg/mdns/mdns_extension.h
@@ -0,0 +1,20 @@
+// Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE.md file.
+
+#ifndef MDNS_EXTENSION_H_
+#define MDNS_EXTENSION_H_
+
+#include "include/dart_api.h"
+#include "include/dart_native_api.h"
+
+// Requests Ids. This should be aligned with the Dart code.
+enum RequestType {
+ kEchoRequest = 0,
+ kLookupRequest = 1
+};
+
+void HandleEcho(Dart_Port reply_port, Dart_CObject* argument);
+void HandleLookup(Dart_Port port_id, char* address);
+
+#endif
« no previous file with comments | « src/pkg/mdns/mdns.gyp ('k') | src/pkg/mdns/mdns_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698