aboutsummaryrefslogtreecommitdiffstats
path: root/include/strlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/strlist.h')
-rw-r--r--include/strlist.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/strlist.h b/include/strlist.h
index 610aad4d..2c80d0be 100644
--- a/include/strlist.h
+++ b/include/strlist.h
@@ -46,6 +46,7 @@ struct strlist_entry {
struct strlist_entry *next;
size_t offset;
size_t size;
+ intorptr pvt;
char str[1];
};
@@ -61,6 +62,12 @@ strlist_head(const struct strlist *list)
{
return list ? list->head : NULL;
}
+static inline struct strlist_entry *strlist_tail(struct strlist *list)
+{
+ if (!list || !list->head)
+ return NULL;
+ return container_of(list->tailp, struct strlist_entry, next);
+}
static inline size_t strlist_count(const struct strlist *list)
{
return list ? list->nstr : 0;