Home
last modified time | relevance | path

Searched refs:crec (Results 1 – 6 of 6) sorted by relevance

/external/dnsmasq/src/
Dcache.c19 static struct crec *cache_head = NULL, *cache_tail = NULL, **hash_table = NULL;
21 static struct crec* dhcp_spare = NULL;
23 static struct crec* new_chain = NULL;
41 static void cache_free(struct crec* crecp);
42 static void cache_unlink(struct crec* crecp);
43 static void cache_link(struct crec* crecp);
45 static void cache_hash(struct crec* crecp);
48 struct crec* crecp; in cache_init()
56 crecp = safe_malloc(daemon->cachesize * sizeof(struct crec)); in cache_init()
74 struct crec** new, **old, *p, *tmp; in rehash()
[all …]
Ddhcp.c606 struct crec* crec; in dhcp_update_configs() local
614 (crec = cache_find_by_name(NULL, config->hostname, 0, F_IPV4)) && in dhcp_update_configs()
615 (crec->flags & F_HOSTS)) { in dhcp_update_configs()
616 if (cache_find_by_name(crec, config->hostname, 0, F_IPV4)) { in dhcp_update_configs()
618 while (crec && !(crec->flags & F_REVERSE)) in dhcp_update_configs()
619 crec = cache_find_by_name(crec, config->hostname, 0, F_IPV4); in dhcp_update_configs()
620 if (!crec) continue; /* should be never */ in dhcp_update_configs()
623 config->hostname, inet_ntoa(crec->addr.addr.addr.addr4)); in dhcp_update_configs()
626 if (config_find_by_address(configs, crec->addr.addr.addr.addr4)) in dhcp_update_configs()
629 inet_ntoa(crec->addr.addr.addr.addr4), config->hostname); in dhcp_update_configs()
[all …]
Ddnsmasq.h255 struct crec { struct
256 struct crec *next, *prev, *hash_next; argument
262 struct crec* cache; argument
653 struct crec* cache_find_by_addr(struct crec* crecp, struct all_addr* addr, time_t now,
655 struct crec* cache_find_by_name(struct crec* crecp, char* name, time_t now, unsigned short prot);
658 struct crec* cache_insert(char* name, struct all_addr* addr, time_t now, unsigned long ttl,
664 char* cache_get_name(struct crec* crecp);
Drfc1035.c539 struct crec* cpp = NULL; in extract_addresses()
605 struct crec* newc; in extract_addresses()
773 struct crec* crecp; in check_for_local_domain()
927 static unsigned long crec_ttl(struct crec* crecp, time_t now) { in crec_ttl()
948 struct crec* crecp; in answer_request()
1149 struct crec* save = crecp; in answer_request()
/external/skqp/src/c/
Dsk_surface.cpp116 static SkPictureRecorder* AsPictureRecorder(sk_picture_recorder_t* crec) { in AsPictureRecorder() argument
117 return reinterpret_cast<SkPictureRecorder*>(crec); in AsPictureRecorder()
383 void sk_picture_recorder_delete(sk_picture_recorder_t* crec) { in sk_picture_recorder_delete() argument
384 delete AsPictureRecorder(crec); in sk_picture_recorder_delete()
387 sk_canvas_t* sk_picture_recorder_begin_recording(sk_picture_recorder_t* crec, in sk_picture_recorder_begin_recording() argument
389 return ToCanvas(AsPictureRecorder(crec)->beginRecording(AsRect(*cbounds))); in sk_picture_recorder_begin_recording()
392 sk_picture_t* sk_picture_recorder_end_recording(sk_picture_recorder_t* crec) { in sk_picture_recorder_end_recording() argument
393 return ToPicture(AsPictureRecorder(crec)->finishRecordingAsPicture().release()); in sk_picture_recorder_end_recording()
/external/skia/src/c/
Dsk_surface.cpp116 static SkPictureRecorder* AsPictureRecorder(sk_picture_recorder_t* crec) { in AsPictureRecorder() argument
117 return reinterpret_cast<SkPictureRecorder*>(crec); in AsPictureRecorder()
383 void sk_picture_recorder_delete(sk_picture_recorder_t* crec) { in sk_picture_recorder_delete() argument
384 delete AsPictureRecorder(crec); in sk_picture_recorder_delete()
387 sk_canvas_t* sk_picture_recorder_begin_recording(sk_picture_recorder_t* crec, in sk_picture_recorder_begin_recording() argument
389 return ToCanvas(AsPictureRecorder(crec)->beginRecording(AsRect(*cbounds))); in sk_picture_recorder_begin_recording()
392 sk_picture_t* sk_picture_recorder_end_recording(sk_picture_recorder_t* crec) { in sk_picture_recorder_end_recording() argument
393 return ToPicture(AsPictureRecorder(crec)->finishRecordingAsPicture().release()); in sk_picture_recorder_end_recording()