value.c revision 49dbdb0186eb23d87d685b96eaefa9ec3c71d9b8
/*
* Copyright (C) 1996-2000 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*/
/* $Id: value.c,v 1.7 2000/06/21 22:01:26 tale Exp $ */
/* Principal Author: Ted Lemon */
#include <config.h>
omapi_value_create(omapi_value_t **d) {
return (ISC_R_NOMEMORY);
omapi_value_reference(d, new);
return (ISC_R_SUCCESS);
}
void
*r = h;
h->refcnt++;
}
void
if (--((*h)->refcnt) <= 0) {
omapi_string_dereference(&(*h)->name);
omapi_data_dereference(&(*h)->value);
}
*h = NULL;
}
{
if (result != ISC_R_SUCCESS)
return (result);
return (result);
}
{
if (result != ISC_R_SUCCESS)
return (result);
if (result == ISC_R_SUCCESS)
}
if (result != ISC_R_SUCCESS)
return (result);
}
{
if (result != ISC_R_SUCCESS)
return (result);
if (value != 0) {
if (result == ISC_R_SUCCESS)
}
if (result != ISC_R_SUCCESS)
return (result);
}
{
if (result != ISC_R_SUCCESS)
return (result);
if (result == ISC_R_SUCCESS)
value);
}
if (result != ISC_R_SUCCESS)
return (result);
}
{
if (result != ISC_R_SUCCESS)
return (result);
if (result != ISC_R_SUCCESS)
return (result);
}
int
}
/*
* WARNING: The region is valid only as long as the value pointer
* is valid. See omapi.h.
*/
void
/*
* Boy, the word "value" appears a lot. Almost like a Smurf song.
* La la la la la la, la la la la la.
*/
}