src/stringpair.h
changeset 281 9f7691853773
parent 104 709edbd8f9c1
child 786 cd0c6d03e539
     1.1 --- a/src/stringpair.h	Sun May 24 11:06:29 2015 +0200
     1.2 +++ b/src/stringpair.h	Mon May 25 23:31:17 2015 +0200
     1.3 @@ -56,17 +56,15 @@
     1.4  // new_stringpair_list() - allocate a new stringpair_list
     1.5  //
     1.6  //  parameters:
     1.7 -//      value (in)              initial value as C string or NULL for empty
     1.8 -//                              list
     1.9 +//      value (in)              initial value
    1.10  //
    1.11  //  return value:
    1.12  //      pointer to stringpair_list_t object or NULL if out of memory
    1.13  //
    1.14  //  caveat:
    1.15 -//      the value is being copied before being added to the list
    1.16 -//      the original value is still being owned by the caller
    1.17 +//      the ownership of the value goes to the stringpair_list
    1.18  
    1.19 -DYNAMIC_API stringpair_list_t *new_stringpair_list(const stringpair_t *value);
    1.20 +DYNAMIC_API stringpair_list_t *new_stringpair_list(stringpair_t *value);
    1.21  
    1.22  
    1.23  // stringpair_list_dup() - duplicate a stringpair_list
    1.24 @@ -87,18 +85,17 @@
    1.25  //  parameters:
    1.26  //      stringpair_list (in)    stringpair_list struct or NULL to create a new
    1.27  //                              one
    1.28 -//      value (in)              value as C string
    1.29 +//      value (in)              stringpair to add
    1.30  //
    1.31  //  return value:
    1.32  //      pointer to last element in stringpair_list or NULL if out of memory
    1.33  //
    1.34  //  caveat:
    1.35 -//      the value is being copied before being added to the list
    1.36 -//      the original value is still being owned by the caller
    1.37 +//      the ownership of the value goes to the stringpair_list
    1.38  
    1.39  DYNAMIC_API stringpair_list_t *stringpair_list_add(
    1.40          stringpair_list_t *stringpair_list,
    1.41 -        const stringpair_t *value
    1.42 +        stringpair_t *value
    1.43      );
    1.44  
    1.45