Support for parsing and creating FaceInstance elements. More...
|struct ccn_face_instance *||ccn_face_instance_parse (const unsigned char *p, size_t size)|
|Parse a ccnb-ecoded FaceInstance into an internal representation. |
|void||ccn_face_instance_destroy (struct ccn_face_instance **pfi)|
|Destroy the result of ccn_face_instance_parse(). |
|int||ccnb_append_face_instance (struct ccn_charbuf *c, const struct ccn_face_instance *fi)|
|Marshal an internal face instance representation into ccnb form. |
Support for parsing and creating FaceInstance elements.
Part of the CCNx C Library.
Copyright (C) 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 ccn_face_mgmt.c.
|void ccn_face_instance_destroy||(||struct ccn_face_instance **||pfi||)|
Destroy the result of ccn_face_instance_parse().
Referenced by ccn_face_instance_parse(), ccnd_req_destroyface(), ccnd_req_newface(), do_face_action(), main(), prefix_face_list_destroy(), prefix_face_list_item_create(), and process_prefix_face_list_item().
|struct ccn_face_instance* ccn_face_instance_parse||(||const unsigned char *||p,|
Parse a ccnb-ecoded FaceInstance into an internal representation.
The space used for the various strings is held by the charbuf. A client may replace the strings with other pointers, but then assumes responsibilty for managing those pointers.