gprs_gsup_client*: remove the gprs_ prefix
Make sure everything is named gsup_client_ / GSUP_CLIENT_.
Rename static gsup_client_send() to client_send() to avoid clash with public
gprs_gsup_client_send() being renamed to gsup_client_send().
This is in preparation for moving gsup to libcommon, which is in turn
preparation for libvlr. libvlr and osmo-sgsn will use the same GSUP client
code. A number of patches will follow up on this, also for the the OAP client.
Related: OS#1592
Change-Id: I57433973b1c4f6cc1e12e7b1c96b5f719f418b51
diff --git a/openbsc/src/gprs/gsup_test_client.c b/openbsc/src/gprs/gsup_test_client.c
index 5f123b8..901b870 100644
--- a/openbsc/src/gprs/gsup_test_client.c
+++ b/openbsc/src/gprs/gsup_test_client.c
@@ -12,7 +12,7 @@
#include <openbsc/gprs_gsup_client.h>
#include <openbsc/debug.h>
-static struct gprs_gsup_client *g_gc;
+static struct gsup_client *g_gc;
/***********************************************************************
@@ -113,7 +113,7 @@
osmo_gsup_encode(msg, &gsup);
- return gprs_gsup_client_send(g_gc, msg);
+ return gsup_client_send(g_gc, msg);
}
/* allocate + generate + send Send-Auth-Info */
@@ -128,7 +128,7 @@
osmo_gsup_encode(msg, &gsup);
- return gprs_gsup_client_send(g_gc, msg);
+ return gsup_client_send(g_gc, msg);
}
int resp_isd(struct imsi_op *io)
@@ -143,7 +143,7 @@
imsi_op_release(io);
- return gprs_gsup_client_send(g_gc, msg);
+ return gsup_client_send(g_gc, msg);
}
/* receive an incoming GSUP message */
@@ -196,7 +196,7 @@
}
}
-static int gsupc_read_cb(struct gprs_gsup_client *gsupc, struct msgb *msg)
+static int gsupc_read_cb(struct gsup_client *gsupc, struct msgb *msg)
{
struct osmo_gsup_message gsup_msg = {0};
struct imsi_op *io;
@@ -281,8 +281,8 @@
osmo_init_logging(&gprs_log_info);
- g_gc = gprs_gsup_client_create(server_host, server_port,
- gsupc_read_cb, NULL);
+ g_gc = gsup_client_create(server_host, server_port, gsupc_read_cb,
+ NULL);
signal(SIGINT, sig_cb);