Expandable buffer of non-negative values. More...
Go to the source code of this file.
Data Structures | |
struct | ccn_indexbuf |
Functions | |
struct ccn_indexbuf * | ccn_indexbuf_create (void) |
Create a new indexbuf. | |
void | ccn_indexbuf_destroy (struct ccn_indexbuf **cbp) |
Deallocate indexbuf. | |
size_t * | ccn_indexbuf_reserve (struct ccn_indexbuf *c, size_t n) |
Expand buffer as necessary to hold at least n more values. | |
int | ccn_indexbuf_append (struct ccn_indexbuf *c, const size_t *p, size_t n) |
int | ccn_indexbuf_append_element (struct ccn_indexbuf *c, size_t v) |
int | ccn_indexbuf_member (struct ccn_indexbuf *x, size_t val) |
void | ccn_indexbuf_remove_element (struct ccn_indexbuf *x, size_t val) |
int | ccn_indexbuf_set_insert (struct ccn_indexbuf *x, size_t val) |
int | ccn_indexbuf_remove_first_match (struct ccn_indexbuf *x, size_t val) |
void | ccn_indexbuf_move_to_end (struct ccn_indexbuf *x, size_t val) |
void | ccn_indexbuf_move_to_front (struct ccn_indexbuf *x, size_t val) |
Expandable buffer of non-negative values.
Part of the CCNx C Library.
Copyright (C) 2008, 2009 Palo Alto Research Center, Inc.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Definition in file indexbuf.h.
int ccn_indexbuf_append | ( | struct ccn_indexbuf * | c, | |
const size_t * | p, | |||
size_t | n | |||
) |
Referenced by handle_simple_incoming_content().
int ccn_indexbuf_append_element | ( | struct ccn_indexbuf * | c, | |
size_t | v | |||
) |
struct ccn_indexbuf* ccn_indexbuf_create | ( | void | ) | [read] |
Create a new indexbuf.
Definition at line 31 of file ccn_indexbuf.c.
Referenced by ccn_create_version(), ccn_dispatch_message(), ccn_indexbuf_obtain(), ccn_name_chop(), ccn_name_next_sibling(), ccn_parse_interest(), ccn_resolve_version(), ccn_sign_content(), ccnd_create(), ccnd_reg_uri(), ccnd_req_prefix_or_self_reg(), ccnd_req_unreg(), ccnd_start_notice(), ccnd_uri_listen(), content_queue_create(), content_skiplist_insert(), decode_message(), deliver_content(), get_outbound_faces(), indexbuf_obtain(), interest_handler(), main(), process_test(), and update_forward_to().
void ccn_indexbuf_destroy | ( | struct ccn_indexbuf ** | cbp | ) |
Deallocate indexbuf.
Definition at line 42 of file ccn_indexbuf.c.
Referenced by ccn_create_version(), ccn_destroy(), ccn_dispatch_message(), ccn_indexbuf_release(), ccn_name_chop(), ccn_name_next_sibling(), ccn_parse_interest(), ccn_resolve_version(), ccn_sign_content(), ccnd_destroy(), ccnd_internal_client_stop(), ccnd_reg_uri(), ccnd_req_prefix_or_self_reg(), ccnd_req_unreg(), ccnd_start_notice(), ccnd_uri_listen(), check_forward_to(), consume(), content_queue_destroy(), content_skiplist_remove(), decode_message(), deliver_content(), finalize_nameprefix(), indexbuf_release(), interest_handler(), main(), process_incoming_interest(), propagate_interest(), and update_forward_to().
int ccn_indexbuf_member | ( | struct ccn_indexbuf * | x, | |
size_t | val | |||
) |
Referenced by do_propagate(), face_send_queue_insert(), process_incoming_content(), and process_incoming_interest().
void ccn_indexbuf_move_to_end | ( | struct ccn_indexbuf * | x, | |
size_t | val | |||
) |
Referenced by update_forward_to().
void ccn_indexbuf_move_to_front | ( | struct ccn_indexbuf * | x, | |
size_t | val | |||
) |
void ccn_indexbuf_remove_element | ( | struct ccn_indexbuf * | x, | |
size_t | val | |||
) |
int ccn_indexbuf_remove_first_match | ( | struct ccn_indexbuf * | x, | |
size_t | val | |||
) |
Referenced by do_propagate().
size_t* ccn_indexbuf_reserve | ( | struct ccn_indexbuf * | c, | |
size_t | n | |||
) |
Expand buffer as necessary to hold at least n more values.
Definition at line 59 of file ccn_indexbuf.c.
Referenced by ccn_indexbuf_append(), and ccn_indexbuf_append_element().
int ccn_indexbuf_set_insert | ( | struct ccn_indexbuf * | x, | |
size_t | val | |||
) |
Referenced by ccnd_face_status_change(), ccnd_start_notice(), face_send_queue_insert(), replan_propagation(), and update_forward_to().