Lines Matching defs:AvahiProbeJob
39 typedef struct AvahiProbeJob AvahiProbeJob;
41 struct AvahiProbeJob {
51 AVAHI_LLIST_FIELDS(AvahiProbeJob, jobs);
58 AVAHI_LLIST_HEAD(AvahiProbeJob, jobs);
59 AVAHI_LLIST_HEAD(AvahiProbeJob, history);
62 static AvahiProbeJob* job_new(AvahiProbeScheduler *s, AvahiRecord *record, int done) {
63 AvahiProbeJob *pj;
68 if (!(pj = avahi_new(AvahiProbeJob, 1))) {
79 AVAHI_LLIST_PREPEND(AvahiProbeJob, jobs, s->history, pj);
81 AVAHI_LLIST_PREPEND(AvahiProbeJob, jobs, s->jobs, pj);
86 static void job_free(AvahiProbeScheduler *s, AvahiProbeJob *pj) {
93 AVAHI_LLIST_REMOVE(AvahiProbeJob, jobs, s->history, pj);
95 AVAHI_LLIST_REMOVE(AvahiProbeJob, jobs, s->jobs, pj);
103 static void job_set_elapse_time(AvahiProbeScheduler *s, AvahiProbeJob *pj, unsigned msec, unsigned jitter) {
117 static void job_mark_done(AvahiProbeScheduler *s, AvahiProbeJob *pj) {
123 AVAHI_LLIST_REMOVE(AvahiProbeJob, jobs, s->jobs, pj);
124 AVAHI_LLIST_PREPEND(AvahiProbeJob, jobs, s->history, pj);
145 AVAHI_LLIST_HEAD_INIT(AvahiProbeJob, s->jobs);
146 AVAHI_LLIST_HEAD_INIT(AvahiProbeJob, s->history);
167 static int packet_add_probe_query(AvahiProbeScheduler *s, AvahiDnsPacket *p, AvahiProbeJob *pj) {
220 AvahiProbeJob *pj = data, *next;
323 static AvahiProbeJob* find_scheduled_job(AvahiProbeScheduler *s, AvahiRecord *record) {
324 AvahiProbeJob *pj;
339 static AvahiProbeJob* find_history_job(AvahiProbeScheduler *s, AvahiRecord *record) {
340 AvahiProbeJob *pj;
365 AvahiProbeJob *pj;