diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2012-08-15 21:14:38 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2012-08-15 23:34:35 +0200 |
commit | cee5fb36dab5741c2f2a5b5952e734bac6621c8f (patch) | |
tree | 1bb067796b0cb2c6105e008a9b9dd55b2a2fa9ef /include/osmocom/netif | |
parent | ad2e9d637e27a6c51fa6f4ae8ec81075a6448c27 (diff) |
src: shorter stream function names
%s/_client_conn_/_cli_/g
%s/_server_conn_/_srv_/g
%s/_client_/cli/g
%s/server/srv/g
%s/RECONFIG/RECONF/g
%s/SERVER/SRV/g
%s/CLIENT/CLI/g
Diffstat (limited to 'include/osmocom/netif')
-rw-r--r-- | include/osmocom/netif/stream.h | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/include/osmocom/netif/stream.h b/include/osmocom/netif/stream.h index fe04088..34a3b37 100644 --- a/include/osmocom/netif/stream.h +++ b/include/osmocom/netif/stream.h @@ -1,51 +1,51 @@ #ifndef _OSMO_STREAM_H_ #define _OSMO_STREAM_H_ -struct osmo_stream_server_link; +struct osmo_stream_srv_link; -struct osmo_stream_server_link *osmo_stream_server_link_create(void *ctx); -void osmo_stream_server_link_destroy(struct osmo_stream_server_link *link); +struct osmo_stream_srv_link *osmo_stream_srv_link_create(void *ctx); +void osmo_stream_srv_link_destroy(struct osmo_stream_srv_link *link); -void osmo_stream_server_link_set_addr(struct osmo_stream_server_link *link, const char *addr); -void osmo_stream_server_link_set_port(struct osmo_stream_server_link *link, uint16_t port); -void osmo_stream_server_link_set_accept_cb(struct osmo_stream_server_link *link, int (*accept_cb)(struct osmo_stream_server_link *link, int fd)); -void osmo_stream_server_link_set_data(struct osmo_stream_server_link *link, void *data); -void *osmo_stream_server_link_get_data(struct osmo_stream_server_link *link); -struct osmo_fd *osmo_stream_server_link_get_ofd(struct osmo_stream_server_link *link); +void osmo_stream_srv_link_set_addr(struct osmo_stream_srv_link *link, const char *addr); +void osmo_stream_srv_link_set_port(struct osmo_stream_srv_link *link, uint16_t port); +void osmo_stream_srv_link_set_accept_cb(struct osmo_stream_srv_link *link, int (*accept_cb)(struct osmo_stream_srv_link *link, int fd)); +void osmo_stream_srv_link_set_data(struct osmo_stream_srv_link *link, void *data); +void *osmo_stream_srv_link_get_data(struct osmo_stream_srv_link *link); +struct osmo_fd *osmo_stream_srv_link_get_ofd(struct osmo_stream_srv_link *link); -int osmo_stream_server_link_open(struct osmo_stream_server_link *link); -void osmo_stream_server_link_close(struct osmo_stream_server_link *link); +int osmo_stream_srv_link_open(struct osmo_stream_srv_link *link); +void osmo_stream_srv_link_close(struct osmo_stream_srv_link *link); -struct osmo_stream_server_conn; +struct osmo_stream_srv; -struct osmo_stream_server_conn *osmo_stream_server_conn_create(void *ctx, struct osmo_stream_server_link *link, int fd, int (*cb)(struct osmo_stream_server_conn *conn), int (*closed_cb)(struct osmo_stream_server_conn *conn), void *data); -void *osmo_stream_server_conn_get_data(struct osmo_stream_server_conn *conn); -struct osmo_fd *osmo_stream_server_conn_get_ofd(struct osmo_stream_server_conn *link); -void osmo_stream_server_conn_destroy(struct osmo_stream_server_conn *conn); +struct osmo_stream_srv *osmo_stream_srv_create(void *ctx, struct osmo_stream_srv_link *link, int fd, int (*cb)(struct osmo_stream_srv *conn), int (*closed_cb)(struct osmo_stream_srv *conn), void *data); +void *osmo_stream_srv_get_data(struct osmo_stream_srv *conn); +struct osmo_fd *osmo_stream_srv_get_ofd(struct osmo_stream_srv *srv); +void osmo_stream_srv_destroy(struct osmo_stream_srv *conn); -void osmo_stream_server_conn_set_data(struct osmo_stream_server_conn *conn, void *data); +void osmo_stream_srv_set_data(struct osmo_stream_srv *conn, void *data); -void osmo_stream_server_conn_send(struct osmo_stream_server_conn *conn, struct msgb *msg); -int osmo_stream_server_conn_recv(struct osmo_stream_server_conn *conn, struct msgb *msg); +void osmo_stream_srv_send(struct osmo_stream_srv *conn, struct msgb *msg); +int osmo_stream_srv_recv(struct osmo_stream_srv *conn, struct msgb *msg); -struct osmo_stream_client_conn; +struct osmo_stream_cli; -void osmo_stream_client_conn_set_addr(struct osmo_stream_client_conn *link, const char *addr); -void osmo_stream_client_conn_set_port(struct osmo_stream_client_conn *link, uint16_t port); -void osmo_stream_client_conn_set_data(struct osmo_stream_client_conn *link, void *data); -void osmo_stream_client_conn_set_reconnect_timeout(struct osmo_stream_client_conn *link, int timeout); -void *osmo_stream_client_conn_get_data(struct osmo_stream_client_conn *link); -struct osmo_fd *osmo_stream_client_conn_get_ofd(struct osmo_stream_client_conn *link); -void osmo_stream_client_conn_set_connect_cb(struct osmo_stream_client_conn *link, int (*connect_cb)(struct osmo_stream_client_conn *link)); -void osmo_stream_client_conn_set_read_cb(struct osmo_stream_client_conn *link, int (*read_cb)(struct osmo_stream_client_conn *link)); +void osmo_stream_cli_set_addr(struct osmo_stream_cli *cli, const char *addr); +void osmo_stream_cli_set_port(struct osmo_stream_cli *cli, uint16_t port); +void osmo_stream_cli_set_data(struct osmo_stream_cli *cli, void *data); +void osmo_stream_cli_set_reconnect_timeout(struct osmo_stream_cli *cli, int timeout); +void *osmo_stream_cli_get_data(struct osmo_stream_cli *cli); +struct osmo_fd *osmo_stream_cli_get_ofd(struct osmo_stream_cli *cli); +void osmo_stream_cli_set_connect_cb(struct osmo_stream_cli *cli, int (*connect_cb)(struct osmo_stream_cli *cli)); +void osmo_stream_cli_set_read_cb(struct osmo_stream_cli *cli, int (*read_cb)(struct osmo_stream_cli *cli)); -struct osmo_stream_client_conn *osmo_stream_client_conn_create(void *ctx); -void osmo_stream_client_conn_destroy(struct osmo_stream_client_conn *link); +struct osmo_stream_cli *osmo_stream_cli_create(void *ctx); +void osmo_stream_cli_destroy(struct osmo_stream_cli *cli); -int osmo_stream_client_conn_open(struct osmo_stream_client_conn *link); -void osmo_stream_client_conn_close(struct osmo_stream_client_conn *link); +int osmo_stream_cli_open(struct osmo_stream_cli *cli); +void osmo_stream_cli_close(struct osmo_stream_cli *cli); -void osmo_stream_client_conn_send(struct osmo_stream_client_conn *link, struct msgb *msg); -int osmo_stream_client_conn_recv(struct osmo_stream_client_conn *conn, struct msgb *msg); +void osmo_stream_cli_send(struct osmo_stream_cli *cli, struct msgb *msg); +int osmo_stream_cli_recv(struct osmo_stream_cli *conn, struct msgb *msg); #endif |