Lines Matching defs:aptr
136 XF86ConfAdjacencyPtr aptr;
139 aptr = calloc (1, sizeof (XF86ConfAdjacencyRec));
140 aptr->list.next = NULL;
141 aptr->adj_scrnum = -1;
142 aptr->adj_where = CONF_ADJ_OBSOLETE;
143 aptr->adj_x = 0;
144 aptr->adj_y = 0;
145 aptr->adj_refscreen = NULL;
147 aptr->adj_scrnum = val.num;
152 free(aptr);
155 aptr->adj_screen_str = val.str;
161 aptr->adj_where = CONF_ADJ_RIGHTOF;
164 aptr->adj_where = CONF_ADJ_LEFTOF;
167 aptr->adj_where = CONF_ADJ_ABOVE;
170 aptr->adj_where = CONF_ADJ_BELOW;
173 aptr->adj_where = CONF_ADJ_RELATIVE;
176 aptr->adj_where = CONF_ADJ_ABSOLUTE;
180 free(aptr);
187 aptr->adj_where = CONF_ADJ_OBSOLETE;
189 aptr->adj_where = CONF_ADJ_ABSOLUTE;
191 switch (aptr->adj_where)
198 aptr->adj_x = val.num;
201 free(aptr);
204 aptr->adj_y = val.num;
207 free(aptr);
220 free(aptr);
223 aptr->adj_refscreen = val.str;
224 if (aptr->adj_where == CONF_ADJ_RELATIVE)
228 free(aptr);
231 aptr->adj_x = val.num;
234 free(aptr);
237 aptr->adj_y = val.num;
242 aptr->adj_top_str = val.str;
246 free(aptr);
249 aptr->adj_bottom_str = val.str;
253 free(aptr);
256 aptr->adj_left_str = val.str;
260 free(aptr);
263 aptr->adj_right_str = val.str;
267 xf86addListItem ((glp) ptr->lay_adjacency_lst, (glp) aptr);
319 XF86ConfAdjacencyPtr aptr;
332 for (aptr = ptr->lay_adjacency_lst; aptr; aptr = aptr->list.next)
335 if (aptr->adj_scrnum >= 0)
336 fprintf (cf, "%2d", aptr->adj_scrnum);
339 fprintf (cf, " \"%s\"", aptr->adj_screen_str);
340 switch(aptr->adj_where)
343 fprintf (cf, " \"%s\"", aptr->adj_top_str);
344 fprintf (cf, " \"%s\"", aptr->adj_bottom_str);
345 fprintf (cf, " \"%s\"", aptr->adj_right_str);
346 fprintf (cf, " \"%s\"\n", aptr->adj_left_str);
349 if (aptr->adj_x != -1)
350 fprintf (cf, " %d %d\n", aptr->adj_x, aptr->adj_y);
355 fprintf (cf, " RightOf \"%s\"\n", aptr->adj_refscreen);
358 fprintf (cf, " LeftOf \"%s\"\n", aptr->adj_refscreen);
361 fprintf (cf, " Above \"%s\"\n", aptr->adj_refscreen);
364 fprintf (cf, " Below \"%s\"\n", aptr->adj_refscreen);
367 fprintf (cf, " Relative \"%s\" %d %d\n", aptr->adj_refscreen,
368 aptr->adj_x, aptr->adj_y);