MINOR: lists: Implement function to convert list => mt_list and mt_list => list
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 11 Mar 2020 13:57:52 +0000 (14:57 +0100)
committerOlivier Houchard <cognet@ci0.org>
Wed, 11 Mar 2020 16:10:40 +0000 (17:10 +0100)
commit751e5e21a9b9228dc035bd4c65fe65a043b31f77
treeeedfc46c5da42b55bf66680e3662e9f1e705bd18
parent49983a9fe11840e0fc14a96e4097ad56cc2d06c8
MINOR: lists: Implement function to convert list => mt_list and mt_list => list

Implement mt_list_to_list() and list_to_mt_list(), to be able to convert
from a struct list to a struct mt_list, and vice versa.
This is normally of no use, except for struct connection's list field, that
can go in either a struct list or a struct mt_list.
include/common/mini-clist.h