Neels Hofmeyr | 17518fe | 2017-06-20 04:35:06 +0200 | [diff] [blame] | 1 | /*! \file msgfile.h */ |
Holger Hans Peter Freyther | c87f266 | 2010-10-07 00:00:15 +0800 | [diff] [blame] | 2 | /* |
| 3 | * (C) 2010 by Holger Hans Peter Freyther |
| 4 | * (C) 2010 by On-Waves |
| 5 | * All Rights Reserved |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or |
| 10 | * (at your option) any later version. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License along |
| 18 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 19 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 20 | * |
| 21 | */ |
| 22 | |
Sylvain Munaut | 12ba778 | 2014-06-16 10:13:40 +0200 | [diff] [blame] | 23 | #pragma once |
Holger Hans Peter Freyther | c87f266 | 2010-10-07 00:00:15 +0800 | [diff] [blame] | 24 | |
Pablo Neira Ayuso | 1b4a42c | 2011-05-07 13:01:41 +0200 | [diff] [blame] | 25 | #include <osmocom/core/linuxlist.h> |
Holger Hans Peter Freyther | c87f266 | 2010-10-07 00:00:15 +0800 | [diff] [blame] | 26 | |
| 27 | /** |
| 28 | * One message in the list. |
| 29 | */ |
Pablo Neira Ayuso | 1b4a42c | 2011-05-07 13:01:41 +0200 | [diff] [blame] | 30 | struct osmo_config_entry { |
Holger Hans Peter Freyther | c87f266 | 2010-10-07 00:00:15 +0800 | [diff] [blame] | 31 | struct llist_head list; |
| 32 | |
| 33 | /* number for everyone to use */ |
| 34 | int nr; |
| 35 | |
| 36 | /* data from the file */ |
| 37 | char *mcc; |
| 38 | char *mnc; |
| 39 | char *option; |
| 40 | char *text; |
| 41 | }; |
| 42 | |
Pablo Neira Ayuso | 1b4a42c | 2011-05-07 13:01:41 +0200 | [diff] [blame] | 43 | struct osmo_config_list { |
Holger Hans Peter Freyther | c87f266 | 2010-10-07 00:00:15 +0800 | [diff] [blame] | 44 | struct llist_head entry; |
| 45 | }; |
| 46 | |
Pablo Neira Ayuso | 1b4a42c | 2011-05-07 13:01:41 +0200 | [diff] [blame] | 47 | struct osmo_config_list* osmo_config_list_parse(void *ctx, const char *filename); |