X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=ogg_afh_common.h;h=8f3494a6689b2966e5d9e8e03c8c20276c35515e;hb=c8466194a4842e319abdedfb38ddc93630e25471;hp=47e133bfcf61c15542c9133b61e113ebdce335f8;hpb=a7967902aa937e91d35767b3eba2b77343e8b822;p=paraslash.git diff --git a/ogg_afh_common.h b/ogg_afh_common.h index 47e133bf..8f3494a6 100644 --- a/ogg_afh_common.h +++ b/ogg_afh_common.h @@ -9,6 +9,12 @@ * handlers that use the ogg container format. */ +struct oac_custom_header *oac_custom_header_new(void); +void oac_custom_header_init(int serial, struct oac_custom_header *h); +int oac_custom_header_append(ogg_packet *op, struct oac_custom_header *h); +void oac_custom_header_flush(struct oac_custom_header *h); +size_t oac_custom_header_get(char **buf, struct oac_custom_header *h); + /** * Callback structure provided by audio format handlers. * @@ -16,7 +22,7 @@ * function whose purpose is to extract the meta information about the audio * file from the first few ogg packets of the bitstream. */ -struct ogg_afh_callback_info { +struct oac_callback_info { /** * ogg_get_file_info() calls this function for the first three ogg * packets, or until the callback returns a non-positive value. If it @@ -33,5 +39,7 @@ struct ogg_afh_callback_info { void *private_data; }; -int ogg_get_file_info(char *map, size_t numbytes, struct afh_info *afhi, - struct ogg_afh_callback_info *ci); +int oac_get_file_info(char *map, size_t numbytes, struct afh_info *afhi, + struct oac_callback_info *ci); +int oac_rewrite_tags(const char *map, size_t mapsize, int fd, + char *meta_packet, size_t meta_sz);