summaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-bsc/osmo_bsc_ctrl.c
diff options
context:
space:
mode:
authorDaniel Willmann <daniel@totalueberwachung.de>2012-06-04 13:56:29 +0100
committerDaniel Willmann <daniel@totalueberwachung.de>2012-06-04 13:58:37 +0100
commit37df8bfa0b7fd71982b19f751fd5b8373710e4ef (patch)
treee30fc8f81d46557fada5aa323dae66df927e584a /openbsc/src/osmo-bsc/osmo_bsc_ctrl.c
parentc8455bc6f3bdd5256e8b7e3c89b8ab0b3c197743 (diff)
osmo-bsc: Add VTY command to set the locationdaniel/ow-vty-cmds
Diffstat (limited to 'openbsc/src/osmo-bsc/osmo_bsc_ctrl.c')
-rw-r--r--openbsc/src/osmo-bsc/osmo_bsc_ctrl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_ctrl.c b/openbsc/src/osmo-bsc/osmo_bsc_ctrl.c
index 13ddbeec4..1903ea1d2 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_ctrl.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_ctrl.c
@@ -274,7 +274,7 @@ static int get_bts_loc(struct ctrl_cmd *cmd, void *data)
return CTRL_CMD_REPLY;
}
-static int set_bts_loc(struct ctrl_cmd *cmd, void *data)
+int osmo_bsc_set_bts_loc(struct ctrl_cmd *cmd, void *data)
{
char *saveptr, *lat, *lon, *height, *tstamp, *valid, *tmp;
struct bts_location *curloc, *lastloc;
@@ -334,6 +334,11 @@ oom:
return CTRL_CMD_ERROR;
}
+static int set_bts_loc(struct ctrl_cmd *cmd, void *data)
+{
+ return osmo_bsc_set_bts_loc(cmd, data);
+}
+
static int verify_bts_loc(struct ctrl_cmd *cmd, const char *value, void *data)
{
char *saveptr, *latstr, *lonstr, *heightstr, *tstampstr, *validstr, *tmp;