Jason Kankiewicz
4f7843e007
Removed CMocka from the "docs" CI workflow's list
...
of dependencies.
2022-06-11 20:57:28 -07:00
Jason Kankiewicz
30dd3da578
Updated the CMake build CI script to build the
...
"test_automerge" target explicitly.
2022-06-11 20:55:44 -07:00
Jason Kankiewicz
6668f79a6e
Decouple the "test_automerge" build target from
...
the "ALL" target.
2022-06-11 20:53:17 -07:00
Orion Henry
0c9e77b644
added a test to ensure we dont break counter serialization
2022-06-09 12:45:20 +02:00
Orion Henry
d6bce697a5
normalize edit trace
2022-06-09 12:42:43 +02:00
Orion Henry
22117f4997
Merge pull request #387 from jeromegn/counter-ser-current
...
Serialize Counter with it's current value instead of start value
2022-06-09 03:42:28 -07:00
Jerome Gravel-Niquet
b20d04b0f2
serialize Counter with it's current value instead of start value
2022-06-08 14:00:03 -04:00
Orion Henry
d5c07f22af
Merge pull request #385 from jkankiewicz/add_some_functions_from_README
...
Add some functions from the README.md file
2022-06-07 06:33:44 -07:00
Jason Kankiewicz
bfa85050b8
Fix Rust code formatting violations.
2022-06-07 00:29:58 -07:00
Jason Kankiewicz
1c78aab5f0
Fixed the AMsyncStateDecode()
documentation.
2022-06-07 00:23:41 -07:00
Jason Kankiewicz
ad7dd07cf7
Simplify the names of the unit test suites' source
...
files.
2022-06-07 00:21:22 -07:00
Jason Kankiewicz
2e84c6e9ef
Added AMlistIncrement()
.
2022-06-07 00:15:37 -07:00
Jason Kankiewicz
0ecb9e7dce
Added AMmapIncrement()
.
2022-06-07 00:14:42 -07:00
Jason Kankiewicz
99ab5b4ed7
Added AMgetChangesAdded()
.
...
Added `AMpendingOps()`.
Added `AMrollback()`.
Added `AMsaveIncremental()`.
Fixed the `AMmerge()` documentation.
2022-06-07 00:14:11 -07:00
Andrew Jeffery
7439a49e37
Fix automerge-c html nesting
2022-06-06 19:49:18 +01:00
Andrew Jeffery
7a9786a146
Fix index.html location
2022-06-06 19:35:50 +01:00
Andrew Jeffery
82fe420a10
Use cmocka dev instead of lib
2022-06-06 19:11:07 +01:00
Andrew Jeffery
7d2be219ac
Update cmocka to be libcmocka0 for install
2022-06-06 19:05:02 +01:00
Andrew Jeffery
00ab853813
Add cmake docs deps
2022-06-06 18:40:25 +01:00
Andrew Jeffery
97ef4fe7cd
Merge pull request #384 from jeffa5/serve-c-docs
...
Build c docs in CI
2022-06-06 18:31:48 +01:00
Andrew Jeffery
5c1cbc8eeb
Build c docs in CI
2022-06-06 18:21:14 +01:00
Orion Henry
cf264f3bf4
Merge pull request #382 from jkankiewicz/obfuscate_iterator_fields
...
Remove artificial iteration from the C API
2022-06-06 06:41:45 -07:00
Jason Kankiewicz
8222ec1705
Move the AMsyncHaves.ptr
field into the
...
`sync::haves::Detail` struct.
Change `AMsyncHavesAdvance()`, `AMsyncHavesNext()` and `AMsyncHavesPrev()`
to interpret their `n` argument relatively instead of absolutely.
Renamed `AMsyncHavesReverse()` to `AMsyncHavesReversed()`.
Updated the C API's documentation for the `AMsyncHaves` struct.
2022-06-05 14:41:48 -07:00
Jason Kankiewicz
74632a0512
Move the AMchanges.ptr
field into the
...
`changes::Detail` struct.
Change `AMchangesAdvance()`, `AMchangesNext()` and `AMchangesPrev()` to
interpret their `n` argument relatively instead of absolutely.
Renamed `AMchangesReverse()` to `AMchangesReversed()`.
Updated the C API's documentation for the `AMchanges` struct.
2022-06-05 14:37:32 -07:00
Jason Kankiewicz
7e1ae60bdc
Move the AMchangeHashes.ptr
field into the
...
`change_hashes::Detail` struct.
Change `AMchangeHashesAdvance()`, `AMchangeHashesNext()` and
`AMchangeHashesPrev()` to interpret their `n` argument relatively
instead of absolutely.
Renamed `AMchangeHashesReverse()` to `AMchangeHashesReversed()`.
Updated the C API's documentation for the `AMchangeHashes` struct.
2022-06-05 14:32:55 -07:00
Jason Kankiewicz
92d6fff22f
Compensate for the removal of the AMchanges.ptr
...
member.
2022-06-05 14:28:33 -07:00
Jason Kankiewicz
92f3efd6e0
Removed the 0
argument from AMresultValue()
...
calls.
2022-06-04 22:31:15 -07:00
Jason Kankiewicz
31fe8dbb36
Renamed the AMresult::Scalars
variant to
...
`AMresult::Value`.
Removed the `Vec` wrapping the 0th field of an `AMresult::Value`.
Removed the `index` argument from `AMresultValue()`.
2022-06-04 22:24:02 -07:00
Jason Kankiewicz
d4d1b64cf4
Compensate for cbindgen issue #252 .
2022-06-04 19:18:47 -07:00
Jason Kankiewicz
92b1216101
Obfuscated most implementation details of the
...
`AMsyncHaves` struct.
Added `AMsyncHavesReverse()`.
2022-06-04 19:14:31 -07:00
Jason Kankiewicz
1990f29c60
Obfuscated most implementation details of the
...
`AMChanges` struct.
Added `AMchangesReverse()`.
2022-06-04 19:13:22 -07:00
Jason Kankiewicz
b38be0750b
Obfuscated most implementation details of the
...
`AMChangeHashes` struct.
Added `AMchangeHashesReverse()`.
2022-06-04 18:51:57 -07:00
Orion Henry
3866e9066f
Merge pull request #381 from jkankiewicz/unify_C_API_results
...
Simplify management of memory allocated by C API calls
2022-06-02 10:14:55 -07:00
Orion Henry
51554e7793
Merge pull request #377 from jeffa5/more-sync-opt
...
Some more sync optimisations
2022-06-02 10:14:44 -07:00
Jason Kankiewicz
afddf7d508
Fix "fmt" script violations.
...
Fix "lint" script violations.
2022-06-01 23:34:28 -07:00
Jason Kankiewicz
ca383f03e4
Wrapped all newly-allocated values in an AMresult
struct.
...
Removed `AMfree()`.
Renamed `AMresultFree()` to `AMfree()`.
Removed type names from brief descriptions.
2022-06-01 23:10:23 -07:00
Orion Henry
de25e8f7c8
Merge pull request #380 from jkankiewicz/add_syncing_to_C_API
...
Add syncing to C API
2022-06-01 13:46:55 -07:00
Orion Henry
27dfa4ca27
missed some bugs related to the wasm api change
2022-06-01 16:31:18 -04:00
Orion Henry
9a0dd24714
fmt / tests
2022-06-01 08:08:01 -04:00
Orion Henry
8ce10dab69
some api changes/tweaks - basic js package
2022-05-31 13:49:18 -04:00
Jason Kankiewicz
fbdb5da508
Ported 17 synchronization unit test cases from JS
...
to C.
2022-05-30 23:17:44 -07:00
Jason Kankiewicz
cdcd5156db
Added the synchronization unit test suite to the
...
CTest suite.
2022-05-30 23:16:14 -07:00
Jason Kankiewicz
d08eeeed61
Renamed AMfreeDoc()
to AMFree()
.
2022-05-30 23:15:20 -07:00
Jason Kankiewicz
472b5dc348
Added the synchronization unit test suite to the
...
CTest suite.
2022-05-30 23:14:38 -07:00
Jason Kankiewicz
846b96bc9a
Renamed AMfreeResult()
to AMresultFree()
.
2022-05-30 23:11:56 -07:00
Jason Kankiewicz
4cb7481a1b
Moved the AMsyncState
struct into its own
...
source file.
Added `AMsyncStateDecode()`.
Added `AMsyncStateEncode()`.
Added `AMsyncStateEqual()`.
Added `AMsyncStateSharedHeads()`.
Added `AMsyncStateLastSentHeads()`.
Added `AMsyncStateTheirHaves()`.
Added `AMsyncStateTheirHeads()`.
Added `AMsyncStateTheirNeeds()`.
2022-05-30 23:07:55 -07:00
Jason Kankiewicz
3c11946c16
Moved the AMsyncMessage
struct into its own
...
source file.
Added `AMsyncMessageChanges()`.
Added `AMsyncMessageDecode()`.
Added `AMsyncMessageEncode()`.
Added `AMsyncMessageHaves()`.
Added `AMsyncMessageHeads()`.
Added `AMsyncMessageNeeds()`.
2022-05-30 22:58:45 -07:00
Jason Kankiewicz
c5d3d1b0a0
Added the AMsyncHaves
struct.
...
Added `AMsyncHavesAdvance()`.
Added `AMsyncHavesNext()`.
Added `AMsyncHavesPrev()`.
Added `AMsyncHavesSize()`.
2022-05-30 22:55:34 -07:00
Jason Kankiewicz
be3c7d6233
Added the AMsyncHave
struct.
...
Added `AMsyncHaveLastSync()`.
2022-05-30 22:54:02 -07:00
Jason Kankiewicz
9213d43850
Grouped some common macros and functions into
...
their own source file.
2022-05-30 22:53:09 -07:00