Function gnunet_sys::GNUNET_CONTAINER_meta_data_insert [−][src]
pub unsafe extern "C" fn GNUNET_CONTAINER_meta_data_insert(
md: *mut GNUNET_CONTAINER_MetaData,
plugin_name: *const c_char,
type_: EXTRACTOR_MetaType,
format: EXTRACTOR_MetaFormat,
data_mime_type: *const c_char,
data: *const c_char,
data_size: usize
) -> c_int
@ingroup metadata Extend metadata.
@param md metadata to extend @param plugin_name name of the plugin that produced this value; special values can be used (i.e. ‘<zlib>’ for zlib being used in the main libextractor library and yielding meta data). @param type libextractor-type describing the meta data @param format basic format information about data @param data_mime_type mime-type of data (not of the original file); can be NULL (if mime-type is not known) @param data actual meta-data found @param data_size number of bytes in data @return #GNUNET_OK on success, #GNUNET_SYSERR if this entry already exists data_mime_type and plugin_name are not considered for “exists” checks