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 | * |
Holger Hans Peter Freyther | c87f266 | 2010-10-07 00:00:15 +0800 | [diff] [blame] | 17 | */ |
| 18 | |
Sylvain Munaut | 12ba778 | 2014-06-16 10:13:40 +0200 | [diff] [blame] | 19 | #pragma once |
Holger Hans Peter Freyther | c87f266 | 2010-10-07 00:00:15 +0800 | [diff] [blame] | 20 | |
Pablo Neira Ayuso | 1b4a42c | 2011-05-07 13:01:41 +0200 | [diff] [blame] | 21 | #include <osmocom/core/linuxlist.h> |
Holger Hans Peter Freyther | c87f266 | 2010-10-07 00:00:15 +0800 | [diff] [blame] | 22 | |
| 23 | /** |
| 24 | * One message in the list. |
| 25 | */ |
Pablo Neira Ayuso | 1b4a42c | 2011-05-07 13:01:41 +0200 | [diff] [blame] | 26 | struct osmo_config_entry { |
Holger Hans Peter Freyther | c87f266 | 2010-10-07 00:00:15 +0800 | [diff] [blame] | 27 | struct llist_head list; |
| 28 | |
| 29 | /* number for everyone to use */ |
| 30 | int nr; |
| 31 | |
| 32 | /* data from the file */ |
| 33 | char *mcc; |
| 34 | char *mnc; |
| 35 | char *option; |
| 36 | char *text; |
| 37 | }; |
| 38 | |
Pablo Neira Ayuso | 1b4a42c | 2011-05-07 13:01:41 +0200 | [diff] [blame] | 39 | struct osmo_config_list { |
Holger Hans Peter Freyther | c87f266 | 2010-10-07 00:00:15 +0800 | [diff] [blame] | 40 | struct llist_head entry; |
| 41 | }; |
| 42 | |
Pablo Neira Ayuso | 1b4a42c | 2011-05-07 13:01:41 +0200 | [diff] [blame] | 43 | struct osmo_config_list* osmo_config_list_parse(void *ctx, const char *filename); |