Lines Matching defs:scopes

51  * DAs which support the greatest number of requested scopes are called
69 * slp_new_target_list: creates a new target list for the given scopes,
70 * and populates with all known DAs for these scopes.
71 * slp_get_uc_scopes: returns a list of all scopes for which there are
73 * slp_get_mc_scopes: returns a list of all scopes for which there are
115 char *scopes;
128 struct scope_targets **scopes;
142 SLPError slp_new_target_list(slp_handle_impl_t *hp, const char *scopes,
152 /* count the number of scopes in the list */
154 for (p = (char *)scopes; p; p++) {
168 if (!(tl->scopes = calloc(scope_cnt + 1, sizeof (*(tl->scopes))))) {
174 tl->state = tl->scopes;
175 if (!(tl->all_scopes = strdup(scopes))) {
177 free(tl->scopes); free(tl);
180 /* As scopes are added to uc list, they are removed from the mc list */
181 if (!(tl->mc_scopes = strdup(scopes))) {
183 free(tl->scopes); free(tl->all_scopes); free(tl);
188 /* all scopes remain multicast scopes; useful for SAAdverts */
194 if (!(query = malloc(strlen(scopes) -
200 strlen("(=)")))))) { /* (scopes=) */
202 free(tl->scopes);
208 format_query(query, scopes);
212 free(tl->scopes);
240 * relevant scopes they serve. Using this ordering, populate the
350 free(das->scopes);
355 for (i = 0; tl->scopes[i]; i++) {
357 for (sts = tl->scopes[i]; sts; sts = stp) {
364 free(tl->scopes);
378 struct scope_targets **scopes = tl->scopes;
391 if (slp_onlist(s, te->scopes)) {
402 for (stp = scopes[i]; stp && stp->next; ) {
408 scopes[i] = st;
417 char *scopes, slp_net_prox proximity, int c) {
424 te->scopes = scopes;
506 * relevant scopes they serve (coverage).
510 /* URL part should be of the form 'scopes=...' */
521 /* copy out the scopes part, since url will be freed after this call */
552 * Takes a scopes list of the form 's1,s2,s3,...' and formats it into
554 * 'scopes' contains the scopes list; 'q' is a buffer allocated
557 static void format_query(char *q, const char *scopes) {
559 int more_than_one = slp_utf_strchr(scopes, ',') ? 1 : 0;
566 for (p = s = (char *)scopes; p; s = p) {