blob: cfa95905d09c84df972e0a1abd3c7cbe56cde508 [file] [log] [blame]
Neels Hofmeyr17518fe2017-06-20 04:35:06 +02001/*! \file msgfile.h */
Holger Hans Peter Freytherc87f2662010-10-07 00:00:15 +08002/*
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 Freytherc87f2662010-10-07 00:00:15 +080017 */
18
Sylvain Munaut12ba7782014-06-16 10:13:40 +020019#pragma once
Holger Hans Peter Freytherc87f2662010-10-07 00:00:15 +080020
Pablo Neira Ayuso1b4a42c2011-05-07 13:01:41 +020021#include <osmocom/core/linuxlist.h>
Holger Hans Peter Freytherc87f2662010-10-07 00:00:15 +080022
23/**
24 * One message in the list.
25 */
Pablo Neira Ayuso1b4a42c2011-05-07 13:01:41 +020026struct osmo_config_entry {
Holger Hans Peter Freytherc87f2662010-10-07 00:00:15 +080027 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 Ayuso1b4a42c2011-05-07 13:01:41 +020039struct osmo_config_list {
Holger Hans Peter Freytherc87f2662010-10-07 00:00:15 +080040 struct llist_head entry;
41};
42
Pablo Neira Ayuso1b4a42c2011-05-07 13:01:41 +020043struct osmo_config_list* osmo_config_list_parse(void *ctx, const char *filename);