libosmocore
1.10.0.58-6cd7a
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
*/
18
19
#pragma once
20
21
#include <
osmocom/core/linuxlist.h
>
22
26
struct
osmo_config_entry
{
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
39
struct
osmo_config_list
{
40
struct
llist_head
entry
;
41
};
42
43
struct
osmo_config_list
*
osmo_config_list_parse
(
void
*ctx,
const
char
*filename);
linuxlist.h
Simple doubly linked list implementation.
osmo_config_list_parse
struct osmo_config_list * osmo_config_list_parse(void *ctx, const char *filename)
Definition:
msgfile.c:97
llist_head
(double) linked list header structure
Definition:
linuxlist.h:46
osmo_config_entry
One message in the list.
Definition:
msgfile.h:26
osmo_config_entry::option
char * option
Definition:
msgfile.h:35
osmo_config_entry::list
struct llist_head list
Definition:
msgfile.h:27
osmo_config_entry::mnc
char * mnc
Definition:
msgfile.h:34
osmo_config_entry::nr
int nr
Definition:
msgfile.h:30
osmo_config_entry::text
char * text
Definition:
msgfile.h:36
osmo_config_entry::mcc
char * mcc
Definition:
msgfile.h:33
osmo_config_list
Definition:
msgfile.h:39
osmo_config_list::entry
struct llist_head entry
Definition:
msgfile.h:40
include
osmocom
core
msgfile.h
Generated by
1.9.4