X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/5d0998a0b68c5325d40cc3dea2326939b178a1fa..031e275e3ae18ddc208b2c05189cec78e9d6e76e:/lib/kvp.h?ds=sidebyside diff --git a/lib/kvp.h b/lib/kvp.h index 745304b..0a7e478 100644 --- a/lib/kvp.h +++ b/lib/kvp.h @@ -25,10 +25,22 @@ struct dynstr; struct sink; +/** @brief Linked list of key-value pairs */ struct kvp { - struct kvp *next; /* next entry */ - const char *name; /* name */ - const char *value; /* value */ + /** @brief Next entry */ + struct kvp *next; + + /** @brief Name + * + * Might not be unique. Must not be null. + */ + const char *name; + + /** @brief Value + * + * Must not be null. + */ + const char *value; }; struct kvp *kvp_urldecode(const char *ptr, size_t n);