libosmocore
1.5.1
Osmocom core library
msgfile.h
Go to the documentation of this file.
1
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
23
#pragma once
24
25
#include <
osmocom/core/linuxlist.h
>
26
30
struct
osmo_config_entry
{
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
43
struct
osmo_config_list
{
44
struct
llist_head
entry
;
45
};
46
47
struct
osmo_config_list
*
osmo_config_list_parse
(
void
*ctx,
const
char
*filename);
osmo_config_list_parse
struct osmo_config_list * osmo_config_list_parse(void *ctx, const char *filename)
Definition:
msgfile.c:101
osmo_config_entry::list
struct llist_head list
Definition:
msgfile.h:31
osmo_config_entry::mnc
char * mnc
Definition:
msgfile.h:38
osmo_config_list
Definition:
msgfile.h:43
osmo_config_entry
One message in the list.
Definition:
msgfile.h:30
llist_head
(double) linked list header structure
Definition:
linuxlist.h:46
osmo_config_entry::nr
int nr
Definition:
msgfile.h:34
osmo_config_list::entry
struct llist_head entry
Definition:
msgfile.h:44
osmo_config_entry::mcc
char * mcc
Definition:
msgfile.h:37
osmo_config_entry::option
char * option
Definition:
msgfile.h:39
osmo_config_entry::text
char * text
Definition:
msgfile.h:40
linuxlist.h
include
osmocom
core
msgfile.h
Generated by
1.8.18