|
PebbleOS v4.45.0-179-g439c45a48
|
Callbacks the send queue uses to drain a job. More...
#include <send.h>
Data Fields | |
| size_t(* | get_length )(const struct pbl_pp_send_job *job) |
| Get the number of bytes left to send, header included. | |
| size_t(* | copy )(const struct pbl_pp_send_job *job, size_t offset, size_t length, uint8_t *data_out) |
| Copy bytes left to send. | |
| size_t(* | get_read_pointer )(const struct pbl_pp_send_job *job, const uint8_t **data_out) |
| Get the next contiguous bytes left to send. | |
| void(* | consume )(const struct pbl_pp_send_job *job, size_t length) |
| Mark bytes as sent. | |
| void(* | free )(struct pbl_pp_send_job *job) |
| Release the job, sent completely or not. | |
Callbacks the send queue uses to drain a job.
Called with the queue locked.
| void(* pbl_pp_send_job_api::consume) (const struct pbl_pp_send_job *job, size_t length) |
Mark bytes as sent.
| job | Job. |
| length | Number of bytes sent. |
| size_t(* pbl_pp_send_job_api::copy) (const struct pbl_pp_send_job *job, size_t offset, size_t length, uint8_t *data_out) |
Copy bytes left to send.
| job | Job. | |
| offset | Offset into the bytes left to send. | |
| length | Maximum number of bytes to copy. | |
| [out] | data_out | Destination. |
| void(* pbl_pp_send_job_api::free) (struct pbl_pp_send_job *job) |
Release the job, sent completely or not.
| job | Job. |
| size_t(* pbl_pp_send_job_api::get_length) (const struct pbl_pp_send_job *job) |
Get the number of bytes left to send, header included.
| job | Job. |
| size_t(* pbl_pp_send_job_api::get_read_pointer) (const struct pbl_pp_send_job *job, const uint8_t **data_out) |
Get the next contiguous bytes left to send.
| job | Job. | |
| [out] | data_out | Read pointer. |
data_out.