Home
last modified time | relevance | path

Searched refs:crec (Results 1 – 5 of 5) 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;
67 static void cache_free(struct crec *crecp);
68 static void cache_unlink(struct crec *crecp);
69 static void cache_link(struct crec *crecp);
71 static void cache_hash(struct crec *crecp);
75 struct crec *crecp; in cache_init()
85 crecp = safe_malloc(daemon->cachesize*sizeof(struct crec)); in cache_init()
105 struct crec **new, **old, *p, *tmp; in rehash()
[all …]
Ddhcp.c927 struct crec *crec; in dhcp_update_configs() local
938 (crec = cache_find_by_name(NULL, config->hostname, 0, F_IPV4)) && in dhcp_update_configs()
939 (crec->flags & F_HOSTS)) in dhcp_update_configs()
941 if (cache_find_by_name(crec, config->hostname, 0, F_IPV4)) in dhcp_update_configs()
944 while (crec && !(crec->flags & F_REVERSE)) in dhcp_update_configs()
945 crec = cache_find_by_name(crec, config->hostname, 0, F_IPV4); in dhcp_update_configs()
946 if (!crec) in dhcp_update_configs()
949 config->hostname, inet_ntoa(crec->addr.addr.addr.addr4)); in dhcp_update_configs()
952 if (config_find_by_address(configs, crec->addr.addr.addr.addr4)) in dhcp_update_configs()
954 inet_ntoa(crec->addr.addr.addr.addr4), config->hostname); in dhcp_update_configs()
[all …]
Ddnsmasq.h260 struct crec { struct
261 struct crec *next, *prev, *hash_next; argument
267 struct crec *cache; argument
665 struct crec *cache_find_by_addr(struct crec *crecp,
668 struct crec *cache_find_by_name(struct crec *crecp,
672 struct crec *cache_insert(char *name, struct all_addr *addr,
678 char *cache_get_name(struct crec *crecp);
Drfc1035.c663 struct crec *cpp = NULL; in extract_addresses()
746 struct crec *newc; in extract_addresses()
945 struct crec *crecp; in check_for_local_domain()
1117 static unsigned long crec_ttl(struct crec *crecp, time_t now) in crec_ttl()
1142 struct crec *crecp; in answer_request()
1386 struct crec *save = crecp; in answer_request()
/external/skia/src/c/
Dsk_surface.cpp189 static SkPictureRecorder* AsPictureRecorder(sk_picture_recorder_t* crec) { in AsPictureRecorder() argument
190 return reinterpret_cast<SkPictureRecorder*>(crec); in AsPictureRecorder()
475 void sk_picture_recorder_delete(sk_picture_recorder_t* crec) { in sk_picture_recorder_delete() argument
476 delete AsPictureRecorder(crec); in sk_picture_recorder_delete()
479 sk_canvas_t* sk_picture_recorder_begin_recording(sk_picture_recorder_t* crec, in sk_picture_recorder_begin_recording() argument
481 return ToCanvas(AsPictureRecorder(crec)->beginRecording(AsRect(*cbounds))); in sk_picture_recorder_begin_recording()
484 sk_picture_t* sk_picture_recorder_end_recording(sk_picture_recorder_t* crec) { in sk_picture_recorder_end_recording() argument
485 return ToPicture(AsPictureRecorder(crec)->finishRecordingAsPicture().release()); in sk_picture_recorder_end_recording()