pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmo-netif/+/38924?usp=email )


Change subject: stream_cli: Rename private functions
......................................................................

stream_cli: Rename private functions

Remove the osmo_ prefix to easily spot they are private.

Change-Id: Iaa94ede577df78fab7a1db9a1e9a43901133c102
---
M src/stream_cli.c
1 file changed, 9 insertions(+), 9 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/24/38924/1

diff --git a/src/stream_cli.c b/src/stream_cli.c
index c9c9e19..b7ca9fd 100644
--- a/src/stream_cli.c
+++ b/src/stream_cli.c
@@ -161,7 +161,7 @@
               cli->state == STREAM_CLI_STATE_CONNECTED;
 }

-static void osmo_stream_cli_close_iofd(struct osmo_stream_cli *cli)
+static void stream_cli_close_iofd(struct osmo_stream_cli *cli)
 {
        if (!cli->iofd)
                return;
@@ -170,7 +170,7 @@
        cli->iofd = NULL;
 }

-static void osmo_stream_cli_close_ofd(struct osmo_stream_cli *cli)
+static void stream_cli_close_ofd(struct osmo_stream_cli *cli)
 {
        if (cli->ofd.fd == -1)
                return;
@@ -198,10 +198,10 @@

        switch (cli->mode) {
        case OSMO_STREAM_MODE_OSMO_FD:
-               osmo_stream_cli_close_ofd(cli);
+               stream_cli_close_ofd(cli);
                break;
        case OSMO_STREAM_MODE_OSMO_IO:
-               osmo_stream_cli_close_iofd(cli);
+               stream_cli_close_iofd(cli);
                break;
        default:
                OSMO_ASSERT(false);
@@ -249,7 +249,7 @@
        return cli->iofd;
 }

-static void osmo_stream_cli_read(struct osmo_stream_cli *cli)
+static void stream_cli_read(struct osmo_stream_cli *cli)
 {
        LOGSCLI(cli, LOGL_DEBUG, "message received\n");

@@ -257,7 +257,7 @@
                cli->read_cb(cli);
 }

-static int osmo_stream_cli_write(struct osmo_stream_cli *cli)
+static int stream_cli_write(struct osmo_stream_cli *cli)
 {
 #ifdef HAVE_LIBSCTP
        struct sctp_sndrcvinfo sinfo;
@@ -409,11 +409,11 @@
        case STREAM_CLI_STATE_CONNECTED:
                if (what & OSMO_FD_READ) {
                        LOGSCLI(cli, LOGL_DEBUG, "connected read\n");
-                       osmo_stream_cli_read(cli);
+                       stream_cli_read(cli);
                }
                if (what & OSMO_FD_WRITE) {
                        LOGSCLI(cli, LOGL_DEBUG, "connected write\n");
-                       osmo_stream_cli_write(cli);
+                       stream_cli_write(cli);
                }
                break;
        default:
@@ -1097,7 +1097,7 @@
                break;
        case OSMO_STREAM_MODE_OSMO_IO:
                /* Be sure that previous osmo_io instance is freed before 
creating a new one. */
-               osmo_stream_cli_close_iofd(cli);
+               stream_cli_close_iofd(cli);
 #ifdef HAVE_LIBSCTP
                if (cli->proto == IPPROTO_SCTP) {
                        cli->iofd = osmo_iofd_setup(cli, fd, cli->name, 
OSMO_IO_FD_MODE_RECVMSG_SENDMSG,

--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/38924?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: Iaa94ede577df78fab7a1db9a1e9a43901133c102
Gerrit-Change-Number: 38924
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>

Reply via email to