libxtc 0.4.0
Async concurrency for C: Tokio + Seastar + BEAM, in one library
Loading...
Searching...
No Matches
io_ext.h
1/* DO NOT EDIT: automatically built by dist/s_include. */
2/* See M0_CLAIMS.md [T2]. */
3
4#ifndef IO_EXT_H
5#define IO_EXT_H
6
7const char *xtc_io_backend_name __P((void));
8const char *xtc_tls_get_cipher __P((const xtc_tls_t *));
9const char *xtc_tls_get_version __P((const xtc_tls_t *));
10int xtc_tls_create __P((xtc_tls_ctx_t *, int, xtc_tls_t **));
11int xtc_tls_create_transport __P((xtc_tls_ctx_t *, const xtc_tls_transport_t *, xtc_tls_t **));
12int xtc_tls_ctx_create __P((xtc_tls_role_t, const xtc_tls_opts_t *, xtc_tls_ctx_t **));
13int xtc_tls_ctx_set_sni_cb __P((xtc_tls_ctx_t *, xtc_tls_sni_cb_t, void *));
14int xtc_tls_enable_ktls __P((xtc_tls_t *));
15int xtc_tls_get_alpn_selected __P((const xtc_tls_t *, const unsigned char **, unsigned int *));
16int xtc_tls_get_cipher_bits __P((const xtc_tls_t *));
17int xtc_tls_get_peer_common_name __P((const xtc_tls_t *, char *, size_t));
18int xtc_tls_get_peer_issuer_dn __P((const xtc_tls_t *, char *, size_t));
19int xtc_tls_get_peer_serial __P((const xtc_tls_t *, char *, size_t));
20int xtc_tls_get_peer_subject_dn __P((const xtc_tls_t *, char *, size_t));
21int xtc_tls_get_server_cert_hash __P((const xtc_tls_t *, unsigned char *, size_t, size_t *));
22int xtc_tls_get_verify_error __P((const xtc_tls_t *, long *, char *, size_t));
23int xtc_tls_handshake __P((xtc_tls_t *));
24int xtc_tls_has_peer_cert __P((const xtc_tls_t *));
25int xtc_tls_ktls_active __P((const xtc_tls_t *));
26int xtc_tls_read __P((xtc_tls_t *, void *, size_t, size_t *));
27int xtc_tls_sendfile __P((xtc_tls_t *, int, int64_t, size_t, size_t *));
28int xtc_tls_set_hostname __P((xtc_tls_t *, const char *));
29int xtc_tls_shutdown __P((xtc_tls_t *));
30int xtc_tls_wants_read __P((const xtc_tls_t *));
31int xtc_tls_wants_write __P((const xtc_tls_t *));
32int xtc_tls_write __P((xtc_tls_t *, const void *, size_t, size_t *));
33int __xtc_io_backend_init __P((xtc_io_t *));
34int __xtc_io_register_wakeup __P((xtc_io_t *, int));
35int __xtc_io_sim_defer_cb __P((xtc_io_t *, int64_t, void (*)(void *), void *));
36int xtc_bdev_flush __P((xtc_bdev_t *));
37int xtc_bdev_open __P((const char *, int, xtc_bdev_t **));
38int xtc_io_aio_submit __P((xtc_io_t *, xtc_aio_t *));
39int xtc_io_del_fd __P((xtc_io_t *, int));
40int xtc_io_fini __P((xtc_io_t *));
41int xtc_io_init __P((xtc_io_t **));
42int xtc_io_mod_fd __P((xtc_io_t *, int, uint32_t, void *));
43int xtc_io_poll __P((xtc_io_t *, xtc_io_event_t *, int, int64_t, int *));
44int xtc_io_reg_fd __P((xtc_io_t *, int, uint32_t, void *));
45int xtc_io_wakeup __P((xtc_io_t *));
46int xtc_net_accept __P((int, int *));
47int xtc_net_listen_backlog __P((xtc_net_family_t, const char *, int, const xtc_tcp_opts_t *, int, int *));
48int xtc_net_recv_frame __P((int, void **, size_t *, size_t, int64_t));
49int xtc_net_send_frame __P((int, const void *, size_t));
50int xtc_net_send_framev __P((int, const struct iovec *, int));
51int64_t __xtc_io_sim_next_due __P((xtc_io_t *));
52ssize_t xtc_bdev_pread __P((xtc_bdev_t *, void *, size_t, uint64_t));
53ssize_t xtc_bdev_pwrite __P((xtc_bdev_t *, const void *, size_t, uint64_t));
54uint32_t xtc_bdev_logical_sector __P((const xtc_bdev_t *));
55uint32_t xtc_bdev_physical_sector __P((const xtc_bdev_t *));
56uint64_t xtc_bdev_capacity __P((const xtc_bdev_t *));
57void __xtc_io_backend_fini __P((xtc_io_t *));
58void __xtc_net_ktls_seen __P((void));
59void xtc_bdev_close __P((xtc_bdev_t *));
60void xtc_io_set_iowq_max_workers __P((unsigned, unsigned));
61void xtc_tls_ctx_destroy __P((xtc_tls_ctx_t *));
62void xtc_tls_destroy __P((xtc_tls_t *));
63
64#endif /* IO_EXT_H */