FilterSpec.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <dlfcn.h>
#include <pvm3.h>
#include "FilterSpec.h"
#include "Messages.h"

Include dependency graph for FilterSpec.c:

Go to the source code of this file.

Functions

FilterSpeccreateFilterSpec (char *filterName, char *libname)
 Constructor.
void destroyFilterSpec (FilterSpec *f)
 Destroyer.
int addHostToFilter (FilterSpec *fs, char *hostName)
 These functions add hosts to the filter.
int addHostsToFilter (FilterSpec *fs, char *hostName, int qty)
 The second adds the given host qty times.
int addInputToFilter (FilterSpec *fs, StreamSpec *ss)
 Adds a stream to the inputs of a filter.
int addOutputToFilter (FilterSpec *fs, StreamSpec *ss)
 Adds a stream to the outputs of a filter.
int fsSpawnInstances (FilterSpec *fs, char *command, char **argvSpawn)
 Spawn all instances of the filter.


Function Documentation

int addHostsToFilter FilterSpec fs,
char *  hostName,
int  qty
 

The second adds the given host qty times.

Definition at line 46 of file FilterSpec.c.

References addHostToFilter().

Here is the call graph for this function:

int addHostToFilter FilterSpec fs,
char *  hostName
 

These functions add hosts to the filter.

Definition at line 33 of file FilterSpec.c.

References _filter_spec_::filterPlacement, FilterPlacement::hosts, MAX_HNAME_LENGTH, MAXINSTANCES, and FilterPlacement::numInstances.

Referenced by abreTag(), addHostsToFilter(), and fechaTag().

int addInputToFilter FilterSpec fs,
StreamSpec ss
 

Adds a stream to the inputs of a filter.

Definition at line 57 of file FilterSpec.c.

References _filter_spec_::inputs, MAXINPSTREAMS, and _filter_spec_::numInputs.

int addOutputToFilter FilterSpec fs,
StreamSpec ss
 

Adds a stream to the outputs of a filter.

Definition at line 65 of file FilterSpec.c.

References MAXOUTSTREAMS, _filter_spec_::numInputs, _filter_spec_::numOutputs, and _filter_spec_::outputs.

FilterSpec* createFilterSpec char *  filterName,
char *  libname
 

Constructor.

Definition at line 13 of file FilterSpec.c.

References _filter_spec_::filterPlacement, FilterPlacement::hosts, MAX_HNAME_LENGTH, MAXINSTANCES, and FilterPlacement::numInstances.

Referenced by abreTag().

void destroyFilterSpec FilterSpec f  ) 
 

Destroyer.

Definition at line 25 of file FilterSpec.c.

Referenced by destroyLayout().

int fsSpawnInstances FilterSpec fs,
char *  command,
char **  argvSpawn
 

Spawn all instances of the filter.

used to notify a task exit, from pvm, dont change this

used to notify host delete, crash, dont change this

Definition at line 75 of file FilterSpec.c.

References _filter_spec_::filterPlacement, FilterPlacement::hosts, MAX_HNAME_LENGTH, MSGT_HDEL, MSGT_TEXIT, _filter_spec_::name, FilterPlacement::numInstances, and FilterPlacement::tids.


Generated on Tue Jan 17 19:23:26 2006 for Void by  doxygen 1.4.6