]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
change function prototype to make more sense
authorAlan T. DeKok <aland@freeradius.org>
Tue, 14 May 2024 23:41:15 +0000 (19:41 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 14 May 2024 23:41:15 +0000 (19:41 -0400)
src/lib/bio/packet.h

index 07721189fefdc7bb239c9e501224f2fc38eebe0c..a5a0cb39e518b02391b1a5692d3e6ca98bbb0962 100644 (file)
@@ -66,15 +66,21 @@ typedef int (*fr_bio_packet_write_t)(fr_bio_packet_t *bio, void *request_ctx, fr
  */
 typedef int (*fr_bio_packet_release_t)(fr_bio_packet_t *bio, fr_packet_t *packet);
 
+typedef void (*fr_bio_packet_signal_t)(fr_bio_packet_t *bio);
+
 struct fr_bio_packet_s {
        void                    *uctx;          //!< user ctx, caller can manually set it.
 
        fr_bio_packet_read_t    read;           //!< read from the underlying bio
        fr_bio_packet_write_t   write;          //!< write to the underlying bio
 
-       fr_bio_t                *bio;           //!< underlying bio for IO
+       fr_bio_packet_signal_t  read_blocked;
+       fr_bio_packet_signal_t  write_blocked;
 
-       bool                    write_blocked;  //!< are writes to the bio blocked?
+       fr_bio_packet_signal_t  read_resume;
+       fr_bio_packet_signal_t  write_resume;
+
+       fr_bio_t                *bio;           //!< underlying bio for IO
 };