libosmocore 1.11.0.30-c17053.202507072026
Osmocom core library
Loading...
Searching...
No Matches
msgfile.c File Reference

Parse a simple file with messages, e.g used for USSD messages. More...

#include <osmocom/core/msgfile.h>
#include <osmocom/core/talloc.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>

Macros

#define _WITH_GETLINE
 

Functions

static struct osmo_config_entryalloc_entry (struct osmo_config_list *entries, const char *mcc, const char *mnc, const char *option, const char *text)
 
static struct osmo_config_listalloc_entries (void *ctx)
 
static void handle_line (struct osmo_config_list *entries, char *line)
 
struct osmo_config_listosmo_config_list_parse (void *ctx, const char *filename)
 

Detailed Description

Parse a simple file with messages, e.g used for USSD messages.

Macro Definition Documentation

◆ _WITH_GETLINE

#define _WITH_GETLINE

Function Documentation

◆ alloc_entries()

static struct osmo_config_list * alloc_entries ( void ctx)
static

◆ alloc_entry()

◆ handle_line()

static void handle_line ( struct osmo_config_list entries,
char line 
)
static

References alloc_entry(), len, and subsys.

Referenced by osmo_config_list_parse().

◆ osmo_config_list_parse()

struct osmo_config_list * osmo_config_list_parse ( void ctx,
const char filename 
)