The function ba_list_classes() is passed the following arguments:
interface |
Pointer to a character string containing the name of the managed interface, for example le0_suffix, hme0_suffix, where suffix is one of in, indicating that the interface carries incoming traffic, or out, indicating that the interface carries outgoing traffic. |
classname |
Pointer to a character string containing the name of the class for which information is required. |
classes |
Pointer to an array of structures of type ba_class_pair_t, containing the parent and child class names. There is one structure per parent child pair. Memory is allocated automatically. You must call ba_free() when the memory is no longer required. |
Structures of type ba_class_pair_t are defined as follows:
typedef struct { ba_name_t parent; /* name of the parent */ ba_name_t child; /* name of the class */ } ba_class_pair_t;
Structures of type ba_class_pair_t contain a pair of structures of type ba_name_t, which are defined as follows:
typedef struct { char name[BA_NAMES_LEN + 1]; char padding[3]; u_short namelen; char padding2[2]; } ba_name_t;