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

Side by Side Diff: src/pkg/mdns/mdns_extension.h

Issue 1411063006: Update the mDNS native extension for Mac OS to handle PTR and SRV records (Closed) Base URL: git@github.com:dart-lang/fletch.git@master
Patch Set: Addressed review comments Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « pkg/mdns/test/decode_test.dart ('k') | src/pkg/mdns/mdns_extension.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 #ifndef MDNS_EXTENSION_H_ 5 #ifndef MDNS_EXTENSION_H_
6 #define MDNS_EXTENSION_H_ 6 #define MDNS_EXTENSION_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "include/dart_native_api.h" 9 #include "include/dart_native_api.h"
10 10
11 // Requests Ids. This should be aligned with the Dart code. 11 // Requests Ids. This should be aligned with the Dart code.
12 enum RequestType { 12 enum RequestType {
13 kEchoRequest = 0, 13 kEchoRequest = 0,
14 kLookupRequest = 1 14 kLookupRequest = 1
15 }; 15 };
16 16
17 void HandleEcho(Dart_Port reply_port, Dart_CObject* argument); 17 void HandleEcho(Dart_Port reply_port, Dart_CObject* argument);
18 void HandleLookup(Dart_Port port_id, char* address); 18 void HandleLookup(Dart_Port port_id, int type, char* fullname);
19 19
20 #endif 20 #endif
OLDNEW
« no previous file with comments | « pkg/mdns/test/decode_test.dart ('k') | src/pkg/mdns/mdns_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698