Files
osmo-smlc/include/osmocom/smlc/cell_locations.h
Pau Espin Pedrol 9b3ab7372b cell_locations.h: Fix includes
No sigtran header is needed as a dependecy in that header.
struct gsm0808_cell_id is defined in gsm0808_utils.h.

Change-Id: Iceedd7a8c2e050e6631c5f471d2eb71ab8ee2432
2025-07-14 19:46:28 +02:00

46 lines
1.2 KiB
C

/* OsmoSMLC cell locations configuration */
/*
* (C) 2020 by sysmocom - s.f.m.c. GmbH <info@sysmocom.de>
* All Rights Reserved
*
* Author: Neels Hofmeyr <neels@hofmeyr.de>
*
* SPDX-License-Identifier: GPL-2.0+
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#pragma once
#include <stdint.h>
#include <osmocom/core/linuxlist.h>
#include <osmocom/gsm/gsm0808_utils.h>
struct osmo_gad;
struct cell_location {
struct llist_head entry;
struct gsm0808_cell_id cell_id;
/*! latitude in micro degrees (degrees * 1e6) */
int32_t lat;
/*! longitude in micro degrees (degrees * 1e6) */
int32_t lon;
};
int cell_location_from_ta(struct osmo_gad *location_estimate,
const struct gsm0808_cell_id *cell_id,
uint8_t ta);
int cell_locations_vty_init();