#include <stdlib.h>
#include <malloc.h>
#include <stdio.h>
#include <string.h>
#include "lcmaps_log.h"
#include "_lcmaps_db_read.h"
Go to the source code of this file.
Defines | |
#define | PAIR_SEP_CHARS "," |
#define | VARVAL_SEP_CHARS "=" |
#define | PAIR_TERMINATOR_CHARS PAIR_SEP_CHARS WHITESPACE_CHARS |
#define | VARVAL_TERMINATOR_CHARS VARVAL_SEP_CHARS WHITESPACE_CHARS |
Functions | |
int | lcmaps_db_read_entries (FILE *) |
Read db entries from stream and fill a lsit of db entries. More... | |
int | lcmaps_db_parse_line (char *, lcmaps_db_entry_t **) |
Parses database line and fills database structure. More... | |
int | lcmaps_db_parse_pair (char *, char **, char **) |
Parses a database variable-value pair and returns the variable name and its value. More... | |
int | lcmaps_db_parse_string (char **) |
Takes a string and removes prepending and trailing spaces and quotes (unless escaped). More... | |
Variables | |
lcmaps_db_entry_t * | lcmaps_db_list = NULL |
Definition in file lcmaps_db_read.c.
|
Characters separating variable-value pairs in the lcmaps database file Definition at line 40 of file lcmaps_db_read.c. Referenced by lcmaps_db_parse_line. |
|
Characters that terminate pairs in the lcmaps database file. This is a combination of whitespace and separators. Definition at line 52 of file lcmaps_db_read.c. |
|
Characters separating variables from values Definition at line 42 of file lcmaps_db_read.c. Referenced by lcmaps_db_parse_pair. |
|
Characters that terminate variables and values in the lcmaps database file. This is a combination of whitespace and separators. Definition at line 57 of file lcmaps_db_read.c. |
|
Parses database line and fills database structure.
Definition at line 261 of file lcmaps_db_read.c. References lcmaps_db_parse_pair, PAIR_SEP_CHARS, lcmaps_db_entry_s::pluginargs, and lcmaps_db_entry_s::pluginname. Referenced by lcmaps_db_read_entries. |
|
Parses a database variable-value pair and returns the variable name and its value.
Definition at line 397 of file lcmaps_db_read.c. References lcmaps_db_parse_string, and VARVAL_SEP_CHARS. Referenced by lcmaps_db_parse_line. |
|
Takes a string and removes prepending and trailing spaces and quotes (unless escaped).
Definition at line 494 of file lcmaps_db_read.c. Referenced by lcmaps_db_parse_pair. |
|
Read db entries from stream and fill a lsit of db entries.
Definition at line 132 of file lcmaps_db_read.c. References lcmaps_db_fill_entry, lcmaps_db_parse_line, lcmaps_db_entry_s::pluginargs, and lcmaps_db_entry_s::pluginname. |
|
list of database entries Definition at line 74 of file lcmaps_db_read.c. |