blob: cab97b2271a33774aa16f728c8331b992f7c5f0c [file] [log] [blame]
Holger Hans Peter Freytherc87f2662010-10-07 00:00:15 +08001/*
2 * (C) 2010 by Holger Hans Peter Freyther
3 * (C) 2010 by On-Waves
4 * All Rights Reserved
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 */
21
Sylvain Munaut12ba7782014-06-16 10:13:40 +020022#pragma once
Holger Hans Peter Freytherc87f2662010-10-07 00:00:15 +080023
Pablo Neira Ayuso1b4a42c2011-05-07 13:01:41 +020024#include <osmocom/core/linuxlist.h>
Holger Hans Peter Freytherc87f2662010-10-07 00:00:15 +080025
26/**
27 * One message in the list.
28 */
Pablo Neira Ayuso1b4a42c2011-05-07 13:01:41 +020029struct osmo_config_entry {
Holger Hans Peter Freytherc87f2662010-10-07 00:00:15 +080030 struct llist_head list;
31
32 /* number for everyone to use */
33 int nr;
34
35 /* data from the file */
36 char *mcc;
37 char *mnc;
38 char *option;
39 char *text;
40};
41
Pablo Neira Ayuso1b4a42c2011-05-07 13:01:41 +020042struct osmo_config_list {
Holger Hans Peter Freytherc87f2662010-10-07 00:00:15 +080043 struct llist_head entry;
44};
45
Pablo Neira Ayuso1b4a42c2011-05-07 13:01:41 +020046struct osmo_config_list* osmo_config_list_parse(void *ctx, const char *filename);