#include "strlist.h"
#include "util.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Go to the source code of this file.
|
static struct rb_node * | strlist__node_new (struct rblist *rblist, const void *entry) |
|
static void | str_node__delete (struct str_node *snode, bool dupstr) |
|
static void | strlist__node_delete (struct rblist *rblist, struct rb_node *rb_node) |
|
static int | strlist__node_cmp (struct rb_node *rb_node, const void *entry) |
|
int | strlist__add (struct strlist *slist, const char *new_entry) |
|
int | strlist__load (struct strlist *slist, const char *filename) |
|
void | strlist__remove (struct strlist *slist, struct str_node *snode) |
|
struct str_node * | strlist__find (struct strlist *slist, const char *entry) |
|
static int | strlist__parse_list_entry (struct strlist *slist, const char *s, const char *subst_dir) |
|
static int | strlist__parse_list (struct strlist *slist, const char *s, const char *subst_dir) |
|
struct strlist * | strlist__new (const char *list, const struct strlist_config *config) |
|
void | strlist__delete (struct strlist *slist) |
|
struct str_node * | strlist__entry (const struct strlist *slist, unsigned int idx) |
|
◆ str_node__delete()
static void str_node__delete |
( |
struct str_node * |
snode, |
|
|
bool |
dupstr |
|
) |
| |
|
static |
◆ strlist__add()
int strlist__add |
( |
struct strlist * |
slist, |
|
|
const char * |
new_entry |
|
) |
| |
◆ strlist__delete()
void strlist__delete |
( |
struct strlist * |
slist | ) |
|
◆ strlist__entry()
struct str_node* strlist__entry |
( |
const struct strlist * |
slist, |
|
|
unsigned int |
idx |
|
) |
| |
◆ strlist__find()
struct str_node* strlist__find |
( |
struct strlist * |
slist, |
|
|
const char * |
entry |
|
) |
| |
◆ strlist__load()
int strlist__load |
( |
struct strlist * |
slist, |
|
|
const char * |
filename |
|
) |
| |
◆ strlist__new()
◆ strlist__node_cmp()
static int strlist__node_cmp |
( |
struct rb_node * |
rb_node, |
|
|
const void * |
entry |
|
) |
| |
|
static |
◆ strlist__node_delete()
static void strlist__node_delete |
( |
struct rblist * |
rblist, |
|
|
struct rb_node * |
rb_node |
|
) |
| |
|
static |
◆ strlist__node_new()
static struct rb_node* strlist__node_new |
( |
struct rblist * |
rblist, |
|
|
const void * |
entry |
|
) |
| |
|
static |
◆ strlist__parse_list()
static int strlist__parse_list |
( |
struct strlist * |
slist, |
|
|
const char * |
s, |
|
|
const char * |
subst_dir |
|
) |
| |
|
static |
◆ strlist__parse_list_entry()
static int strlist__parse_list_entry |
( |
struct strlist * |
slist, |
|
|
const char * |
s, |
|
|
const char * |
subst_dir |
|
) |
| |
|
static |
◆ strlist__remove()