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_get_alpn_selected __P((const xtc_tls_t *, const unsigned char **, unsigned int *));
15int xtc_tls_get_cipher_bits __P((const xtc_tls_t *));
16int xtc_tls_get_peer_common_name __P((const xtc_tls_t *, char *, size_t));
17int xtc_tls_get_peer_issuer_dn __P((const xtc_tls_t *, char *, size_t));
18int xtc_tls_get_peer_serial __P((const xtc_tls_t *, char *, size_t));
19int xtc_tls_get_peer_subject_dn __P((const xtc_tls_t *, char *, size_t));
20int xtc_tls_get_server_cert_hash __P((const xtc_tls_t *, unsigned char *, size_t, size_t *));
21int xtc_tls_get_verify_error __P((const xtc_tls_t *, long *, char *, size_t));
22int xtc_tls_handshake __P((xtc_tls_t *));
23int xtc_tls_has_peer_cert __P((const xtc_tls_t *));
24int xtc_tls_read __P((xtc_tls_t *, void *, size_t, size_t *));
25int xtc_tls_set_hostname __P((xtc_tls_t *, const char *));
26int xtc_tls_shutdown __P((xtc_tls_t *));
27int xtc_tls_wants_read __P((const xtc_tls_t *));
28int xtc_tls_wants_write __P((const xtc_tls_t *));
29int xtc_tls_write __P((xtc_tls_t *, const void *, size_t, size_t *));
30int __xtc_io_backend_init __P((xtc_io_t *));
31int __xtc_io_register_wakeup __P((xtc_io_t *, int));
32int __xtc_io_sim_defer_cb __P((xtc_io_t *, int64_t, void (*)(void *), void *));
33int xtc_bdev_flush __P((xtc_bdev_t *));
34int xtc_bdev_open __P((const char *, int, xtc_bdev_t **));
35int xtc_io_aio_submit __P((xtc_io_t *, xtc_aio_t *));
36int xtc_io_del_fd __P((xtc_io_t *, int));
37int xtc_io_fini __P((xtc_io_t *));
38int xtc_io_init __P((xtc_io_t **));
39int xtc_io_mod_fd __P((xtc_io_t *, int, uint32_t, void *));
40int xtc_io_poll __P((xtc_io_t *, xtc_io_event_t *, int, int64_t, int *));
41int xtc_io_reg_fd __P((xtc_io_t *, int, uint32_t, void *));
42int xtc_io_wakeup __P((xtc_io_t *));
43int xtc_net_recv_frame __P((int, void **, size_t *, size_t, int64_t));
44int xtc_net_send_frame __P((int, const void *, size_t));
45int64_t __xtc_io_sim_next_due __P((xtc_io_t *));
46ssize_t xtc_bdev_pread __P((xtc_bdev_t *, void *, size_t, uint64_t));
47ssize_t xtc_bdev_pwrite __P((xtc_bdev_t *, const void *, size_t, uint64_t));
48uint32_t xtc_bdev_logical_sector __P((const xtc_bdev_t *));
49uint32_t xtc_bdev_physical_sector __P((const xtc_bdev_t *));
50uint64_t xtc_bdev_capacity __P((const xtc_bdev_t *));
51void __xtc_io_backend_fini __P((xtc_io_t *));
52void xtc_bdev_close __P((xtc_bdev_t *));
53void xtc_io_set_iowq_max_workers __P((unsigned, unsigned));
54void xtc_tls_ctx_destroy __P((xtc_tls_ctx_t *));
55void xtc_tls_destroy __P((xtc_tls_t *));
56
57#endif /* IO_EXT_H */