char *ua is the user-agent string from the request headers.
char *major is the major release number to the left of the decimal point.
char *minor is the minor release number to the right of the decimal point.