Alex Good
e295a55b41
Add #[derive(Eq)] to satisfy clippy
...
The latest clippy (90.1.65 for me) added a lint which checks for types
that implement `PartialEq` and could implement `Eq`
(`derive_partial_eq_without_eq`). Add a `derive(Eq)` in a bunch of
places to satisfy this lint.
2022-09-01 12:24:00 +01:00
Jason Kankiewicz
3ddde2fff2
Normalize the header include statement for all C
...
source files.
Normalize the header include statement within the documentation.
Limit `AMpush()` usage within the quickstart example to variable
assignment.
2022-08-22 22:28:23 -07:00
Jason Kankiewicz
d48e366272
Fix some documentation content bugs.
...
Fix some documentation formatting bugs.
2022-08-06 15:56:21 -07:00
Jason Kankiewicz
877744d40b
Add equality comparison to the AM*
types from
...
which it was missing.
Add equality comparison to `automerge::sync::message`.
Defer `std::ffi::CString` creation until necessary.
2022-07-25 01:33:50 -07:00
Jason Kankiewicz
14b55c4a73
Fix a bug with the iterators when they pass their
...
initial positions in reverse.
Rename `AMstrings` to `AMstrs` for consistency with the `AMvalue.str`
field.
2022-07-25 01:23:26 -07:00
Jason Kankiewicz
aeb8db556c
Added "out" directions to the documentation for
...
out function parameters.
2022-06-20 23:11:03 -07:00
Jason Kankiewicz
bf4988dcca
Fixed AM{change_hashes,changes,haves,strings}Prev()
.
2022-06-20 13:50:05 -07:00
Jason Kankiewicz
be130560f0
Added a check for a 0
increment in the iterator
...
types.
Improved the documentation for the `detail` field in the iterator types.
2022-06-20 01:34:36 -07:00
Jason Kankiewicz
103d729bd1
Replaced the term "length" with "size" in the
...
documentation.
2022-06-20 01:31:08 -07:00
Jason Kankiewicz
1c78aab5f0
Fixed the AMsyncStateDecode()
documentation.
2022-06-07 00:23:41 -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
92b1216101
Obfuscated most implementation details of the
...
`AMsyncHaves` struct.
Added `AMsyncHavesReverse()`.
2022-06-04 19:14:31 -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
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