1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/lib/jar/jar-ds.c Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,36 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "jar.h" 1.9 + 1.10 +/* These are old DS_* routines renamed to ZZ_* */ 1.11 +ZZList * 1.12 +ZZ_NewList(void) 1.13 +{ 1.14 + ZZList *list = (ZZList *) PORT_ZAlloc (sizeof (ZZList)); 1.15 + if (list) 1.16 + ZZ_InitList (list); 1.17 + return list; 1.18 +} 1.19 + 1.20 +ZZLink * 1.21 +ZZ_NewLink(JAR_Item *thing) 1.22 +{ 1.23 + ZZLink *link = (ZZLink *) PORT_ZAlloc (sizeof (ZZLink)); 1.24 + if (link) 1.25 + link->thing = thing; 1.26 + return link; 1.27 +} 1.28 + 1.29 +void 1.30 +ZZ_DestroyLink(ZZLink *link) 1.31 +{ 1.32 + PORT_Free(link); 1.33 +} 1.34 + 1.35 +void 1.36 +ZZ_DestroyList (ZZList *list) 1.37 +{ 1.38 + PORT_Free(list); 1.39 +}