SYNOPSIS

int MGOgetsubattributes (Subscription **lst, Subscription *sub)

DESCRIPTION

The MGOgetsubattributes() function gets a list of subscription attributes for a uwnetid. Information is passed through sub and returned through the linked list lst. The required fields are:

sub.uwnetid is the uwnetid name. sub.attribute_code is the subscription attribute reference code. The following fields are set for each matched subscription attribute:

Note: Only subscriptions which are subscribed-to will be included in the list.

RETURN VALUE

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

ERRORS

AUTHENTICATION LEVEL

none

SEE ALSO

MGOfreesubscription(), MGOselrsubattr(), MGOzero()