libosmocore  1.9.0.169-ada8.202403032026
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 
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 
40  struct llist_head entry;
41 };
42 
43 struct osmo_config_list* osmo_config_list_parse(void *ctx, const char *filename);
Simple doubly linked list implementation.
struct osmo_config_list * osmo_config_list_parse(void *ctx, const char *filename)
Definition: msgfile.c:97
(double) linked list header structure
Definition: linuxlist.h:46
One message in the list.
Definition: msgfile.h:26
char * option
Definition: msgfile.h:35
struct llist_head list
Definition: msgfile.h:27
char * mnc
Definition: msgfile.h:34
int nr
Definition: msgfile.h:30
char * text
Definition: msgfile.h:36
char * mcc
Definition: msgfile.h:33
Definition: msgfile.h:39
struct llist_head entry
Definition: msgfile.h:40