TSP: The Transport Sample Protocol



Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

gdispmain.c File Reference

#include <unistd.h>
#include <stdio.h>
#include <assert.h>
#include "interface.h"
#include "page.h"

Go to the source code of this file.

Functions

void init_tsp_index (void)
 Find the tsp provider global index for each requested variable, and store in pages array.

int get_nbvars_per_index (int index)
int get_index2vars_size (void)
 Find the index2vars array size, that is the max of all provider global index.

void init_index2vars (void)
 Find the tsp provider global index for each requested variable, and store in pages array.


Variables

TSP_provider_t tsp = 0
 The TSP object.

display_page * pages
 The displayed pages.

variable *** index2vars
 For each provider global index this array gives us a list of var that must be refreshed with this value when the TSP provider send them to us.


Detailed Description

Header
/cvsroot/tsp/tsp/src/consumers/gdisp/gdispmain.c,v 1.5 2004/10/05 13:06:17 tractobob Exp

-----------------------------------------------------------------------

Project : GDISP / TSP

Component : GDISP

-----------------------------------------------------------------------

Purpose : main functions for GDISP program

-----------------------------------------------------------------------

Definition in file gdispmain.c.


Function Documentation

int get_index2vars_size void   ) 
 

Find the index2vars array size, that is the max of all provider global index.

Returns:
size of index2var array

Definition at line 109 of file gdispmain.c.

References tsp, and TSP_consumer_get_requested_sample().

Referenced by init_index2vars().

int get_nbvars_per_index int  index  ) 
 

Parameters:
a provider global index
Returns:
total number of vars for the given provider global index

Definition at line 81 of file gdispmain.c.

Referenced by init_index2vars().

void init_index2vars void   ) 
 

Find the tsp provider global index for each requested variable, and store in pages array.

Definition at line 137 of file gdispmain.c.

References get_index2vars_size(), get_nbvars_per_index(), index2vars, and init_tsp_index().

void init_tsp_index void   ) 
 

Find the tsp provider global index for each requested variable, and store in pages array.

Definition at line 50 of file gdispmain.c.

References tsp, and TSP_consumer_get_requested_sample().

Referenced by init_index2vars().


Variable Documentation

variable*** index2vars
 

For each provider global index this array gives us a list of var that must be refreshed with this value when the TSP provider send them to us.

Definition at line 43 of file gdispmain.c.

Referenced by init_index2vars().

display_page* pages
 

The displayed pages.

Definition at line 36 of file gdispmain.c.

TSP_provider_t tsp = 0
 

The TSP object.

Definition at line 31 of file gdispmain.c.

Referenced by get_index2vars_size(), and init_tsp_index().

Framework Home Page.


Beware !! TSP wave is coming...