YFreeAudioModesList(3) frees an Audio modes list

SYNTAX

#include <Y2/Y.h>
#include <Y2/Ylib.h>

void YFreeAudioModesList(

        YAudioModeValuesStruct **list,

        int count
)

ARGUMENTS

list
Specifies the Audio modes list to be freed.
count
Specifies the number of items in the list.

DESCRIPTION

The YFreeAudioModesList function frees the specified Audio modes list which should have been returned by a previous call to YGetAudioModes.

EXAMPLE

#include <stdio.h>
#include <Y2/Y.h>
#include <Y2/Ylib.h>

int main(int argc, char *argv[])
{

        YAudioModeValuesStruct **list;

        int count;

        YConnection *con = YOpenConnection(

                "/usr/sbin/starty",

                "127.0.0.1:9433"

        );

        if(con == NULL)

                return(1);


        list = YGetAudioModes(con, &count);


        YFreeAudioModesList(list, count);


        YCloseConnection(con, False);


        return(0);
}