aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2012-08-15 20:10:32 +0200
committerPablo Neira Ayuso <pablo@gnumonks.org>2012-08-15 20:16:09 +0200
commitad2e9d637e27a6c51fa6f4ae8ec81075a6448c27 (patch)
tree3279404a3cbc23e345bc8a8b8c71f6017d14682b /include
parent4fd56b6d2f40c57ecc68addee2e690c359c212c7 (diff)
src: shorter names for datagram sockets
%s/_conn_/_/g %s/_conn//g %s/_server_/_tx_/g %s/_client_/_rx_/g %s/_SERVER_/_TX_/g %s/_CLIENT_/_RX_/g %s/_RECONFIG/_RECONF/g
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/netif/datagram.h62
1 files changed, 31 insertions, 31 deletions
diff --git a/include/osmocom/netif/datagram.h b/include/osmocom/netif/datagram.h
index 8ed6ce5..0245363 100644
--- a/include/osmocom/netif/datagram.h
+++ b/include/osmocom/netif/datagram.h
@@ -1,50 +1,50 @@
#ifndef _OSMO_DGRAM_H_
#define _OSMO_DGRAM_H_
-struct osmo_dgram_client_conn;
+struct osmo_dgram_tx;
-struct osmo_dgram_client_conn *osmo_dgram_client_conn_create(void *ctx);
-void osmo_dgram_client_conn_destroy(struct osmo_dgram_client_conn *conn);
+struct osmo_dgram_tx *osmo_dgram_tx_create(void *crx);
+void osmo_dgram_tx_destroy(struct osmo_dgram_tx *conn);
-void osmo_dgram_client_conn_set_addr(struct osmo_dgram_client_conn *conn, const char *addr);
-void osmo_dgram_client_conn_set_port(struct osmo_dgram_client_conn *conn, uint16_t port);
-void osmo_dgram_client_conn_set_data(struct osmo_dgram_client_conn *conn, void *data);
+void osmo_dgram_tx_set_addr(struct osmo_dgram_tx *conn, const char *addr);
+void osmo_dgram_tx_set_port(struct osmo_dgram_tx *conn, uint16_t port);
+void osmo_dgram_tx_set_data(struct osmo_dgram_tx *conn, void *data);
-int osmo_dgram_client_conn_open(struct osmo_dgram_client_conn *conn);
-void osmo_dgram_client_conn_close(struct osmo_dgram_client_conn *conn);
+int osmo_dgram_tx_open(struct osmo_dgram_tx *conn);
+void osmo_dgram_tx_close(struct osmo_dgram_tx *conn);
-void osmo_dgram_client_conn_send(struct osmo_dgram_client_conn *conn, struct msgb *msg);
+void osmo_dgram_tx_send(struct osmo_dgram_tx *conn, struct msgb *msg);
-struct osmo_dgram_server_conn;
+struct osmo_dgram_rx;
-struct osmo_dgram_server_conn *osmo_dgram_server_conn_create(void *ctx);
+struct osmo_dgram_rx *osmo_dgram_rx_create(void *crx);
-void osmo_dgram_server_conn_set_addr(struct osmo_dgram_server_conn *conn, const char *addr);
-void osmo_dgram_server_conn_set_port(struct osmo_dgram_server_conn *conn, uint16_t port);
-void osmo_dgram_server_conn_set_read_cb(struct osmo_dgram_server_conn *conn, int (*read_cb)(struct osmo_dgram_server_conn *conn));
-void osmo_dgram_server_conn_destroy(struct osmo_dgram_server_conn *conn);
+void osmo_dgram_rx_set_addr(struct osmo_dgram_rx *conn, const char *addr);
+void osmo_dgram_rx_set_port(struct osmo_dgram_rx *conn, uint16_t port);
+void osmo_dgram_rx_set_read_cb(struct osmo_dgram_rx *conn, int (*read_cb)(struct osmo_dgram_rx *conn));
+void osmo_dgram_rx_destroy(struct osmo_dgram_rx *conn);
-int osmo_dgram_server_conn_open(struct osmo_dgram_server_conn *conn);
-void osmo_dgram_server_conn_close(struct osmo_dgram_server_conn *conn);
+int osmo_dgram_rx_open(struct osmo_dgram_rx *conn);
+void osmo_dgram_rx_close(struct osmo_dgram_rx *conn);
-int osmo_dgram_server_conn_recv(struct osmo_dgram_server_conn *conn, struct msgb *msg);
+int osmo_dgram_rx_recv(struct osmo_dgram_rx *conn, struct msgb *msg);
-struct osmo_dgram_conn;
+struct osmo_dgram;
-struct osmo_dgram_conn *osmo_dgram_conn_create(void *ctx);
-void osmo_dgram_conn_destroy(struct osmo_dgram_conn *conn);
+struct osmo_dgram *osmo_dgram_create(void *crx);
+void osmo_dgram_destroy(struct osmo_dgram *conn);
-int osmo_dgram_conn_open(struct osmo_dgram_conn *conn);
-void osmo_dgram_conn_close(struct osmo_dgram_conn *conn);
+int osmo_dgram_open(struct osmo_dgram *conn);
+void osmo_dgram_close(struct osmo_dgram *conn);
-void osmo_dgram_conn_set_local_addr(struct osmo_dgram_conn *conn, const char *addr);
-void osmo_dgram_conn_set_remote_addr(struct osmo_dgram_conn *conn, const char *addr);
-void osmo_dgram_conn_set_local_port(struct osmo_dgram_conn *conn, uint16_t port);
-void osmo_dgram_conn_set_remote_port(struct osmo_dgram_conn *conn, uint16_t port);
-void osmo_dgram_conn_set_read_cb(struct osmo_dgram_conn *conn, int (*read_cb)(struct osmo_dgram_conn *conn));
-void osmo_dgram_conn_set_data(struct osmo_dgram_client_conn *conn, void *data);
+void osmo_dgram_set_local_addr(struct osmo_dgram *conn, const char *addr);
+void osmo_dgram_set_remote_addr(struct osmo_dgram *conn, const char *addr);
+void osmo_dgram_set_local_port(struct osmo_dgram *conn, uint16_t port);
+void osmo_dgram_set_remote_port(struct osmo_dgram *conn, uint16_t port);
+void osmo_dgram_set_read_cb(struct osmo_dgram *conn, int (*read_cb)(struct osmo_dgram *conn));
+void osmo_dgram_set_data(struct osmo_dgram *conn, void *data);
-void osmo_dgram_conn_send(struct osmo_dgram_conn *conn, struct msgb *msg);
-int osmo_dgram_conn_recv(struct osmo_dgram_conn *conn, struct msgb *msg);
+void osmo_dgram_send(struct osmo_dgram *conn, struct msgb *msg);
+int osmo_dgram_recv(struct osmo_dgram *conn, struct msgb *msg);
#endif