Internalfunctions - SmartSlog KP Library
Data Structures | Macros | Typedefs | Functions
property_changes.h File Reference

Interface for changes of the property. More...

#include "structures.h"

Go to the source code of this file.

Data Structures

struct  property_changes_data_s
 Struct contains information about changes of a property. More...

Macros

#define SSLOG_EXTERN

Typedefs

typedef struct
property_changes_data_s 
property_changes_data_t

Functions

property_changes_data_tnew_property_changes (property_t *property, individual_t *owner, const void *old_value, const void *new_value, action_type action)
 New data for subscription container.
void free_property_changes (property_changes_data_t *changes)
 Free subscription container data.

Detailed Description

Interface for changes of the property.

Aleksandr A. Lomov lomov.nosp@m.@cs..nosp@m.karel.nosp@m.ia.r.nosp@m.u

Date:
4/26/12 7:06 PM

LICENSE

SmartSlog 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.

SmartSlog 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 SmartSlog KP Library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

DESCRIPTION

property_changes.h - interface for changes of the property. This file is part of SmartSlog KP Library.

Copyright (C) 2012 - SmartSlog Team (Aleksandr A. Lomov). All rights reserved.


Macro Definition Documentation

#define SSLOG_EXTERN

Typedef Documentation


Function Documentation

void free_property_changes ( property_changes_data_t changes)

Free subscription container data.

Free subscription data structure, individual and properties not freed. You can free properties list (only list structure will be freed, not properties), using parameter free_prop_list.

Parameters:
datasubscription data for free.
free_prop_listif it equals true - list structure will be freed, without properties.
property_changes_data_t* new_property_changes ( property_t property,
individual_t owner,
const void *  old_value,
const void *  new_value,
action_type  action 
)

New data for subscription container.

Subscription data contains individual and list of properties or NULL for all properties of individual.

Parameters:
indindividual.
propertieslist of properties for subscribe or NULL for all properties.
Returns:
new subscription data on success or NULL otherwise.