ss_subscribe.c File Reference

Functions for work with subscribe and subscribe container. More...

#include <stdlib.h>
#include <pthread.h>
#include "ss_subscribe.h"
#include "structures.h"
#include "utils/check_func.h"
#include "kpi_low.h"
#include "ss_func.h"
#include "utils/util_func.h"
#include "utils/kp_debug.h"
#include "classes.h"
#include <string.h>
#include <bits/waitstatus.h>
#include <unistd.h>

Functions

subscription_data_t * new_subscription_data (individual_t *ind, list_t *properties)
 New data for subscription container.
void free_subscription_data (subscription_data_t *data, bool free_prop_list)
 Free subscription container data.


Detailed Description

Functions for work with subscribe and subscribe container.

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

Date:
05 DEcember, 2009

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

ss_subscribe.c - functions for work with subscribtions with SS. This file is part of PetrSU KP Library.

Function Documentation

void free_subscription_data ( subscription_data_t *  data,
bool  free_prop_list 
)

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:
data subscription data for free.
free_prop_list if it equals true - list structure will be freed, without properties.

subscription_data_t* new_subscription_data ( individual_t *  ind,
list_t *  properties 
)

New data for subscription container.

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

Parameters:
ind individual.
properties list of properties for subscribe or NULL for all properties.
Returns:
new subscription data on success or NULL otherwise.


doxygen