JSDriverQueryVersion(3)

NAME

JSDriverQueryVersion - Driver version retrieving

SYNTAX

#include <jsw.h>

int JSDriverQueryVersion(
        js_data_struct *jsd,
        int *major_rtn,
        int *minor_rtn,
        int *release_rtn
)

ARGUMENTS

jsd Specifies the pointer to the joystick data structure, which should have been set up by a prior call to JSInit.

major_rtn
    Specifies the return for the major version number.

minor_rtn
    Specifies the return for the minor version number.

release_rtn
    Specifies the return for the release number.

DESCRIPTION

The JSDriverQueryVersion function fetches the parsed version number of the joystick driver (not the version of libjsw).

RETURN VALUE

The JSDriverVersion function returns 1 on success and 0 on failure.

SEE ALSO

JSIntro(3) JSDriverVersion(3)