blob: 1849a8932445487a146606a624d316e774cc1258 [file] [log] [blame]
Neels Hofmeyrf28f1ef2018-04-20 15:53:53 +02001#pragma once
Harald Welteb4771a62012-11-11 10:58:51 +01002
3#include <stdint.h>
4
Neels Hofmeyrc0164792017-09-04 15:15:32 +02005#include <osmocom/bsc/meas_rep.h>
Harald Welteb4771a62012-11-11 10:58:51 +01006
7struct meas_feed_hdr {
8 uint8_t msg_type;
9 uint8_t reserved;
10 uint16_t version;
11};
12
13struct meas_feed_meas {
14 struct meas_feed_hdr hdr;
15 char imsi[15+1];
16 char name[31+1];
17 char scenario[31+1];
18 struct gsm_meas_rep mr;
Alexander Chemeris08c508f2015-08-20 20:48:39 -040019 /* The logical channel type, enum gsm_chan_t */
20 uint8_t lchan_type;
21 /* The physical channel type, enum gsm_phys_chan_config */
22 uint8_t pchan_type;
23 /* number of ths BTS in network */
24 uint8_t bts_nr;
25 /* number of this TRX in the BTS */
26 uint8_t trx_nr;
27 /* number of this timeslot at the TRX */
28 uint8_t ts_nr;
29 /* The logical subslot number in the TS */
30 uint8_t ss_nr;
Harald Welteb4771a62012-11-11 10:58:51 +010031};
32
33enum meas_feed_msgtype {
34 MEAS_FEED_MEAS = 0,
35};
36
Alexander Chemeris08c508f2015-08-20 20:48:39 -040037#define MEAS_FEED_VERSION 1
Harald Welteb4771a62012-11-11 10:58:51 +010038
Neels Hofmeyrf28f1ef2018-04-20 15:53:53 +020039int meas_feed_cfg_set(const char *dst_host, uint16_t dst_port);
40void meas_feed_scenario_set(const char *name);
Harald Welteb4771a62012-11-11 10:58:51 +010041
Neels Hofmeyrf28f1ef2018-04-20 15:53:53 +020042void meas_feed_cfg_get(char **host, uint16_t *port);
43const char *meas_feed_scenario_get(void);