SYNOPSIS

int MGOgetsponsors (Validation **lst, Validation *val)

DESCRIPTION

The MGOgetsponsos() function returns either a list of sponsors for a given validation id, or a list of records for which a given sponsor is sponsoring. Information is passed through val and returned through the linked list lst. The selection criteria fields are:

val.validid is the validation id. This is most likely the AVF account name, as for now the only sponsored records are AVF. val.sponsid is the sponsor's validation id. val.source_code is the sponsor's source code. Specify either a validid or a sponsid and source_code depending on which type of search you wish to conduct.

The following fields are set for each matched validation. The values between the brackets indicate these fields are set depending on the validation source reference code (lst.source_code):

RETURN VALUE

Returns the number of validations found upon success or -1 if an error occurred (in which case MGOerrno and MGOerrmsg are set appropriately).

ERRORS

AUTHENTICATION LEVEL

rmango

SEE ALSO

MGOfreevalidation(), MGOselrvalsource(), MGOzero()