packages feed

reliable-io 0.0.1 → 0.0.2

raw patch · 2 files changed

+2/−2 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Bindings.Reliable.IO: type C'allocate_function_t = FunPtr (Ptr () -> Word64 -> IO (Ptr ()))
+ Bindings.Reliable.IO: type C'allocate_function_t = FunPtr Ptr () -> Word64 -> IO Ptr ()
- Bindings.Reliable.IO: type C'assert_function_t = FunPtr (CString -> CString -> CString -> CInt -> IO ())
+ Bindings.Reliable.IO: type C'assert_function_t = FunPtr CString -> CString -> CString -> CInt -> IO ()
- Bindings.Reliable.IO: type C'free_function_t = FunPtr (Ptr () -> Ptr () -> IO ())
+ Bindings.Reliable.IO: type C'free_function_t = FunPtr Ptr () -> Ptr () -> IO ()
- Bindings.Reliable.IO: type C'process_packet_function_t = FunPtr (Ptr () -> CInt -> Word16 -> Ptr Word8 -> CInt -> IO CInt)
+ Bindings.Reliable.IO: type C'process_packet_function_t = FunPtr Ptr () -> CInt -> Word16 -> Ptr Word8 -> CInt -> IO CInt
- Bindings.Reliable.IO: type C'transmit_packet_function_t = FunPtr (Ptr () -> CInt -> Word16 -> Ptr Word8 -> CInt -> IO ())
+ Bindings.Reliable.IO: type C'transmit_packet_function_t = FunPtr Ptr () -> CInt -> Word16 -> Ptr Word8 -> CInt -> IO ()
- Reliable.IO: type ProcessPacketFunction = Word16 " Sequence number of the packet received. " -> Ptr Word8 " Pointer to the memory containing the packet data " -> Int " Size of the data in bytes. " -> IO Bool " Returns true if the packet was successfully processed "
+ Reliable.IO: type ProcessPacketFunction = Word16 -> Ptr Word8 -> Int -> IO Bool
- Reliable.IO: type TransmitPacketFunction = Word16 " Sequence number of the packet being sent " -> Ptr Word8 " Pointer to memory containing the packet data " -> Int " Size of the data in bytes " -> IO ()
+ Reliable.IO: type TransmitPacketFunction = Word16 -> Ptr Word8 -> Int -> IO ()

Files

Reliable/IO.hs view
@@ -434,7 +434,7 @@ getAcks :: Endpoint -> IO [Word16]
 getAcks (Endpoint epPtr _) = alloca $ \numAcksPtr -> do
     acksPtr <- c'reliable_endpoint_get_acks epPtr numAcksPtr
-    numAcks <- peek acksPtr
+    numAcks <- peek numAcksPtr
     peekArray (fromIntegral numAcks) acksPtr
 
 -- | Clears the list of sequence numbers for the most recently ack'd packets.
reliable-io.cabal view
@@ -1,6 +1,6 @@ cabal-version:       >= 1.10
 name:                reliable-io
-version:             0.0.1
+version:             0.0.2
 synopsis:            Bindings to the low-level reliable.io library.
 description:         Bindings to the low-level reliable.io library, which come
                      in two flavors: c-level bindings and a high-level