Commit Graph
81 Commits
Author SHA1 Message Date
Nick Bourdakos 3caae8d58d Remove compatible_with from Bazel targets
PiperOrigin-RevId: 698102508
2024-11-19 12:19:39 -08:00
hai007 9bf3ba52b6 Add context pointer to all callbacks so that callbacks can be correlated to the function calls.
PiperOrigin-RevId: 690759015
2024-10-28 14:52:17 -07:00
hai007 52c35cdb9a Fix payload bytes being dropped in callback
PiperOrigin-RevId: 689506997
2024-10-24 14:00:55 -07:00
Guogang Li 707e85d3fc Internal refactor
PiperOrigin-RevId: 682563440
2024-10-04 22:11:41 -07:00
hai007 7717a721e3 Add NcSetCustomSavePath to NC C API so that the default file saving path can be configured.
PiperOrigin-RevId: 676880838
2024-09-20 10:01:29 -07:00
Guogang Li d5b5d92f87 Internal logging update
PiperOrigin-RevId: 669420403
2024-08-30 13:08:35 -07:00
hai007 7b259382e7 Automated Code Change
PiperOrigin-RevId: 668854483
2024-08-29 02:58:59 -07:00
Guogang Li 050e009bc3 Added low power property for discovery
PiperOrigin-RevId: 665477515
2024-08-20 12:28:10 -07:00
hai007 4dccfb192a Automated Code Change
PiperOrigin-RevId: 650801511
2024-07-09 17:03:40 -07:00
Guogang Li 6c167124aa Fixed a crash in HelloConnections
PiperOrigin-RevId: 644543789
2024-06-18 16:19:24 -07:00
hai007 5098934e8c Update C wrapper to use pointers, instead of references, which is not supported by C.
PiperOrigin-RevId: 643505769
2024-06-14 18:37:56 -07:00
Nick Bourdakos a08a42077c PR #2404: Add license header to all source files
Imported from GitHub PR https://github.com/google/nearby/pull/2404

Copybara import of the project:

--
a6fbb3c396321c0b9012b787323f5f2ff652fd8f by Nick Bourdakos <bourdakos1@gmail.com>:

Add license header to all source files

Merging this change closes #2404

PiperOrigin-RevId: 623540004
2024-04-10 10:40:38 -07:00
Guogang Li 387a51b260 internal update
PiperOrigin-RevId: 619595164
2024-03-27 11:25:55 -07:00
Guogang Li 7b8436c289 Update C wrapper to support multiple instances
PiperOrigin-RevId: 605002988
2024-02-07 09:10:55 -08:00
Guogang Li 929a41b7f5 Fixed HC broken on MacOS
PiperOrigin-RevId: 603105834
2024-01-31 11:17:25 -08:00
Guogang Li 809c36139f Added the dart wrapper for new C wrapper
PiperOrigin-RevId: 601272383
2024-01-24 16:44:32 -08:00
Guogang Li 6f58a4d111 Implemented a C wrapper for Nearby Connections.
PiperOrigin-RevId: 601133946
2024-01-24 08:50:30 -08:00
Guogang Li 850c3e2788 Fixed the bug of passing connection request info
PiperOrigin-RevId: 592248269
2023-12-19 08:46:17 -08:00
hai007 454d24e837 Allow ConnectionOptionsW::GetMediums to actually return the updated mediums_size value.
Currently, mediums_size is passed in by value, so updates to it have no effect outside the function.

PiperOrigin-RevId: 587942623
2023-12-04 22:21:22 -08:00
Janusz Sobczak 56acecdffa Migrate to AnyInvocable in DiscoveryListener
PiperOrigin-RevId: 571077933
2023-10-05 11:20:17 -07:00
Janusz Sobczak 2c55c0cdbd Refactor Pipe implementation
* Remove Pipe classes
* Rename BasePipe to Pipe
* Hide Pipe class in anonymous namespace in pipe.cc
* Add CreatePipe static method
* Replace Payload(std::function<InputStream&()>) with Payload(std::unique_ptr<InputStream>)
* Find&Replace Pipe usages

PiperOrigin-RevId: 557276980
2023-08-15 15:53:58 -07:00
Janusz Sobczak e703b21cde Fix connections_test
PiperOrigin-RevId: 555282324
2023-08-09 19:13:52 -07:00
Janusz Sobczak 5393daf9f1 Merge logging and types build targets
Both "types" and "logging" build targets included "logging.h"
Merging them together avoids circular dependencies.

PiperOrigin-RevId: 555262816
2023-08-09 19:13:12 -07:00
Anay Wadhera 4958a32c35 make ResultCallback a bare function type and convert to AnyInvocable
PiperOrigin-RevId: 551081080
2023-07-25 21:07:48 -07:00
Anay Wadhera f2cadc2815 move payload listeners to absl::AnyInvocable
PiperOrigin-RevId: 533365325
2023-05-18 23:30:01 -07:00
Anay Wadhera bd4f7646f5 Refactor windows medium selector to remove generic type
PiperOrigin-RevId: 522422530
2023-04-06 13:35:31 -07:00
Nick Bourdakos a933a91413 Internal Change
PiperOrigin-RevId: 520165614
2023-03-28 16:26:40 -07:00
Anay Wadhera 4375f988d7 Remove irrelevant timeout fields from discovery_options
PiperOrigin-RevId: 515106695
2023-03-08 12:17:43 -08:00
Nick Bourdakos 9fef440925 Update Dart payload callbacks to better support file and byte payloads
PiperOrigin-RevId: 506006910
2023-01-31 08:15:55 -08:00
Nick Bourdakos f49fe2fb59 Internal change
PiperOrigin-RevId: 503320554
2023-01-19 18:45:56 -08:00
Nick Bourdakos 819f816600 Refactor nearby connections clients to be organized by languages.
PiperOrigin-RevId: 503308736
2023-01-19 17:36:07 -08:00