/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#include <stdlib.h>
#include <stdio.h>
#include <liblist.h>
#include <Python.h>
static int copyto_liblist_cb(libnode_t *, void *, void *);
liblist_alloc(void)
{
liblist_t *n;
(void) PyErr_NoMemory();
return (NULL);
}
return (n);
}
void
{
if (!lst)
return;
while (n) {
liblist_free(n->verlist);
temp = n;
n = n->next;
}
}
{
if (!lst)
return (NULL);
(void) PyErr_NoMemory();
return (NULL);
}
} else {
}
return (n);
}
int
{
if (!lst)
return (0);
while (n) {
return (-1);
n = n->next;
}
return (0);
}
static liblist_t *
{
if (!lst)
return (NULL);
if (!(nl = liblist_alloc()))
return (NULL);
return (NULL);
return (nl);
}
/* callbacks */
/*ARGSUSED2*/
int
{
while (vn) {
return (-1);
break;
}
}
return (0);
}
/*ARGSUSED2*/
static int
{
return (-1);
return (0);
}