properties.c File Reference

Functions for work with properties. More...

#include <string.h>
#include <pthread.h>
#include "properties.h"
#include "utils/list.h"

Functions

int update_property_value_data (prop_val_t *prop_value, void *new_data)
bool is_prop_values_equal (prop_val_t *a, prop_val_t *b)
 Checks equality of given properties values.
bool is_prop_names_equal (prop_val_t *a, prop_val_t *b)
 Checks equality of properties names of given properties values.


Detailed Description

Functions for work with properties.

Alaxandr A. Lomov <lomov@cs.karelia.ru>

Date:
11 December, 2010

LICENSE

PetrSU KP library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

PetrSU KP library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PetrSU KP library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

DESCRIPTION

Contains functions for work with properties. This file is part of PetrSU KP library.

Function Documentation

bool is_prop_names_equal ( prop_val_t *  a,
prop_val_t *  b 
)

Checks equality of properties names of given properties values.

Parameters:
a one property value.
b another property value.
Returns:
true if equals or false otherwise.

bool is_prop_values_equal ( prop_val_t *  a,
prop_val_t *  b 
)

Checks equality of given properties values.

Parameters:
a one property value.
b another property value.
Returns:
true if equals or false otherwise.

int update_property_value_data ( prop_val_t *  prop_value,
void *  new_data 
)


doxygen