Y-lib
Loadrunner libraries
Data Fields
y_flow Struct Reference

Descriptor for one single flow in a flow list. More...

Data Fields

int number
 A number. Not used by ylib itself, use it however you want. More...
 
char * name
 The name of the flow. More...
 
y_flow_funcfunction
 A function pointer to the code to execute. More...
 
int weight
 The weight assigned to this piece of code, determining how likely it is to be executed. More...
 

Detailed Description

Descriptor for one single flow in a flow list.

This wraps the y_flow_func function pointer in a structure that gives the flow a name and a weight, as well as an (arbitrary) number. The chance of a specific flow getting executed is 1 in the total of the weights in the list of flows.

See also
y_flow_list.c

Hides the exact type for y_flow (y_struct_flow) from code using flow lists. This struct wraps the y_flow_func function pointer in a structure that gives the flow a name and a weight, as well as an (arbitrary) number. The chance of a specific flow getting executed is 1 in the total of the weights in the list of flows.

Definition at line 93 of file y_flow_list.c.

Field Documentation

y_flow_func* y_flow::function

A function pointer to the code to execute.

Definition at line 100 of file y_flow_list.c.

char* y_flow::name

The name of the flow.

Definition at line 98 of file y_flow_list.c.

int y_flow::number

A number. Not used by ylib itself, use it however you want.

Definition at line 96 of file y_flow_list.c.

int y_flow::weight

The weight assigned to this piece of code, determining how likely it is to be executed.

Definition at line 102 of file y_flow_list.c.


The documentation for this struct was generated from the following file: